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 Automate / Adjust image size issue
Power Automate
Unanswered

Adjust image size issue

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

I have a flow to capture images from a tablet and generate a PDF file. The problem is that the images in the PDF are viewed horizontally and the size exceeds the size of the PDF file.
How can I pre-set so that the images appear in the y direction of the sheet size?. The size of the sheet is letter A4 (21.5 cm wide x 28 cm high).

 

The HTML code for compose is:

 

<!DOCTYPE html>
<html>
<body>
<img src=['Compose_Inputs']}></img>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<img src=['Compose_Inputs_1']}></img>
</body>
</html>

 

Thanks,

 

Francisco

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Francisco77 ,

     

    Pleas try:

    <!DOCTYPE html>
    <html>
    <head>
    <style>
     @page {
     size: 210mm 297mm;
     margin: 0;
     }
    
     body {
     width: 210mm;
     height: 297mm;
     margin: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     }
     .rotated-image {
     transform: rotate(90deg) scale(1.41, 1.41); /* A4 aspect ratio: 210mm / 297mm ≈ 1.41 */
     }
    </style>
    </head>
    <body>
     <img src="https://m.media-amazon.com/images/I/81AdTqBsfPL._AC_UF894,1000_QL80_.jpg" alt="Your Image" class="rotated-image">
    </body>
    </html>

     

    Best Regards,

    Bof

  • Francisco77 Profile Picture
    353 on at

    Hi @AlexEncodian 

     

    Thank you for your help, but unfortunately Populate Word is Premium and where I work the use of these connectors is not allowed.

     

    Reagards,

     

    Francisco

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard