Free HTML to PDF, HTML to tiff API converter from VB.NET

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.

FAQ:

  • 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. 

Usage:

  • 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:
    http://online.verypdf.com/api/apikey=XXXXXXXXXXXXX&app=
    html2pdf&infile=https://www.verypdf.com&outfile=
    verypdf.pdf&--header-left=https://www.verypdf.com&--header-right=
    Page%20[page]/[toPage]&--margin-top=2cm&--header-line&--footer-left=
    Date:%20[date]%20%20%20%20Time:%20[time]
    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:
    http://online.verypdf.com/api/apikey=XXXXXXXXXXXXX&
    app=html2image&infile=https://www.verypdf.com&outfile=verypdf.jpg
    By this URL, we can convert HTML file to image jpg.
  • Run the conversion from VB.NET application.
  • Imports System.IO
    Imports System.Net

    Module Module1
        Sub Main()
            '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
                Console.WriteLine(str)
                str = reader.ReadLine()
            Loop
        End Sub
    End Module

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.

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!