ਵੈੱਬ ਨੂੰ ਕੈਪਚਰ ਅਤੇ ਕਨਵਰਟ ਕਰਨ ਲਈ ਟੂਲ

HTML ਨੂੰ PDF ਵਿੱਚ ਬਦਲਣ ਅਤੇ HTML ਨੂੰ ਚਿੱਤਰਾਂ ਵਿੱਚ ਬਦਲਣ ਲਈ GrabzIt ਦੇ ਮੁਫ਼ਤ API ਨੂੰ ਅਜ਼ਮਾਓHTML ਤੋਂ PDF ਅਤੇ ਚਿੱਤਰ API

In today's world, the ability to convert HTML to PDF and images is becoming increasingly important. If you are a developer or business owner, it is important to have the right tools.

These tools are necessary for tasks such as creating code documentation. They are also useful for converting web pages to PDFs for clients. This article explains how an HTML to PDF and Image API can convert your HTML code into the format you want.

ਸਾਰੀਆਂ ਵੈੱਬਸਾਈਟਾਂ HTML, ਜਾਂ ਹਾਈਪਰਟੈਕਸਟ ਮਾਰਕਅੱਪ ਭਾਸ਼ਾ ਦੀ ਵਰਤੋਂ ਕਰਦੀਆਂ ਹਨ। GrabzIt ਦੇ ਮੁਫਤ API ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਤੁਸੀਂ ਇਸ HTML ਨੂੰ ਆਸਾਨੀ ਨਾਲ ਬਦਲ ਸਕਦੇ ਹੋ into PDF ਜਾਂ ਚਿੱਤਰ.

ਕਰਨ ਲਈ HTML ਨੂੰ ਤਬਦੀਲ GrabzIt ਇੱਕ ਵੈਬ ਬ੍ਰਾਊਜ਼ਰ ਉਦਾਹਰਣ ਦੀ ਵਰਤੋਂ ਕਰਦਾ ਹੈ. ਇਹ ਕਿਸੇ ਵੀ ਸਰੋਤ ਨੂੰ ਸਹੀ ਢੰਗ ਨਾਲ ਪੇਸ਼ ਕਰਦਾ ਹੈ, HTML ਦੇ ਅੰਦਰ ਹਵਾਲਾ ਦਿੱਤਾ ਗਿਆ ਹੈ ਜਿਵੇਂ ਕਿ CSS, JavaScript, ਵੀਡੀਓ, ਫਲੈਸ਼, SVG ਜਾਂ ਵੈਬ ਫੌਂਟ। ਇਹ ਯਕੀਨੀ ਬਣਾਉਣਾ ਕਿ ਸਾਡਾ ਕਨਵਰਟਰ ਇਸ ਨੂੰ ਸਹੀ ਰੂਪ ਵਿੱਚ ਬਦਲ ਸਕਦਾ ਹੈ into ਇੱਕ ਚਿੱਤਰ ਜਾਂ PDF.

HTML ਨੂੰ ਕਨਵਰਟ ਕਰਦੇ ਸਮੇਂ, ਤੁਹਾਨੂੰ HTML ਕੋਡ ਵਿੱਚ ਸਾਰੀਆਂ CSS ਅਤੇ ਚਿੱਤਰ ਸਮੱਗਰੀ ਨੂੰ ਸ਼ਾਮਲ ਕਰਨ ਜਾਂ ਉਹਨਾਂ ਨਾਲ ਲਿੰਕ ਕਰਨ ਲਈ ਪੂਰਨ URL ਦੀ ਵਰਤੋਂ ਕਰਨ ਦੀ ਲੋੜ ਹੁੰਦੀ ਹੈ। ਇਸਦਾ ਇੱਕ ਉਦਾਹਰਨ HTML ਕੋਡ ਵਿੱਚ ਸੰਦਰਭਿਤ ਇੱਕ CSS ਫਾਈਲ ਹੋਵੇਗੀ, ਇੱਕ ਪੂਰਨ URL ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋਏ। ਇੱਕ ਹੋਰ ਵਿਕਲਪ ਇੱਕ ਡੇਟਾ URL ਦੀ ਵਰਤੋਂ ਕਰਨਾ ਹੈ, ਜੋ ਤੁਹਾਨੂੰ ਚਿੱਤਰਾਂ ਵਰਗੇ ਸਰੋਤਾਂ ਨੂੰ ਸਿੱਧੇ HTML ਕੋਡ ਵਿੱਚ ਰੱਖਣ ਦਿੰਦਾ ਹੈ।

