Resize picture to PDF Page

Hello,

I have a flow where I am converting list item picture attachments to PDF. I was hoping you might be able to shed some light on how I could resize the picture to fit a pdf page. Here is a picture of the flow.

I believe the answer to my problem is in the formatting of my "html" variable. It is formatted like this.

image

How can I dynamicly set image size to fit "Letter" pdf page?

Hello @jlavia,

Yes, image resize should be done in the html code. You can either set it static to fit into the letter pdf page, i.e.

<img src="variables('dataUriPIC')" width="350" height="250" alt="">

or try to put a script into the html code to resize it automatically, using css or a script. If the image resize works in a browser then it'll work in Plumsail action as well.

Best regards,
Petr Bushuev
Plumsail team