Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
16 replies
Subscribers
9 subscribers
Views
6480 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Logo on Header for Template
rishub
over 7 years ago
Hi,
I need to set an Image / Logo value to the Header of Template for Generating PDF Document/ Text Document.
Any Help?
Thanks in Advance
OriginalPostID-233821
Discussion posts and replies are publicly visible
0
rishub
over 7 years ago
All, do we have any solution for dynamic mapping of Logo on Header of form?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akhileshn3539
A Score Level 1
over 7 years ago
rishub
This can be done in 2 ways.
1) As mschmitt suggested, create a docx template and dynamically add image to the docx zip file to make the changes and then create convert word to PDF file. This is the easiest way to accomplish this.
2) Alternatively, create a XML-FO representation of your PDF file. XML-FO is XML representation of a PDF document and in this XML you can dynamically add text/images and once done create a PDF from this XML. For creating the PDF from XSL-FO you can use "PDF from XSL-FO Transformation" smart service from Dynamic Document Generator plugin (
forum.appian.com/.../summary)
In XSL-FO image can be added by using <fo:external-graphic src="url('data:image/jpeg;base64,<DATA>')"/> where <DATA> should be replaced with your base64 data string of the image.
OR
You can directly reference image if the file path is known to you <external-graphic content-height="43px" content-width="48px" src="file:/C:/appian/_admin/accdocs3/37739/10017890.png"/>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
Thanks Akhilesh. Is there anyway to handle the RTF document logos as well?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
siddharthg501
over 7 years ago
Yes, we have in past added dynamic logos to RTF file. Use Text Doc from Template smart service, pass your RTF template with ###logo### key. Map the key ###logo### with dynamic image and it would be rendered in RTF. See attached image with our configuration.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
Thank you so much Siddharth. Can you please share mapping ? how you have mapped the field completely by pasting the expression over here?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
Siddharth- I tried to use the same expression but it did not give me Logo. Instead I got the following when the letter got generated:
<p style= 'align:center;font-size:18;'>[Document:62427]</p>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<