Logo on Header for Template

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
  • 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"/>
Reply
  • 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"/>
Children
No Data