How to use POST method to convert HTML page to PDF file with VeryPDF Cloud API Platform?

Hi,

It would help me a lot if I could post the contents of an HTML page (when converting it to a pdf) instead of having to supply a URL to a file. As well, for fillable pdfs, it would help to be able to post the xfdf data instead of referencing a file. Is that possible? If not, would you consider adding the option to do so for both HTML to PDF and when passing data to the fillable PDF api?

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


Thanks for your message, we have finished the "post" function to you, the POST URL is,

http://online.verypdf.com/api/post.php

You can use following simple HTML code to post a HTML file or HTML data to this URL, then you will get a PDF file on VeryPDF Server automatically,

<form enctype="multipart/form-data" action="http://online.verypdf.com/api/post.php" method="POST" target="_blank">
<input type="hidden" name="MAX_FILE_SIZE" value="5000000" />Send this file: <input name="uploadfile" type="file" />
<input type="hidden" name="apikey" value="MyAPIKey">
<input type="hidden" name="app" value="html2pdf">
<input type="hidden" name="outfile" value="out.pdf">
<input type="submit" value="Send File" />
</form>

Please notice, this is a HTML code, the apikey is shown to all of your users, this is an unsafe method, you should place your APIKEY to your server side, this will protect your APIKEY from abuse.

If this solution will okay to you, please feel free send to us the API URL for combine FDF and PDF files that you current using, we will integrate POST function for XFDF into "post.php" code asap.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!