Skip to main content
August 7, 2024
Question

Adding image in header in appian By using HTMl

  • August 7, 2024
  • 3 replies
  • 0 views

I’m configuring the logo in the header of my Appian HTML code by using a constant value that holds the image. In the <img> tag, I am specifying the source as this constant value.

<img logoId="&document(cons!EX_LOGO,"id")&">
but it is not displaying image in pdf.
Please give me any suggesstions,
Thanks.

    3 replies

    sriramk5349
    August 7, 2024

    Hi [mention:142e415315644989b294e1d75107c1e9:e9ed411860ed4f2ba0265705b8793d05] ,

    You cannot use document function in html code to convert that to pdfs. Convert the document to base 64 format and then use that base 64 string in the image tag.

    Example: <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

    stefanhelzle0001
    Brainy
    August 7, 2024

    I describe this in my blog post: appian.rocks/.../

    prasantap0900
    August 7, 2024

    As per [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] ,