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

Make PDF limit size optional #3829

Open
MRJCrunch opened this issue Feb 19, 2025 · 0 comments
Open

Make PDF limit size optional #3829

MRJCrunch opened this issue Feb 19, 2025 · 0 comments

Comments

@MRJCrunch
Copy link

After this PR #2146 width/height limit is hardcoded, but according to new PDF specs (page 1128) page size was increased.

Beginning with PDF 1.6, the size of the default user space unit may be set with the UserUnit entry of the page dictionary. Acrobat 7.0 supports a maximum UserUnit value of 75,000, which gives a maximum page dimension of 15,000,000 inches (14,400 * 75,000 * 1⁄72). The minimum UserUnit value is 1.0 (the default).

I have several cases when I need to insert a big image (20k pixels) inside the pdf file without compression, but I get a warning after calling constructor and in the output file image is cut from the right side.

new JSPDF('p', 'px', [20000, 30000]);

Is it possible to make this limitation optional?

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

No branches or pull requests

1 participant