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
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
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
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2