-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Bulk remove pages fails after 8 pages #440
Comments
Hello @jackwshepherd! What version of |
1.4.1. I just upgraded to 1.5.0 and still get that error |
Can you please share a document I can use to reproduce the issue? |
Just emailed it to you - thanks a lot. Hopefully we can understand why, and post the response here. Just didn't want the doc to be public. |
It seems to work fine with PDFs that are text - seems to arise only with PDFs that are comprised of images. Very odd. |
@jackwshepherd I found and fixed the bug that was causing this issue in #441. |
Version You can install this new version with npm:
It's also available on unpkg:
As well as jsDelivr: |
In my app, there is a functionality that allows people to "split" a long PDF into two PDFs.
The way it currently works is as follows:
This is the code:
Whenever the newPages array is greater than 8, I always get this error - regardless of the PDF. By this point I have already error checked to see that the "split point" is actually within the document, i.e. that there are in fact at least 9 pages in the document. So this error is not being produced by trying to remove a page when the document doesn't have that page contained within it.
Any ideas? Is there a better way to do this?
The text was updated successfully, but these errors were encountered: