VeryPDF Cloud API Examples

Cloud PDF Processing APIs

Cloud HTML to PDF Converter APIs

Cloud HTML to Image Converter APIs

Cloud Image Format Converter and Image Processing APIs!

Cloud Office Document Formats to PDF and Image Converter APIs

[ERROR] Please provide a valid APIKEY.

If you have not a APIKEY, please sign up an account on "" site, you will get a valid APIKEY at "" page. If you do not provide a valid APIKEY, VeryPDF Cloud API will work at DEMO mode. If you need any assistance, please feel free contact us via VeryPDF Ticket System at  "".

Some Examples to call VeryPDF Cloud API:

PHP Example for VeryPDF Cloud API:

//The Code
/* gets the data from a URL */
function get_data($url)
    $ch = curl_init();
    $timeout = 5;
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $data = curl_exec($ch);
    return $data;

//The Usage
$returned_content = get_data('');
echo $returned_content;

curl Example for VeryPDF Cloud API:

curl ''
curl --request GET ''

C# Example for VeryPDF Cloud API:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.Serialization;
using System.Net;
using System.IO;

namespace WindowsFormsApplication1
    public partial class Form1 : Form
        public Form1()

        private void button1_Click(object sender, EventArgs e)
            string url = "";
            WebRequest request = HttpWebRequest.Create(url);
            WebResponse response = request.GetResponse();
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string urlText = reader.ReadToEnd();

VB.NET Example for VeryPDF Cloud API:

Imports System.IO
Imports System.Net

Module Module1
    Sub Main()
        'Address of URL
        Dim URL As String = ""
        ' 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()
    End Sub
End Module