-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
"token too long" after merging a huge number of files #451
Comments
Hi there! First of all please ensure your PDF is valid and passes Then execute Thank you for using pdfcpu 💚 |
Hi @hhrutter, thank you for responding. I get the same error when I try to validate the pdf:
|
This looks like either a malformed PDF or a parser bug. |
I can open it with the Preview app on my Mac just fine. To which email can I send the file? |
This file is huge. Send me a link |
Try this before merging:
|
Ah, cool, it seems to be working with |
There are two ways to save a cross reference table. |
This is fixed with latest commit! |
* Fix pdfcpu#442, pdfcpu#443 * Fix pdfcpu#437 * Fix pdfcpu#434 * Fix pdfcpu#429 * Fix pdfcpu#438 * Fix pdfcpu#440 * Fix pdfcpu#380 * Fix pdfcpu#446 * Add Fedora instructions (pdfcpu#439) * Fix pdfcpu#389 * Fix pdfcpu#357, pdfcpu#451 * Fix free list validation * Cleanup * Fix pdfcpu#453 * Fix pdfcpu#457 * Revert "Revert "Fix pdfcpu#385"" This reverts commit bbe8e25. Co-authored-by: Horst Rutter <hhrutter@gmail.com> Co-authored-by: Fabio Alessandro Locati <77888+Fale@users.noreply.github.com>
I am trying to count the pages of a big pdf file. The size is 147mb and it has 6638 pages. This is a code snippet to show how I try to count it:
And this is the output:
Read: xRefTable failed: bufio.Scanner: token too long
I tried disabling the
WriteXRefStream
but that did not help. @hhrutter any idea on how to proceed?The text was updated successfully, but these errors were encountered: