Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.74k stars 645 forks source link

How can we add set auto dimension of image in pdf #1539

Open mohitsharma88 opened 10 months ago

mohitsharma88 commented 10 months ago

Describe your idea

We need to add a set auto-dimension method, so it can be displayed without height and width

How could this be implemented?

You can get any image and fix the dimension using it image will be converted into fixed-size a

What problem are you trying to solve?

We are facing an issue regarding the display of logos. We have over 100 companies, each with different logos, each in various extensions and sizes. We need to display them in our PDF, which is proving to be challenging due to the varying sizes and formats of the logos.

Why does this matter to you?

We are facing an issue regarding the display of logos. We have over 100 companies, each with different logos, each in various extensions and sizes. We need to display them in our PDF, which is proving to be challenging due to the varying sizes and formats of the logos.

Would others find this helpful?

i dont know

Are you interested in implementing your proposal?

Yes

Why are you submitting a proposal?

i think pdf lib support team support us

Additional Notes

No response