Skip to main content
udayasain741
Known Participant
Jul 7, 2023 11:29 AM UTC
Question

Image not displaying, HTML to PDF Plugin

HI Team, 

I am converting html file to pdf, The image which i show as logo is not displaying and show white blank when i convert it into pdf, Attached html code , Any suggetsions ?

<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

tr:nth-child(even) {
background-color: #dddddd;
}

img {
display: block;
margin-left: auto;
margin-right: auto;
}

</style>
</head>
<body>

<img src="">www.cscsw.com/.../cscsw-logo.jpg" width="200" height="200", class="center">
<h2>
<

</body>
</html>

    5 replies

    mathieud0001
    Genius
    Jul 7, 2023 11:55 AM UTC

    Which plugin are you using? You could always try putting the base64 image instead of a URL but doubt that will work.

    stackoverflow.com/.../how-to-display-base64-images-in-html

    I do know that the base 64 method works with the XSL-FO method.

    community.appian.com/.../dynamic-document-generator

    stefanhelzle0001
    Brainy
    Jul 7, 2023 12:30 PM UTC

    This plugin has no access to any external resources.

    I use a DIV element and define the image as a background using a base64 encoded file. And Appian does not support encoding an image into base64. I use an external service to do that.

    udayasain741
    Known Participant
    Jul 7, 2023 12:42 PM UTC

    yes it is not working in base64 as well, Stefan can you provide which external service you have used to do that ? or how you achieved it 

    stefanhelzle0001
    Brainy
    Jul 7, 2023 12:48 PM UTC

    Without you sharing any code, it is a bit tough to give any kind of advice.

    I use the following HTML snippet

    "
    ",