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
--------------------------------------------------------------
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
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Related Posts
- HTML to PDF Cloud API, Save web pages as PDF!
- VeryPDF HTML to PDF API is a simple Cloud REST API that makes it easy to convert HTML, CSS and JavaScript to PDF, XLS and Excel files. The Best PDF Invoice Creator
- VeryPDF Web to PDF Converter Cloud API – Convert HTML to PDF and image with cloud server API
- VeryPDF HTML2PDF Cloud API & Web Page Capture Cloud API, Browser API as a Service, URL2PNG – Screenshots as a Service, Capture full web page screenshots
- Use VeryPDF Cloud API to convert HTML Invoice & HTML Template with Data Contents to PDF files
- How to convert HTML invoice to PDF file using VeryPDF Cloud API? Populate HTML template with data from database and save to PDF file, Database Invoice to PDF Converter
- How to repeat HTML Tables Header and Footer in PDF using VeryPDF Cloud HTML to PDF Converter API? Table thead, tfoot, tbody in Cloud HTML to PDF API
- How to specify font using HTML to PDF Converter Cloud API?
- Use VeryPDF Cloud API Platform to convert dynamic web pages to PDF files, Convert dynamic URLs to PDF files
- Two solutions to convert HTML files to PDF files and email PDF files at background, based on VeryPDF Cloud API Platform or Desktop Command Line applications
- How to show PDF in web and disable downloading ability?
- A Better Alternative to Google Docs Viewer – VeryPDF Docs Viewer, View PDF, DOCX, XLSX, PPTX Online for free, embed a Docs Viewer into your web pages and blogs
- VeryPDF Cloud REST API :: Best PDF Cloud REST API for Mobile, Web, Desktop and Cloud Developers. Create, Edit, Convert PDF to DOC, XPS, HTML, TXT, Image, etc. in .NET, Java, PHP, Ruby, Python, etc. program languages
- VeryPDF Cloud API Platform :: PDF Metadata Manager Cloud API :: Extract or Insert Title, Author, Subject, Keywords, Creator, Producer, Created Date, Modified Date from/to PDF files
- How to know PDF detail information without opening PDF?