Convert PDF to image and remove margins by cloud API

      In this article, VeryPDF will show you one method of converting PDF to image and remove margins of the converted image files by cloud based API application. When converting PDF to image, sometime there will be useless margins around the content in image. When you need to insert the image into some blog, website or frame, the margins will effect the inserting effect. Based on this situations, we add this function to PDF to image converter.

  The software I use is named as VeryPDF PDF to Image Converter Cloud API, by which you can also run the conversion from C#, VB.NET, ASP.NET, ASP, PHP, Java, Ruby, Amazon, etc. VeryPDF cloud based application is totally standalone, when you use this software you do not need to install any third party application is image viewer, PDF reader and others. However, when run conversion by cloud based application, having one browser installed and web net connection are necessary. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Register an API code.

  • VeryPDF cloud based APIs are not totally free. If you use the trial version there will be watermark on output.
  • When you use the API code,there will no watermark on output. When you need to get the API code, please register an account on registration page and choose API ordering method per month or per year. After paying, the API code will be sent to your email box at once.

Step 2. Convert PDF to image and remove margins.

  • When converting PDF to image and remove margins, please open browser and input the URL following the below URL.
    http://online.verypdf.com/api/?apikey=XXXX&app=pdftools&infile=
    http://online.verypdf.com/examples/cloud-api/verypdf2.pdf&outfile=
    verypdf.png&-f=1&-l=1&-r=300&-trimimage
    By the above URL, we can convert PDF to image in specified page range. Specify image resolution and trim image margins. Please use the real API code to instead of the apikey=xxx. Please add parameters at the end of URL. Now let us check the parameters used in above URL:
  • -f <int>                           : first page to convert
    -l <int>                           : last page to convert
    -pagerange <string>    : set page range
    -trimimage                    : trim output image files, remove margins from output image files

  • Now let us check trimming effect from the following snapshot.

input PDF and output image

By this cloud based application, we can convert PDF to image and remove margins easily. Meanwhile it can help you save lots of time and money. 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

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!