How to specify font for HTML to PDF Conversion using cloud api?

Hi,

I'm using the cloud api to convert HTML to pdf. How can I specify the font that the PDF output should use? Can I specify the font using css in the html page itself?

Thank you,
Customer
--------------------------------------------------------------

Yes, of course, you can specify the font using CSS in the HTML page itself, this can be done easily in HTML code.

VeryPDF
--------------------------------------------------------------
This doesn't appear to be working, I don't get

* {font-family:"Times New Roman",Times,serif;}
...

It looks good in HTML but not in the PDF. Please see screenshot below (PDF
is on the left with strange fonts, HTML on right with Time New Roman).

How do you recommend I specify the font?

Thank you,
Customer
--------------------------------------------------------------

How to specify font for HTML to PDF Conversion using cloud api?
Thanks for your message, we have added a new "app" for you, the new app name is "html2pdf4", you can use it by following API URL,

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf4
&infile=https://dl.dropboxusercontent.com/u/5570462/po.html

The output PDF file is look great.

btw, VeryPDF Cloud API Platform is now supported four methods to convert a HTML file to PDF file, e.g.,

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf
&infile=https://dl.dropboxusercontent.com/u/5570462/po.html

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf2
&infile=https://dl.dropboxusercontent.com/u/5570462/po.html

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf3
&infile=https://dl.dropboxusercontent.com/u/5570462/po.html

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf4
&infile=https://dl.dropboxusercontent.com/u/5570462/po.html

If your HTML page is simple, you can use "html2pdf4" app name, "html2pdf4" is works great to convert a simple HTML page to PDF file.

VeryPDF

Related Posts