I'm trying to get all files in a folder put into a HTML table, then converted to a PDF. I have a good rough draft of this flow built out and working. The part I'm struggling with is the Append to <img src="" step.
I've tried:
<img src="[Thumbnail_Small]"> Which does work on a file.html but once its converted to file.pdf the images break.
SharePoint to HTML is working, just breaks after the convert to PDF.
Other articles mention I need to use the "Get File Content" SharePoint Block, which is posted to output a $content-type and $content. But that block doesn't seem to be doing anything for me, or one thing I noticed, is the file images, because there HEIC or phone site visit pics, the file content is so big the Power Automate is saying my byte size limit exceeds for that variable (if I try and store it in a variable).
Once those are outputted, some of the articles Ive found on other threads here says use:
<img src="data:[$content-type];base64,[$content]>
Any thoughts on which part I'm not doing right:
* Do I need a step that reduce the file content size?
* Is there a way to keep the thumbnail method but get the convert to PDF to keep it?
Any help appreciated.
Update: Seems so far, I can only get this working on Thumbnail Small and Medium. Using Large Thumbnail consistently keeps giving me that Sandbox Error. Not sure if anybody else ran into that. I'm concerned the output is going to be too grainy. The html output is fairly clear, so maybe it's somewhere in the convert PDF process that really downgrading the image.
Your a life saver bud! I'll have to see If I can achieve the same thing using a SharePoint connector. trying to avoid using OneDrive as much as possible on this specific project. But this is a great start.
I got it working once, but now I'm getting a weird error on the convert to PDF. Will give it a evening rest and try again tomorrow. lol
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2