10-28-2019 03:22 PM
Hi everyone!
I'm converting some PDF files stored in my repo into TIFF files. The problem is that when converting the image the result only has the first page of the PDF. Currently, I'm working with Community 5.2.x and using the ContentTransformer, is there some option I'm missing or it has to be done with some other library?
The code is something like this:
ContentReader reader = contentService.getReader(node, ContentModel.PROP_CONTENT);
ContentWriter tiffWriter = contentService.getWriter(nodeTiff, ContentModel.PROP_CONTENT, true);
ContentTransformer transform = contentService.getTransformer(MimetypeMap.MIMETYPE_PDF, MimetypeMap.MIMETYPE_IMAGE_TIFF);
transform.transform(reader, tiffWriter);
10-29-2019 10:13 AM
Can you see if this helps? https://hub.alfresco.com/t5/ecm-archive/pdf-to-tiff-conversions/m-p/8556
10-31-2019 03:08 PM
Wonder why this is still hardcoded, anyway it worked! Now the TIFF files are complete, but the resolution is worse than the original! I guess it needs more bean configuration in order to get the correct transformation.
Explore our Alfresco products with the links below. Use labels to filter content by product module.