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);
Can you see if this helps? https://hub.alfresco.com/t5/ecm-archive/pdf-to-tiff-conversions/m-p/8556
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.
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.