HTML to PDF | Convert HTML to PDF | PDF Converter Online Free
Time 2021-11-21 15:05:14Web Name: HTML to PDF | Convert HTML to PDF | PDF Converter Online Free
WebSite: http://www.html2pdfrocket.com
ID:243677
Keywords:
PDF,to,HTML,Convert,Free,Online,Converter,htmltopdfonline,converthtmltopdfonlineDescription:
keywords:html to pdf online, convert html to pdf online free, how to convert html to pdf, convert html to pdf description:HTML2PDF Rocket Now used commercially by 10,500+ companies find out more! Get API Key Service Status: Log in Home How to Convert HTML to PDF Pricing FAQ Testimonials Contact Convert HTML to PDF files PDF Rocket is a fast, easy to use web service to convert an HTML webpage into an image or PDF fileNow used commercially by 10,500+ companies! We've grown too big to be a completely free service - read the backstory.
Code examples available for asp.net, jquery/javascript, php, java, androidandothers
Conversions are done on multiple server clusters spread across different datacenters
Why Why HTML 2 PDF Rocketstring apiKey = ABCD-1234;string value = http://www.google.com; // a url starting with http or an HTML string. See php example #5 if you are using long strings using (var client = new WebClient()){ client.QueryString.Add(apikey, apiKey); client.QueryString.Add(value, value); client.DownloadFile(https://api.html2pdfrocket.com/pdf/, @c:\temp\mypdf.pdf);}
string apiKey = ABCD-1234;string value = http://www.google.com; // a url starting with http or an HTML stringusing (var client = new WebClient()){ NameValueCollection options = new NameValueCollection(); options.Add(apikey, apiKey); options.Add(value, value); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; //needed for older .net versions byte[] result = client.UploadValues(https://api.html2pdfrocket.com/pdf, options); System.IO.File.WriteAllBytes(Server.MapPath(Path.Combine(~/, @c:\temp\mypdf.pdf)), result);}See more ASP.NET / C# examples including MVC..
HTML
a href=https://api.html2pdfrocket.com/pdf?value=http://www.google.comapikey=ABCD-1234Download PDF/aSee more javascript examples PHP
$apikey = ABCD-1234;$value = http://www.google.com; // a url starting with http or an HTML string. see example #5 if you have a long HTML string$result = file_get_contents(https://api.html2pdfrocket.com/pdf?apikey= . urlencode($apikey) . value= . urlencode($value));file_put_contents(mypdf.pdf,$result);See more PHP examples including streaming to the browser.. Java
We've just added a Java example! All the optional parameters below can be used. Please check it out here
AndroidWe've just added an Android example! All the optional parameters below can be used. Please check it out here
RUBYrequire net/httpapikey = ABCD-1234value = http://www.google.com # a url starting with http or an HTML stringuri = URI(https://api.html2pdfrocket.com/pdf?apikey=#{apikey}value=#{value})Net::HTTP.start(uri.host, uri.port) do |http| request = Net::HTTP::Get.new uri.request_uri http.request request do |response| open mypdf.pdf, w do |io| response.read_body do |chunk| io.write chunk end end endendOptional PDF Parameters (See here for image thumbnail parameters)
MarginLeft
Value of left margin - default is 0
MarginRight
Value of right margin - default is 0
MarginTop
Value of top margin - default is 0
MarginBottom
Value of bottom margin - default is 0
UseGrayscale
true to generate PDF in grayscale, false or leave blank for full colour
UseLandscape
true to rotate page to landscape, false or leave blank for portrait
EnableForms
true to turn html form fields into pdf form fields
LowQuality
true to reduce the quality, which may lower your network usage if quality is still satisfactory
ImageQuality
override the default image quality percentage (94) and use your own
DisableShrinking
true to disable the intelligent shrinking process we use make the pixel/dpi ratio constant
DisableJavascript
true to disable running JS on page, otherwise javascript runs
JavascriptDelay
Milliseconds to wait for JS to finish executing before converting the page. Useful for ajax calls.
UsePrintStylesheet
true to use the print media stylesheet, false or leave blank to use normal stylesheet
FooterSpacing
Spacing between the header and the content in mm - default is 0
HeaderSpacing
Spacing between the footer and the content in mm - default is 0
PageSize
Default size is A4 but you can use Letter, A0, A2, A3, A5, Legal, etc.
PageWidth
Page width - if you use this, you must also use PageWidth
PageHeight
Page height - if you use this, you must also use PageHeight
ViewPort
e.g. 800x600 - Set if you have custom scrollbars or css attribute overflow to emulate window size
Dpi
Explicitly set the DPI, which is 300 by default. Also see Zoom settings
Zoom
Default zoom is 1.00 You can use any floating point number, e.g. 0.5, 0.75, 1.10, 2.55, 3...
OutputFormat
Must be either "pdf", "jpg", "png", "bmp" or "svg" if not supplied the default is PDF
FileName
Optionally the name you want the file to be called when downloading or $unique$ for guid
Username
For URL conversions, creates a secure basic authentication connection to your server
Password
For URL conversions, creates a secure basic authentication connection to your server
Cookie
Supply in format: NAME|||VALUE|||NAME|||VALUE (that's 2 cookies). Often used for authentication.
Headers and footers, including automatic page numbering can be done by either passing in a url to HeaderUrl/HeaderHtml or FooterUrl/FooterHtml, or passing in a small snippet of plain text to HeaderLeft, HeaderRight, FooterLeft or FooterRight. Note that if you want to use a header or footer, you must also use a margin parameter like MarginTop or MarginBottom to ensure there is space for the header or footer. Your Html should also start with !DOCTYPE html and include the html and body tags
HeaderHtml
To use an html header on each page - a string starting with !DOCTYPE html
FooterHtml
To use an html footer on each page - a string starting with !DOCTYPE html
HeaderUrl
To use an html header on each page - a url starting with http containing the html
FooterUrl
To use an html footer on each page - a url starting with http containing the html
HeaderLeft
Top left header text (can use replacement tags below)
HeaderRight
Top right header text (can use replacement tags below)
FooterLeft
Bottom left footer (can use replacement tags below)
FooterRight
Bottom right footer (can use replacement tags below)
FooterFontName
Footer font names - Arial by default
HeaderFontName
Header font names - Arial by default
FooterFontSize
The font sizes - 12 by default. Use the the plain value (do not use px or pt)
HeaderFontSize
The font sizes - 12 by default. Use the the plain value (do not use px or pt)
The replacement tags in the following table can be used to set the page numbering. For example, using FooterRight with a value of 'Page [page] of [toPage]', and remembering to also use a margin per above, e.g. MarginBottom with a value of 20
[page]
Tag replaced with number of the pages currently being printed
[frompage]
Tag replaced with the number of the first page to be printedr
[topage]
Tag replaced with the number of the last page to be printed
[section]
Tag replaced with the name of the current section
Let us know if you need extra parameters or other API features
Batch/Asynchronous ProcessFor PDF conversion taking more than 30 seconds or input/output files more than 6 Mb, you need to use the batch/asynchronous parameters. Examples: C#, PHP
Batch
true to send it through batch process. API will return a PdfToken that you could use for your next api call.
PdfToken
Token to retrieve the pdf file that was passed in batch process. You will get a PdfLink as a return.
Webhook
Instead of polling if the pdf file is already ready, you can send a webhook url where we could post once the file is ready.
PdfDownloadExpirySeconds
Number of seconds before the PdfLink expires. Default and minimum is 300 seconds, max is 900 seconds.Font Advice
/* In css */@font-face { font-family: Jolly Lodger; src: url(fonts.googleapis.com/css?family=Jolly+Lodger);}p { font-family: Jolly Lodger;}/* In html */link href=fonts.googleapis.com/css?family=Jolly+Lodger rel=stylesheet type=text/cssstyle type=text/css p { font-family: Jolly Lodger; }/style
Enter your url beginning with http - or a html string - to convert to a PDF or image file.
Your page doesn't have to be W3C compliant, but please be certain that the page your trying isn't missing links to images or files as we tend to reject pages like that by default :)
"Everything went great thank you. I have ben struggling for weeks trying to use a plugin in our web jobs hosted in Azure and it has just been too flaky"
- Jai, May 2020
I am using it via a ColdFusion server. I used to use iText but that was becoming a real pain. Very happy to have found this!
- Murray, October 2017
Just tried your solution and it seems nice!
- James, October 2017
Pretty good so far!
- Sam, October 2017
"As always thank you for the quick response!"
- Gene, October 2017
"Thanks for an excellent service!"
- David, October 2017
"The pdf works perfectly, Thanks so much for your help !!!!"
- Federico, October 2017
"That looks like what I need - thanks!"
- Simon, September 2017
"Your service is great and works better than anything we've found"
- Rodrigo, September 2017
"Thanks for an awesome service you provide and the awesome customer support. You on the ball for sure:)"
- Seth, September 2017
"Its awesome. Excellent service!"
- Daniel, September 2017
"Thanks for the quick response! We will start our account on your service soon"
- Stefan, September 2017
"Thanks mate, great service!"
- Antonio, September 2017
"The PDFs look really great. Your competitions PDFs are really bad, compared to html2pdfrocket-generated PDF"
- Rasmus, August 2017
"Yepp been brilliant so far! Very fast ... "
Brendan, August 2017
"I'm very happy with your service"
- Hannes, July 2017
See more feedback Pricing
Each plan receives credits each month. Each credit allows one conversion. Large PDF files use 1 credit per 500kb of network traffic.
Free
$0 / Month
200 credits 5 Mb per PDF file Get Free Key Bootstrapped$5 / Month
500 credits 50 Mb per PDF file Purchase Startup$10 / Month
1,000 credits 50 Mb per PDF file Purchase Accelerator$20 / Month
3,000 credits 50 Mb per PDF file Purchase Crowdfunded$40 / Month
10,000 credits 50 Mb per PDF file Purchase Minimum Viable Product$150 / Month
40,000 credits 50 Mb per PDF file Purchase Growth Hacked$350 / Month
100,000 credits 50 Mb per PDF file Purchase Venture Capital$500 / Month
200,000 credits 50 Mb per PDF file Purchase Exit Strategy$2,000 / Month
1,000,000 credits 100 Mb per PDF file Purchase Unicorn$20,000 / Month
10,000,000 credits 100 Mb per PDF file PurchaseNumbers don't fit into your budget or plan? drop us a line with what you do need - we have customers affordably doing 1.6 million PDF's per month
See more frequently asked questions
Example Webpages Converted Adidas Amazon Washington Post Fitness MentorGet Started Get Free API Key Please help us by spreading the word About Us Privacy Policy Contact Us
© 2021 HTML 2 PDF Rocket
TAGS:PDF to HTML Convert Free Online Converter htmltopdfonline converthtmltopdfonline
<<< Thank you for your visit >>>
HTML2PDF Rocket Now used commercially by 10,500+ companies find out more!Websites to related : Download free eBooks for student
keywords:
description:
Close Home About
keywords:BBA, PGDBA, Management Programs, MBA, MSc ITM, GlobalNxt, Banking Course, Banking & Finance
description:Explore online programs like MSc IT,
keywords:
description:Everyday Health inspires and empowers people to live their healthiest lives, every day, through trusted, medically reviewed info
keywords:Novel Textbooks publisher description, publisher description, Novel Textbooks download, Novel Textbooks free download, Novel Textbooks
descri
keywords:best travel agent uttarakhand, best travel agent delhi, best Travel Agents india, india Travel agent, Travel Agents nainital, Best Tour Opera
Cam Contactos - Free live webcam keywords:
description:Best free live porn cams
Skip to content
keywords:free pdf solutions, free software, download free software
description:Free PDF Solutions is your one-stop shop. We can fulfill all your softw
keywords:
description:African Ancestry helps people of African descent trace their ancestral roots back to a specific present-day African country and
keywords:Unlock PDF files, Remove restrictions from PDF files, Remove protection from PDF files, Remove password from PDF files, free, pdf, unlock, re
Quirumed: Material médico onlin keywords:
description:Líder en venta online de todo tipo de material para la Salud, Belleza y Bienestar: Fisioterapia, Material médico, Ortopedia, E
Hot Websites