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.
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)
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.