ਇਹ ਦੇਖਣ ਲਈ ਕਿ HTML ਨੂੰ ਬਦਲਣਾ ਕਿੰਨਾ ਆਸਾਨ ਹੈ, ਉੱਪਰ ਦਿੱਤੇ ਡੈਮੋ ਨੂੰ ਦੇਖੋ into ਇੱਕ ਚਿੱਤਰ ਜਾਂ PDF. GrabzIt ਦੇ API ਡਿਵੈਲਪਰਾਂ ਨੂੰ ਵੱਖ-ਵੱਖ ਕਿਸਮਾਂ ਦੀ ਸਮੱਗਰੀ ਨੂੰ ਆਸਾਨੀ ਨਾਲ ਬਣਾਉਣ ਵਿੱਚ ਸਹਾਇਤਾ ਕਰਦੇ ਹਨ।

HTML ਤੋਂ PDF API

Several popular use cases for converting HTML to PDF exist. One of them is for code documentation. Many developers prefer to have their code in a PDF format for easier sharing and printing

Another popular use case for converting HTML to PDF is for creating reports or invoices from web pages. This is where a code to PDF API is useful. These APIs allow you to simply input your HTML code and convert it into a PDF document with just a few lines of code.

One of the best PDF API's on the market is GrabzIt. This API offers a simple and straightforward integration into any programming language. With GrabzIt, you can customize the appearance of your PDF, including adding headers and footers. You can also enhance security by protecting the PDF with a password.

Easily enable your app to convert HTML to PDF by using GrabzIt's simple to use API. Accessible in nine different ways. Just choose your required method from below and then follow the relevant instructions.

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ C # ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ HTML ਨੂੰ PDF ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਸੌਖਾ ਹੈ, ਹਾਲਾਂਕਿ ਗਰੈਬਜ਼ਆਈਟੀ ਦੀ ਏਐਸਪੀ.ਨੇਟ ਲਾਇਬ੍ਰੇਰੀ ਕਿਸੇ ਵੀ NET ਭਾਸ਼ਾ ਦੇ ਅਨੁਕੂਲ ਹੈ. PDF ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨਾ ਏਐਸਪੀ.ਨੇਟ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾਉਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ASP.NET ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.HTMLToPDF("<html><body><h1>Hello World!</h1></body></html>"); 
grabzIt.SaveTo("documents/result.pdf");

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਸਾਡੀ HTML ਨੂੰ PDF ਜਾਵਾ ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚ ਇਸਤੇਮਾਲ ਕਰਨਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. PDF ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨਾ ਜਾਵਾ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਜਾਵਾ ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.HTMLToPDF("<html><body><h1>Hello World!</h1></body></html>"); 
grabzIt.SaveTo("documents/result.pdf");

The example code below shows how easy it is to use our convert HTML to PDF using JavaScript. To start creating PDF's download ਗਰੈਬਜ਼ਿਟ ਦੀ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਲਾਇਬ੍ਰੇਰੀ. ਫਿਰ ਆਪਣੇ ਪ੍ਰਾਪਤ ਕਰੋ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ, ਡੋਮੇਨ ਸ਼ਾਮਲ ਕਰੋ ਤੁਸੀਂ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਨੂੰ ਚਾਲੂ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ ਅਤੇ ਫਿਰ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@<%= APIVersion.JavaScript %>/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertHTML("<html><body><h1>Hello World!</h1></body></html>",
{"format": "pdf"}).Create();
</script>

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਨੋਡ.ਜੇਜ਼ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋਏ ਇੱਕ HTML ਨੂੰ ਪੀਡੀਐਫ ਰੂਪਾਂਤਰਣ ਲਈ ਸਾਡੀ API ਦੀ ਵਰਤੋਂ ਕਰਨਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. PDF ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨਾ Node.js ਪੈਕੇਜ ਡਾ downloadਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ Node.js ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.html_to_pdf("<html><body><h1>Hello World!</h1></body></html>");
client.save_to("documents/result.pdf", function (error, id){
    if (error != null){
        throw error;
    }
});

