cancel
Showing results for 
Search instead for 
Did you mean: 

How to transform PDF to image with custom resolution?

upforsin
Star Collaborator
Star Collaborator

Hello,

how can I transform a PDF to PNG with a high DPI (300)?

Currently, after applying the transformation, i.e. using the "Transform and copy image" rule action, it seems like the DPI is a lot less than 300 (~70).

I am using Alfresco Community 7.2 and for PDF->PNG transformation, the pdfToImageViaPng transformer is used which uses the pdfrenderer and imagemagick transformers.

pdfrenderer is the alfresco-pdf-renderer application which uses PDFium which should render in 300dpi.

imagemagick  has the default density of 72dpi and I do not see and changes in that configuration.

I've tested it also on the Alfresco Community 6.1.2 - there is the same result.

howkymike
Alfresco Developer
2 REPLIES 2

TerryReed
Champ in-the-making
Champ in-the-making

I convert it online here: https://oneconvert.com/pdf-converter/pdf-to-jpg

Then resize it with something like this: https://imageresizer.com/

It works for me, hope it helps you as well)

annaclerkk
Champ in-the-making
Champ in-the-making

If you need to convert images like JPG back to PDF, this is also easy to do with various tools. When I was doing this, I came across a useful article https://pdfguru.com/blog/how-to-convert-jpg-to-pdf that describes step by step how to do it. It is important to choose the right settings to preserve the quality of the image when converting. This way, you can get good results both when converting PDF to images and vice versa.