web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Generated PDF not show...
Power Apps
Unanswered

Generated PDF not showing Base64 Image

(1) ShareShare
ReportReport
Posted on by 16

I stumbled upon another issue when generating pdfs today,

 

When I try to insert an image from sharepoint by converting it to base64 it does not show up on the pdf document. If

I paste the HTML code which is generated before hand for the pdf into a html document and let it run on chrome the image shows up perfectly and everything fits. Any ideas ? 

 

My generated HTML code:

 

 

 

<!DOCTYPE html><html><header><meta charset="UTF-8"><img class="logo" src="BASE64ConvertedImageNormallyHere,CutForCharLimit" width="150" height="100" style="background:black;padding: 5px 5px 5px 5px;position:absolute;margin-top:-25px;margin-left:10px"><h3 class ='top' style='text-align:center;padding-left:20px;'>Besuchsbericht</h3>
 <hr style='content: '*';display: inline-block;position: relative;top: -0.7em;font-size: 1em;padding: 0 0.15em;background: white;'>
</header>
<body>
 <div>Vertreter: xXx</div>
 <div>Kunde: xXx</div>
 <div>Datum: xXx</div>
 <hr>
 <b>Bericht</b>
 <div>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div>
 <hr style='content: '*';display: inline-block;position: relative;top: -0.7em;font-size: 1em;padding: 0 0.15em;background: white;'>
</body>
</html>

 

 

 

My Pdfs are also 70kb bigger than before so the Base64 encoding is for sure present. Flow shows no error and generates the pdf, just without an image.

 

 
Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Arcr0s 

     

    In your Flow, try creating an HTML file rather than a PDF file to OneDrive (use HTML extension instead) and see if it works better.

     

     

  • Arcr0s Profile Picture
    16 on at

    @poweractivate 

     

    Sadly that is already what I am doing, the HTML is concated together and then flow creates a html file with that in my private one drive, that file is then converted to a pdf and saved to our teams folder.

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Arcr0s 

     

    How is the PDF conversion taking place exactly after the step where the HTML file is created? It could be that the HTML cannot be directly converted to a PDF file. What way is currently being used for that part from HTML to PDF?

  • Arcr0s Profile Picture
    16 on at

    @poweractivate 

     

    I am using One Drive for Business: Convert File using Path to do the conversion and then Sharepoint: Create File to create the converted file in a teams folder.

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Arcr0s 

     

    Does Flow run fail? Or does it succeed but silently fail to accomplish the goal?

     

    Does the file get created (PDF) but show nothing as you are saying?

     

    Stepping back one level, does the HTML file get created and does that one have the correct content and does that one work?

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Arcr0s 

     

    Our works see below.

     

    Besuchsbericht.png

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Arcr0s 

     

    We made a test Flow with Create HTML to OneDrive then convert HTML file to PDF write to OneDrive and we were successful.

     

    We do not know why you were not successful.

     

    Regarding

    FlowBesuchsbericht.png

     

    1. Try under Datei erstellen 2 to use OneDrive again to output the PDF file just like Datei erstellen and see if you can get PDF output to work there first then slowly try change back to SharePoint again
    2. Double check and make sure in Datei erstellen 2 that the file contents from Datei anhand von Pfad konvertieren is being referenced correctly, and make sure of this especially if you can't even get it to work with OneDrive.
  • rebeccas Profile Picture
    2,591 on at

    When I have done this before (I normally use the Word one but have done a few HTML) I always include a get file content for my image and it has worked like that. Might try that.

  • Grace_KAMGOUA Profile Picture
    28 on at

    Hi @poweractivate ! Could you please explain the concat part ? What exactly do you pass in it ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard