How to convert image to PDF through VB.NET by cloud API?

In this article, I will share a method of converting image to PDF through VB.NET by cloud API application. The cloud API application I will use is named as VeryPDF Image to PDF Converter Cloud API, by which you can convert image like BMP, GIF, JPG, PNG, TGA, PCX, PNM, RAS, PBM, TIF and others to PDF by VB.NET. Meanwhile by this API, you can also call this software together with C#, VB.NET, ASP.NET, ASP, PHP, Java, Ruby, Amazon, etc.

There are also SDK software of Image to PDF Converter on VeryPDF. Compare with those SDK software, image to PDF cloud API is much more cheaper and easy to use. Say if your project only lasts a few months to process, please choose the cloud API application. As by the cloud API, you only need to spend less than 20 dollars. Please check more related information of VeryPDF Cloud Application on website, in the following part, let us check how to use this software.

Step 1. Get an account on VeryPDF Cloud API

  • When you need to register an account on VeryPDF, please input an email address and a user name. And then click button Register on  registration page to to register an account.
  • Please choose payment way on Try and Buy website. When you pay for it, later the API code will be sent to your email box at once.

Step 2. Convert image to PDF by VB.NET

    • Here is an example of calling Image to PDF Converter Cloud API from VB.NET, please have a check.

Imports System.IO
Imports System.Net

Module Module1
Sub Main()
'Address of URL
Dim URL As String="http://online.verypdf.com/api/apikey=XXXXXXXXXXXXX&app=imageproc&
infile=
http://online.verypdf.com/examples/cloudapi/verypdf.png&outfile=out.pdf"
' 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 the above code template, we can convert image png file to PDF. When you run the real conversion, please change the API key to the real code in your email box or else there will watermark on the output. And if you need to add some limitations to limit output PDF file, please at parameters at the end of the URL.

There are lots of parameters on the user introduction page, during the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
How to convert image to PDF through VB.NET by cloud API?, 10.0 out of 10 based on 1 rating

Related Posts

This entry was posted in VeryPDF Cloud API and tagged . Bookmark the permalink.

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!