[Ilugc] Need help - HTML to PDF with Custom Fonts

  • From: tshrinivasan@xxxxxxxxx (Shrinivasan T)
  • Date: Sat, 6 Feb 2016 02:30:08 +0530

We are looking for a solution to convert html pages to A4 pdf and B7 pdf
for FreeTamilEbooks.com project


Training authors to create ebooks themself using Pressbooks.com
They can export epub, mobi, xhtml from pressbooks.


Now, few volunteers are converting xhtml to PDF by printing from Firefox.
by changing the margin and printer settings in Firefox.

see point 8 at
https://goinggnu.wordpress.com/2014/02/01/how-to-create-an-ebook-for-free-tamil-ebooks-com/

Many authors find that this is difficult.

Looking for a solution to automate the process of converting XHTML to A4
and B7 size PDFs so that we add a web interface, host in server, ask
authors to upload epub or xhtml file to get PDF files as outputs.

Explored PhantomJS
http://we-love-php.blogspot.co.uk/2012/12/create-pdf-invoices-with-html5-and-phantomjs.html

We want to use custom TTF fonts for Tamil.
Ila Sundaram-10.TTF is the font we want to use.

Tried to set this font via CSS using @font-face.
But the PDFs are not using this font.

Explored wkhtmltopdf
It is not rendering B7 size properly and can not set custom font.

Looking for volunteers to explore the PhantomJS or wkhtmltopdf to generate
PDF files from HTML with custom font.

reply here or contact me if you are interested to volunteer.

Thanks.



 --


Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com

Get Free Tamil Ebooks for Android, iOS, Kindle, Computer :
http://FreeTamilEbooks.com

Other related posts: