Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

size issue #3801

Open
876211655 opened this issue Nov 29, 2024 · 2 comments
Open

size issue #3801

876211655 opened this issue Nov 29, 2024 · 2 comments

Comments

@876211655
Copy link

If my image size is very large and the PDF specifies an A4 size per page, will this plugin perform automatic scaling when using the addImage method to better display image information and avoid being cut and lost

@bhargav-tibadiya
Copy link

Hey @876211655,

If you're trying to add an image, then you will be dealing with the addImage method. Have a look at the image below. The method itself accepts height and width as parameters, so you can adjust them according to your needs. Keep in mind that the size of A4 is 210 Height by 297 Width, so give it accordingly. Also, note that the image does not fit automatically, you have to make it fit manually.

image

Check out the official Docs

Copy link

github-actions bot commented Apr 5, 2025

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants