Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

CreatePDF operation: review contenttype instead of extention


Level 1


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

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now