cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Munnerz
Regular Visitor

Convert PNG to pdf via HTML formatting

Hi Guys

 

I am trying to create a PDF file from PNG that is generated from PowerBi dashboard.

 

I used this post as a guide and was successful in creating the PDF, however it's in portrait whilst the PNG/HTML is best viewed in landscape.

 

I am guessing it is to 

Can anyone help guide me on this?

2 REPLIES 2
Gopala_Krishna
Super User
Super User

@Munnerz 

 

I am not sure if you can completely change the viewing mode of the images but you can definitely alter the dimensions of the image.

 

You can use different attributes on the <img> tag and get the picture in the desired format.

Please check the link - HTML img tag (w3schools.com) for information related to the <img> attribute and different parameters that we can specify on that.

 

If the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved.

Munnerz
Regular Visitor

@Gopala_Krishna  Hi thanks for taking the time to write back to me. My goal is to generate and convert a PDF that is read in landscape mode. Not to convert the png file or to alter the dimensions of the image. The image is charts and graphs generated from powerBI and if altered, would affect the readability. 

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (12,548)