Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

CreatePDF operation: review contenttype instead of extention


Former Community Member


These past few days, my colleagues and me have been breaking our heads over a nullpointerexception we where receiving when we delivered a document to our process via webservice and tried to convert it. Since the webservice only delivered the binary data, the CreatePDF operation of the generatePDFService could not figure out what type of document it was. We tried to add the contenttype to the document manually in a setValue operation but no luck. In the end, we found out that the createPDF operation needs an extention to figure out what kind of document it is dealing with.

Would it be possible to let this operation check on contenttype instead of extention? It is easier to supply the contenttype via webservice then to extract the extention from the full filename.

Thanks in advance for taking this into consideration.

Kind regards,

Ronald Kamp

IT Consultant at iDA Mediafoundry

0 Replies