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
6489 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
Parents
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
Reply
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
Children
No Data