The example code below shows how easy it is to do HTML to PDF conversion using Perl. To start creating PDF's just ਪਰਲ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਪਰਲ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->HTMLToPDF("<html><body><h1>Hello World!</h1></body></html>");
$grabzIt->SaveTo("documents/result.pdf");

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਨ ਕੋਡ ਦਿਖਾਉਂਦਾ ਹੈ ਕਿ PHP ਦੀ ਵਰਤੋਂ ਕਰਕੇ HTML ਨੂੰ PDF ਵਿੱਚ ਤਬਦੀਲ ਕਰਨ ਲਈ ਸਾਡੇ API ਦੀ ਵਰਤੋਂ ਕਰਨਾ ਕਿੰਨਾ ਆਸਾਨ ਹੈ। ਸਿਰਫ਼ PDF ਫਾਈਲਾਂ ਬਣਾਉਣਾ ਸ਼ੁਰੂ ਕਰਨ ਲਈ PHP ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾਉਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ PHP ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->HTMLToPDF("<html><body><h1>Hello World!</h1></body></html>"); 
$grabzIt->SaveTo("documents/result.pdf");

The example code below shows how easy it is to use our PDF Convertor with Python. To start creating PDF's just ਪਾਈਥਨ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਪਾਈਥਨ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.HTMLToPDF("<html><body><h1>Hello World!</h1></body></html>") 
grabzIt.SaveTo("documents/result.pdf") 

The example code below shows how easy it is to convert HTML to PDF using our REST API. Then check out the REST API ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ ਆਪਣੇ ਕੈਪਚਰ ਨੂੰ ਅਨੁਕੂਲਿਤ ਕਰ ਸਕਦੇ ਹੋ।

curl 
-d key=Sign in to view your Application Key
-d format=pdf 
-d html=%3Chtml%3E%3Cbody%3E%3Ch1%3EHello%20World%21%3C%2Fh1%3E%3C%2Fbody%3E%3C%2Fhtml%3E
https://api.grabz.it/services/convert 

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਰੂਬੀ ਦੀ ਵਰਤੋਂ ਕਰਕੇ HTML ਨੂੰ PDF ਵਿੱਚ ਬਦਲਣ ਲਈ ਸਾਡੀ API ਦੀ ਵਰਤੋਂ ਕਰਨਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. PDF ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨਾ ਰੂਬੀ ਰਤਨ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਰੂਬੀ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.html_to_pdf("<html><body><h1>Hello World!</h1></body></html>")	
grabzItClient.save_to("documents/result.pdf") 	

Of course you can also convert HTML files to PDF. If you have HTM or HTML files and use PHP, you can generate PDFs from these documents on the server side. Just use the appropriate FileToPDF ਢੰਗ ਹੈ ਇਸ ਦੀ ਬਜਾਏ ਜਿਹੜੀ ਭਾਸ਼ਾ ਤੁਸੀਂ ਵਰਤ ਰਹੇ ਹੋ.

