Pdf pages to a single image

Hi All,

I have a pdf file with 10 pages and I need to convert it into a single image.
Can anyone suggest me the steps for this.

Hi @rnahasnahasuddin

Converting 10 pages into a single image, will compress the data significantly.

You can export each page individually using Export PDF Page as Image enclosed in a For Loop.


The maximum DPI is 270

Hi @rnahasnahasuddin

Here is the approach I would go with:

The Flow:

The Explanation:

  1. First use “Get PDG Page Count” to get the number of pages.
  2. Use Create Folder, to create the destination folder. This is because the Export PDF Page as Image, expects the Output Folder to be present. You can make the naming dynamic (For example, the name of the PDF)
  3. Use a While Loop and create a Variable currentIndex. This is used in the Index property of the While Activity. Hence the condition of the While loop will be currentIndex < pdfPageCount
  4. Then use the Export PDF Page As Image activity. The properties of this activity will be:
    OutputFileName "Data\PDF Images\" + currentIndex.ToString + ".png"
    The PageNumber is currentIndex + 1 because Index for While starts from 0, but PDF page starts from 1.

The Output:
As you can see, the pages are extracted as Images:

I am not aware of any feature/activity that can merge these images to a single image.

You could try pasting them in a single Page of a Word file and export that page as image.

@rnahasnahasuddin,

Follow this approach:

  1. Use Export PDF Page as Image activity to export pdf pages as images

  2. Once you have all the images, combine them with each other using this solution.
    How to merge the Two images - #4 by amaresan

1 Like