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.