web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : RStMIhL4nkE47jOQF0Tzs2
Power Automate - General Discussion
Unanswered

Adjust image size issue

Like (0) ShareShare
ReportReport
Posted on 11 Oct 2023 14:48:49 by 335

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

  • Francisco77 Profile Picture
    335 on 12 Oct 2023 at 21:53:13
    Re: Adjust image size issue

    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

     

  • v-bofeng-msft Profile Picture
    on 12 Oct 2023 at 01:52:25
    Re: Adjust image size issue

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete