Question: I would like to convert a web page to PDF, preferably TIFF, in VB.NET application. Is there an API or library out there I could use for free? Is there a solution on VeryPDF?
Answer: When you need to convert HTML to PDF, HTML to Image from VB.NET free, maybe you can have a free trail VeryPDF cloud based API Web Page to PDF Converter Cloud API and Web Page to Image Converter Cloud API. By them you can convert HTML file to PDF and image easily. But there is a limitation for now, those APIs only can convert online HTML file to PDF and image singly. When you need to run the conversion in batch from VB.NET , please use VeryPDF HTML Converter SDK version. The desktop version HTML Converter is not free, when trial period ends, you need to buy one or else you can not use it any more. For those APIs there is no trial version time, you can use them as long as you need. Please check more information of those software on homepage, in the following part, I will show you how to run the conversion.
- May I know those APIs which system is orientated?
You can use those APIs at any computer system. You can use them at any place where there is web net connection available but you need to install one browser as to which kind of browser there is no limitation.
- Is that really free?
Actually they are not totally free. If you do not use the API code there will be watermark on output. Just this one limitation, if you do not mind the watermark, you can use it as long as you need without any payment.
- Converting HTML to PDF. When use those APIs, you do not need to download any third party application, simply open browser and then input URL following the below examples then you can run the conversion.
- Here is an example for your reference:
By this above link, we can convert webpage of https://www.verypdf.com/ to PDF and insert header and footer text contents.
- Converting HTML to Image, please refer to the following URL:
By this URL, we can convert HTML file to image jpg.
- Run the conversion from VB.NET application.
'Address of URL
Dim URL As String = "http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX&app=html2image&infile=https://www.verypdf.com&outfile=verypdf.jpg"
' Get HTML data
Dim client As WebClient = New WebClient()
Dim data As Stream = client.OpenRead(URL)
Dim reader As StreamReader = New StreamReader(data)
Dim str As String = ""
str = reader.ReadLine()
Do While str <> Nothing
str = reader.ReadLine()
By those API, we can run the conversion from HTML to PDF, HTML to Image from VB.NET easily. During the using, if you have any question, please contact us as soon as possible.