Hello,
I'm searching a way to put images (.png or .jpg for example) from Appian to a PDF or Word file.
These images could be uploaded thanks to a File Upload component on an user interface and then put in a PDF file with a process to create a new PDF file in Appian.
Thanks for your help,
Regards
Discussion posts and replies are publicly visible
Hi,
You can use the PDF Tools plugin to create PDF files with the uploaded images. It contains a PDF_Image data type to allow the content of the PDF to be an image.
Use DOCX From Dynamic Template Smart Service.
Add a dummy image in your template and give a book mark name to it(say image1). There is an acp in the smart service called images. Pass the pv to that acp with the bookmark name as label. (Eg: {image1:pv!uploadedImage})
You can connvert docx to pdf as well using PDF from Docx smart service.
Hi japc,
Thanks for your answer,
Can you just give me more details about what you are talking about in the plugin please ?
Because, I don't really understand what is the data type PDF_Image like you said.
Hi sreedevij,
Can you please explain how to set the DOCX From Dynamic Template Smart Service, especially these two fields :
Because I don't really understand the docmentation of this plugin and I don't have access to all the documentation.
Thank you,
DocX Template
- Create a word document. The content of the word document should be just a dummy image and add a bookmark for that image.
- Have a title of the document as { MERGEFIELD ${doc.documentTitle}\* MERGEFORMAT }
- Upload this word document in appian.
Xml Data model
- This is the input for the documentTitle. It should be like below:
"<documentTitle>
Uploaded Images
</documentTitle>"
That's working,
Thanks !
Hi LyesS,
I am not able to create document from dynamic template. What had you exactly added in xml data model ? Please let me know.