Note : we have rolled out a completely revised API in February 2014. The documentation for that is ON THE MAIN SITE. New users will automatically sign up for that, whilst current API users can choose to work with the old API or switch to the new one. The documentation below applies to the ‘old’ API.
PdfMyUrl’s online API is a professional solution that lets you create a PDF from web pages and raw HTML code in your applications. The API is easy to use and the integration takes only a few lines of code. Here are some samples created with the API. Click a thumbnail to open the PDF.
Status report |
Business report with dynamic charts |
Wikipedia page |
Invoice |
Newsletter |
The code needed to generate this follows. Notice that the code is simply html markup!
<table> <tr> <td> <center><a href=”http://pdfmyurl.com/?u=status.aws.amazon.com&-O=portrait”><br /><img src=”http://pdfmyurl.com/?u=status.aws.amazon.com&–thumb” /><br /></a></center> </td> <td> <center><a href=”http://pdfmyurl.com/?u=staging.pdfmyurl.com/test/chart.html&-O=portrait”… /><img src=”http://pdfmyurl.com/?u=staging.pdfmyurl.com/test/chart.html&–thumb” /><br /></a></center> </td> <td> <center><a href=”http://pdfmyurl.com/?u=en.wikipedia.org/wiki/Tiger&-O=portrait”><br /><img src=”http://pdfmyurl.com/?u=en.wikipedia.org/wiki/Tiger&–thumb” /><br /></a></center> </td> <td> <center><a href=”http://pdfmyurl.com/?u=staging.pdfmyurl.com/test/invoice.jsp&-O=portrait… /><img src=”http://pdfmyurl.com/?u=staging.pdfmyurl.com/test/invoice.jsp&–thumb” /></a></center> </td> <td> <center><a href=”http://pdfmyurl.com/?u=www.ptd.siemens.de/newsletter2012_11.htm&-O=portr… /><img src=”http://pdfmyurl.com/?u=www.ptd.siemens.de/newsletter2012_11.htm&–thumb” /></a></center> </td> </tr><tr><td><center>Status report</center></td> <td><center>Business report with dynamic charts</center></td> <td><center>Wikipedia page</center></td> <td><center>Invoice</center></td> <td><center>Newsletter</center></td> </tr></table>
Is it possible to convert HTML to PDF ? – Reporting …
Yes that’s possible. Pleas use the
html
parameter when you use the API – please refer to the documentation atHi,
I want to convert the HTML in PDF a particular ID/CLASS of page..How i can do this with this API
Hi Ram,
Please use the content parameter to do this – see http://pdfmyurl.com/part-of-page-conversion for more details and exampls