Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Generated PDF not showing Base64 Image

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;'>
  <div>Vertreter: xXx</div>
  <div>Kunde: xXx</div>
  <div>Datum: xXx</div>
  <hr style='content: '*';display: inline-block;position: relative;top: -0.7em;font-size: 1em;padding: 0 0.15em;background: white;'>




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.


Super User II
Super User II



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.





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.



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?



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.



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?



Our works see below.




Super User II
Super User II



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.





  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.

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.

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

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (25,562)