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

I have a website that provides exams. Users that grade appropriately need to be able to download a certificate as a pdf. That certificate needs their name, tier, and unique ID added to it. I need to populate that pdf with data from within my database. Can I do this with your service, (see: https://www.verypdf.com/online/cloud-api/index.html ). A simple yes and a link to a sample or demo code will make a new customer out of me.

Customer
-------------------------------------------

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

Yes, of course, this can be done by VeryPDF Cloud API Platform.

We have assisted a customer for similar conversion just now, please refer to the article from following web page,

https://www.verypdf.com/wordpress/201407/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-40739.html

This is a demo HTML page which contain thead, tbody and tfoot sections,

http://online.verypdf.com/examples/cloud-api/table-header-footer.html

You can run following URL to convert this HTML file to PDF file, the thead and tfoot are repeated properly in two or more pages,

http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX&app=html2pdf&infile=http://online.verypdf.com/examples/cloud-api/table-header-footer.html&outfile=out.pdf

this demo HTML page is also a template, you can read the data from database, combine these data into HTML template, then you can call VeryPDF Cloud API html2pdf APP to convert new HTML file to PDF file easily.

btw, the fonts in table is not inherit from body css style, if you wish control the fonts in table, please refer to the experience from a customer,

-----------------------------------------------

Oh wow, I see! I'm sorry, I didn't realize this was my html that was causing this issue - thank you for correcting it and helping me! You have been very helpful over the last several days, and I appreciate the work that you have done to correct the issues that I noticed. I've also realized that my font issue was because of the default styles in chrome for tables,

which I corrected via:

table, caption {
font-size: inherit;
font-weight: inherit;
font-style: inherit;
font-variant: inherit;
}

Now, everything looks perfect! I'm sure my clients will be pleased.

Thank you,

-----------------------------------------------

VeryPDF

Related Posts

One Reply to “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”

Comments are closed.