ਇੱਕ PDF ਦਸਤਾਵੇਜ਼ ਵਿੱਚ ਕਈ ਪੰਨਿਆਂ ਵਿੱਚ ਸੰਬੰਧਿਤ ਸਮੱਗਰੀ ਨੂੰ ਵੰਡਣ ਨਾਲ ਅਕਸਰ ਇਸਨੂੰ ਪੜ੍ਹਨਾ ਮੁਸ਼ਕਲ ਹੋ ਜਾਂਦਾ ਹੈ। ਜਿਸ ਕਰਕੇ, ਅਕਸਰ ਇਹ ਨਿਰਧਾਰਤ ਕਰਨਾ ਜ਼ਰੂਰੀ ਹੁੰਦਾ ਹੈ ਕਿ ਤੁਸੀਂ ਇੱਕ PDF ਫਾਈਲ ਵਿੱਚ ਪੇਜ ਬ੍ਰੇਕ ਕਿੱਥੇ ਦਿਖਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ। ਅਜਿਹਾ ਕਰਨ ਲਈ ਤੁਹਾਨੂੰ ਵਿਸ਼ੇਸ਼ ਪੇਜ ਬ੍ਰੇਕ HTML ਸੰਟੈਕਸ ਨੂੰ ਨਿਸ਼ਚਿਤ ਕਰਨ ਦੀ ਲੋੜ ਹੈ ਜਿਵੇਂ ਕਿ ਇਸ ਵਿੱਚ ਦੱਸਿਆ ਗਿਆ ਹੈ ਟਿਊਟੋਰਿਅਲ.

HTML ਤੋਂ ਪ੍ਰਤੀਬਿੰਬ API

In addition to converting HTML to PDF, there may be times when you need to convert HTML to an image format. This could be for creating thumbnails of web pages or for embedding images into emails or documents. In these cases, a convert HTML to image API is the perfect solution.

GrabzIt is one of the top APIs for converting HTML to images. The API offers a simple and efficient integration into any programming language.

HTML to Image lets you convert any webpage or HTML snippet into an image. Of course, you can resize and select the format of the image.

Currently the supported file formats are: JPG, PNG, BMP, WEBP and TIFF. A good option for a image quality image is PNG, while if you are worried about file size then JPG is good. Additionally, you can add watermarks and text overlays to the image.

Use one of nine methods below to access the API. Just choose the method you want to use below, and then follow the associated instructions.

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਏਐਸਪੀ.ਨੇਟ ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ HTML ਨੂੰ PNG ਪ੍ਰਤੀਬਿੰਬ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਏਐਸਪੀ.ਨੇਟ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾਉਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ASP.NET ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");

ImageOptions options = new ImageOptions();
options.Format = ImageFormat.png;

grabzIt.HTMLToImage("<html><body><h1>Hello World!</h1></body></html>", options); 
grabzIt.SaveTo("images/result.jpg");

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਿਖਾਉਂਦਾ ਹੈ ਕਿ ਜਾਵਾ ਦੀ ਵਰਤੋਂ ਕਰਕੇ HTML ਨੂੰ PNG ਪ੍ਰਤੀਬਿੰਬ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਸੌਖਾ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਜਾਵਾ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਜਾਵਾ ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");

ImageOptions options = new ImageOptions();
options.setFormat(ImageFormat.PNG);

