I am trying to transform a jpeg file to pdf using document.transformDocument() in alfresco
I have placed the following code in a js file in repo
var newdoc=document.transformDocument(application/pdf)
logger.log("newdoc"+newdoc);
but the value of newdoc is coming to be null
Any help regarding dis would be greatly appreciated.
seems like you don't have a converter for jpg to pdf transformation (I think you don't have one in the default installation)
You can check the possible transformations with
<Your Alfresco Servers http>/alfresco/service/mimetypes
look for "application/pdf" and the section "Transformable from" - if there isn't an entry for jpeg, you can't convert jpeg to PDF
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.