Web page to PDF & Image Converter Cloud API (Web Page Capture Cloud API) is a part of VeryPDF Cloud API Platform. Web page to PDF & Image Converter Cloud API is allow you to convert full Web page to PDF and Image files.
VeryPDF Cloud API Platform Home Page:
https://www.verypdf.com/online/cloud-api/index.html
Web Page to Image Converter API General Options,
--allow | <path> | Allow the file or files from the specified folder to be loaded (repeatable) | |
--checkbox-checked-svg | <path> | Use this SVG file when rendering checked checkboxes | |
--checkbox-svg | <path> | Use this SVG file when rendering unchecked checkboxes | |
--cookie | <name> <value> | Set an additional cookie (repeatable) | |
--cookie-jar | <path> | Read and write cookies from and to the supplied cookie jar file | |
--crop-h | <int> | Set height for cropping | |
--crop-w | <int> | Set width for cropping | |
--crop-x | <int> | Set x coordinate for cropping | |
--crop-y | <int> | Set y coordinate for cropping | |
--custom-header | <name> <value> | Set an additional HTTP header (repeatable) | |
--custom-header-propagation | Add HTTP headers specified by --custom-header for each resource request. | ||
--no-custom-header-propagation | Do not add HTTP headers specified by --custom-header for each resource request. | ||
--no-debug-javascript | Do not show javascript debugging output (default) | ||
--encoding | <encoding> | Set the default text encoding, for input | |
-f, | --format | <format> | Output file format (default is jpg) |
--height | <int> | Set screen height (default is calculated from page content) (default 0) | |
--images | Do load or print images (default) | ||
--no-images | Do not load or print images | ||
-n, | --disable-javascript | Do not allow web pages to run javascript | |
--enable-javascript | Do allow web pages to run javascript (default) | ||
--javascript-delay | <msec> | Wait some milliseconds for javascript finish (default 200) | |
--load-error-handling | <handler> | Specify how to handle pages that fail to load: abort, ignore or skip (default abort) | |
--disable-local-file-access | Do not allowed conversion of a local file to read in other local files, unless explecitily allowed with --allow | ||
--enable-local-file-access | Allowed conversion of a local file to read in other local files. (default) | ||
--minimum-font-size | <int> | Minimum font size | |
--password | <password> | HTTP Authentication password | |
--disable-plugins | Disable installed plugins (default) | ||
--enable-plugins | Enable installed plugins (plugins will likely not work) | ||
--post | <name> <value> | Add an additional post field (repeatable) | |
--post-file | <name> <path> | Post an additional file (repeatable) | |
-p, | --proxy | <proxy> | Use a proxy |
--quality | <int> | Output image quality (between 0 and 100) (default 94) | |
--radiobutton-checked-svg | <path> | Use this SVG file when rendering checked radio buttons | |
--radiobutton-svg | <path> | Use this SVG file when rendering unchecked radio buttons | |
--run-script | <js> | Run this additional javascript after the page is done loading (repeatable) | |
-0, | --disable-smart-width* | Use the specified width even if it is not large enough for the content | |
--stop-slow-scripts | Stop slow running javascripts (default) | ||
--no-stop-slow-scripts | Do not Stop slow running javascripts (default) | ||
--transparent* | Make the background transparent in pngs | ||
--user-style-sheet | <url> | Specify a user style sheet, to load with every page | |
--username | <user name> | HTTP Authentication username | |
--width | <int> | Set screen width (default is 1024) (default 1024) | |
--window-status | <window Status> | Wait until window.status is equal to this string before rendering page | |
--zoom | <float> | Use this zoom factor (default 1) |
Web Page to PDF Converter API General Options,
--allow | <path> | Allow the file or files from the specified folder to be loaded (repeatable) | |
-b, | --book* | Set the options one would usually set when printing a book | |
--collate | Collate when printing multiple copies | ||
--cookie | <name> <value> | Set an additional cookie (repeatable) | |
--cookie-jar | <path> | Read and write cookies from and to the supplied cookie jar file | |
--copies | <number> | Number of copies to print into the pdf file (default 1) | |
--cover* | <url> | Use html document as cover. It will be inserted before the toc with no headers and footers | |
--custom-header | <name> <value> | Set an additional HTTP header (repeatable) | |
--debug-javascript | Show javascript debugging output | ||
-H, | --default-header* | Add a default header, with the name of the page to the left, and the page number to the right, this is short for: --header-left '[webpage]' --header-right '[page]/[toPage]' --margin-top 2cm --header-line | |
--disable-external-links* | Do no make links to remote web pages | ||
--disable-internal-links* | Do no make local links | ||
-n, | --disable-javascript | Do not allow web pages to run javascript | |
--disable-pdf-compression* | Do not use lossless compression on pdf objects | ||
--disable-smart-shrinking* | Disable the intelligent shrinking strategy used by WebKit that makes the pixel/dpi ratio none constant | ||
--disallow-local-file-access | Do not allowed conversion of a local file to read in other local files, unless explicitly allowed with --allow | ||
-d, | --dpi | <dpi> | Change the dpi explicitly (this has no effect on X11 based systems) |
--enable-plugins | Enable installed plugins (such as flash | ||
--encoding | <encoding> | Set the default text encoding, for input | |
--forms* | Turn HTML form fields into pdf form fields | ||
-g, | --grayscale | PDF will be generated in grayscale | |
--ignore-load-errors | Ignore pages that claimes to have encountered an error during loading | ||
-l, | --lowquality | Generates lower quality pdf/ps. Useful to shrink the result document space | |
-B, | --margin-bottom | <unitreal> | Set the page bottom margin (default 10mm) |
-L, | --margin-left | <unitreal> | Set the page left margin (default 10mm) |
-R, | --margin-right | <unitreal> | Set the page right margin (default 10mm) |
-T, | --margin-top | <unitreal> | Set the page top margin (default 10mm) |
--minimum-font-size | <int> | Minimum font size (default 5) | |
--no-background | Do not print background | ||
-O, | --orientation | <orientation> | Set orientation to Landscape or Portrait |
--page-height | <unitreal> | Page height (default unit millimeter) | |
--page-offset* | <offset> | Set the starting page number (default 1) | |
-s, | --page-size | <size> | Set paper size to: A4, Letter, Legal, Tabloid, A3, B5, B4, B3, etc. |
--page-width | <unitreal> | Page width (default unit millimeter) | |
--password | <password> | HTTP Authentication password | |
--post | <name> <value> | Add an additional post field (repeatable) | |
--post-file | <name> <path> | Post an additional file (repeatable) | |
--print-media-type* | Use print media-type instead of screen | ||
-p, | --proxy | <proxy> | Use a proxy |
--redirect-delay | <msec> | Wait some milliseconds for js -redirects (default 200) | |
--replace* | <name> <value> | Replace [name] with value in header and footer (repeatable) | |
--stop-slow-scripts | Stop slow running javascripts | ||
--title | <text> | The title of the generated pdf file (The title of the first document is used if not specified) | |
-t, | --toc* | Insert a table of content in the beginning of the document | |
--user-style-sheet | <url> | Specify a user style sheet, to load with every page | |
--username | <username> | HTTP Authentication username | |
--zoom | <float> | Use this zoom factor (default 1) |
Headers And Footer Options
--footer-center* | <text> | Centered footer text | |
--footer-font-name* | <name> | Set footer font name (default Arial) | |
--footer-font-size* | <size> | Set footer font size (default 11) | |
--footer-html* | <url> | Adds a html footer | |
--footer-left* | <text> | Left aligned footer text | |
--footer-line* | Display line above the footer | ||
--footer-right* | <text> | Right aligned footer text | |
--footer-spacing* | <real> | Spacing between footer and content in mm (default 0) | |
--header-center* | <text> | Centered header text | |
--header-font-name* | <name> | Set header font name (default Arial) | |
--header-font-size* | <size> | Set header font size (default 11) | |
--header-html* | <url> | Adds a html header | |
--header-left* | <text> | Left aligned header text | |
--header-line* | Display line below the header | ||
--header-right* | <text> | Right aligned header text | |
--header-spacing* | <real> | Spacing between header and content in mm (default 0) |
Table Of Content Options
--toc-depth* | <level> | Set the depth of the toc (default 3) | |
--toc-disable-back-links* | Do not link from section header to toc | ||
--toc-disable-links* | Do not link from toc to sections | ||
--toc-font-name* | <name> | Set the font used for the toc (default Arial) | |
--toc-header-font-name* | <name> | The font of the toc header (if unset use --toc-font-name) | |
--toc-header-font-size* | <size> | The font size of the toc header (default 15) | |
--toc-header-text* | <text> | The header text of the toc (default Table Of Contents) | |
--toc-l1-font-size* | <size> | Set the font size on level 1 of the toc (default 12) | |
--toc-l1-indentation* | <num> | Set indentation on level 1 of the toc (default 0) | |
--toc-l2-font-size* | <size> | Set the font size on level 2 of the toc (default 10) | |
--toc-l2-indentation* | <num> | Set indentation on level 2 of the toc (default 20) | |
--toc-l3-font-size* | <size> | Set the font size on level 3 of the toc (default 8 ) | |
--toc-l3-indentation* | <num> | Set indentation on level 3 of the toc (default 40) | |
--toc-l4-font-size* | <size> | Set the font size on level 4 of the toc (default 6) | |
--toc-l4-indentation* | <num> | Set indentation on level 4 of the toc (default 60) | |
--toc-l5-font-size* | <size> | Set the font size on level 5 of the toc (default 4) | |
--toc-l5-indentation* | <num> | Set indentation on level 5 of the toc (default 80) | |
--toc-l6-font-size* | <size> | Set the font size on level 6 of the toc (default 2) | |
--toc-l6-indentation* | <num> | Set indentation on level 6 of the toc (default 100) | |
--toc-l7-font-size* | <size> | Set the font size on level 7 of the toc (default 0) | |
--toc-l7-indentation* | <num> | Set indentation on level 7 of the toc (default 120) | |
--toc-no-dots* | Do not use dots, in the toc |
Footers And Headers
Headers and footers can be added to the document by the --header-* and --footer* arguments respectfully. In header and footer text string supplied to e.g. --header-left, the following variables will be substituted.
* [page] Replaced by the number of the pages currently being printed
* [frompage] Replaced by the number of the first page to be printed
* [topage] Replaced by the number of the last page to be printed
* [webpage] Replaced by the URL of the page being printed
* [section] Replaced by the name of the current section
* [subsection] Replaced by the name of the current subsection
* [date] Replaced by the current date in system local format
* [time] Replaced by the current time in system local format
As an example specifying --header-right "Page [page] of [toPage]", will result in the text "Page x of y" where x is the number of the current page and y is the number of the last page, to appear in the upper left corner in the document.
Cloud HTML to PDF Converter APIs
Convert a web page to PDF file,
Convert web page to PDF file with A3 paper,
Convert a web page to grayscale PDF file,
Convert web page to PDF file and insert header and footer text contents,
Cloud HTML to Image Converter APIs
Convert HTML page to Image file and remove image elements,
More articles for VeryPDF Cloud API Platform,
https://www.verypdf.com/wordpress/category/verypdf-cloud-api
If you need any other functions which are not included in VeryPDF Cloud API Platform, please feel free to let us know,
How to convert HTML invoice to PDF file using HTML to PDF Converter Cloud API?
http://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
How to specify font using HTML to PDF Converter Cloud API?
http://www.verypdf.com/wordpress/201407/how-to-specify-font-using-html-to-pdf-converter-cloud-api-40729.html
VeryPDF Cloud API is now support five methods to convert a HTML file to PDF file, the APP Names are: html2pdf, html2pdf2, html2pdf3, html2pdf4, html2pdf5. These methods are using different technologies to render a HTML page to PDF file, you can test them and choose a best one for using.
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf&infile=https://dl.dropboxusercontent.com/u/5570462/temp.html
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf2&infile=https://dl.dropboxusercontent.com/u/5570462/temp.html
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf3&infile=https://dl.dropboxusercontent.com/u/5570462/temp.html
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf4&infile=https://dl.dropboxusercontent.com/u/5570462/temp.html
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXX&app=html2pdf5&infile=https://dl.dropboxusercontent.com/u/5570462/temp.html