grabzIt.HTMLToImage("<html><body><h1>Hello World!</h1></body></html>", options); 
grabzIt.SaveTo("images/result.jpg");

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਵਿੱਚ HTML ਨੂੰ ਜੇਪੀਜੀ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਸੌਖਾ ਹੈ. ਚਿੱਤਰ ਡਾ downloadਨਲੋਡ ਕਰਨਾ ਬਣਾਉਣ ਲਈ ਗਰੈਬਜ਼ਿਟ ਦੀ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਲਾਇਬ੍ਰੇਰੀ. ਫਿਰ ਆਪਣੇ ਪ੍ਰਾਪਤ ਕਰੋ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ, ਡੋਮੇਨ ਸ਼ਾਮਲ ਕਰੋ ਤੁਸੀਂ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਨੂੰ ਚਾਲੂ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ ਅਤੇ ਫਿਰ ਜਾਵਾ ਸਕ੍ਰਿਪਟ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@<%= APIVersion.JavaScript %>/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertHTML("<html><body><h1>Hello World!</h1></body></html>").Create();
</script>

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਨੋਡ.ਜੇਜ਼ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋਏ HTML ਨੂੰ ਇੱਕ ਚਿੱਤਰ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਸੌਖਾ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨ ਲਈ Node.js ਪੈਕੇਜ ਡਾ downloadਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ Node.js ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.html_to_image("<html><body><h1>Hello World!</h1></body></html>");
client.save_to("images/result.jpg", function (error, id){
    if (error != null){
        throw error;
    }
});

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਪਰਲ ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ HTML ਨੂੰ ਜੇਪੀਜੀ ਵਿੱਚ ਤਬਦੀਲ ਕਰਨਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਪਰਲ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਪਰਲ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->HTMLToImage("<html><body><h1>Hello World!</h1></body></html>");
$grabzIt->SaveTo("images/result.jpg");

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਪੀਐਚਪੀ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋਏ HTML ਨੂੰ ਜੇਪੀਜੀ ਨੂੰ ਮੁਫਤ ਵਿੱਚ ਤਬਦੀਲ ਕਰਨਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਫਾਈਲਾਂ ਬਣਾਉਣੀਆਂ ਸ਼ੁਰੂ ਕਰਨ ਲਈ PHP ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾਉਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ PHP ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->HTMLToImage("<html><body><h1>Hello World!</h1></body></html>"); 
$grabzIt->SaveTo("images/result.jpg");

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਿਖਾਉਂਦਾ ਹੈ ਕਿ ਪਾਈਥਨ ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ HTML ਨੂੰ ਇੱਕ ਚਿੱਤਰ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਸੌਖਾ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਪਾਈਥਨ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਪਾਈਥਨ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.HTMLToImage("<html><body><h1>Hello World!</h1></body></html>") 
grabzIt.SaveTo("images/result.jpg") 

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਸਾਡੀ ਆਰਈਐਸਪੀ API ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ HTML ਨੂੰ ਜੇਪੀਜੀ ਫਾਰਮੈਟ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਅਸਾਨ ਹੈ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ REST API ਲਈ API ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ ਆਪਣੇ ਕੈਪਚਰ ਨੂੰ ਅਨੁਕੂਲਿਤ ਕਰ ਸਕਦੇ ਹੋ।

curl 
-d key=Sign in to view your Application Key
-d format=jpg 
-d html=%3Chtml%3E%3Cbody%3E%3Ch1%3EHello%20World%21%3C%2Fh1%3E%3C%2Fbody%3E%3C%2Fhtml%3E
https://api.grabz.it/services/convert 

ਹੇਠਾਂ ਦਿੱਤਾ ਉਦਾਹਰਣ ਕੋਡ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਰੂਬੀ ਦੀ ਵਰਤੋਂ ਕਰਦਿਆਂ HTML ਨੂੰ ਜੇਪੀਜੀ ਫਾਰਮੈਟ ਵਿੱਚ ਬਦਲਣਾ ਕਿੰਨਾ ਸੌਖਾ ਹੈ. ਸਿਰਫ ਚਿੱਤਰ ਬਣਾਉਣੇ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਰੂਬੀ ਰਤਨ ਨੂੰ ਡਾ .ਨਲੋਡ ਕਰੋ, ਪ੍ਰਾਪਤ ਆਪਣੇ ਕੁੰਜੀ ਅਤੇ ਗੁਪਤ ਅਤੇ ਫਿਰ ਡੈਮੋ ਦੀ ਵਰਤੋਂ ਕਰੋ ਦੇ ਅੰਦਰ ਸ਼ਾਮਲ. ਫਿਰ ਚੈੱਕ ਆ .ਟ ਕਰੋ ਰੂਬੀ ਲਈ ਏਪੀਆਈ ਦਸਤਾਵੇਜ਼ ਉਹਨਾਂ ਸਾਰੇ ਤਰੀਕਿਆਂ ਨੂੰ ਸਿੱਖਣ ਲਈ ਜੋ ਤੁਸੀਂ GrabzIt ਦੇ API ਦੀ ਵਰਤੋਂ ਕਰ ਸਕਦੇ ਹੋ।

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.html_to_image("<html><body><h1>Hello World!</h1></body></html>")	
grabzItClient.save_to("images/result.jpg")