Copy link to clipboard
Copied
Hi,
I am in the middle of creating a flow to convert static HTML to PDF. I have a flow that currently gets data from powerapps and puts it into a table, it then creates the .html file in sharepoint, then i want to convert this to PDF. The issue im having is with the .zip aspect of this conversion.
Creating the HTML file is fine, then how do i do the zip archive of this created file to then convert to PDF?
Any help would be greatly appreciated, ive added attachments of how my flow currently looks.
Thank you,
Devin
Copy link to clipboard
Copied
[deleted]
Copy link to clipboard
Copied
You can use the SharePoint API to generate a ZIP of a HTML document (and any associated relatively linked media files).
This blog post describes it well if you want to automate it within the Power Automate Flow: https://www.tachytelic.net/2021/07/power-automate-create-zip-file/
However, there is a limitation where the Adobe action does not accept any ZIP folders that are automatically or manually generated from SharePoint. You'll get a Gateway error.
I think if you're going to be looking at using Encodian to produce a ZIP then you might want to utilise that subscription to also convert the HTML to PDF if its within its supported constraints (https://support.encodian.com/hc/en-gb/articles/360022205154-Convert-HTML-to-PDF)