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

validateDestinationArray: invalid length #381

Closed
psanford opened this issue Sep 18, 2021 · 5 comments
Closed

validateDestinationArray: invalid length #381

psanford opened this issue Sep 18, 2021 · 5 comments
Assignees
Labels

Comments

@psanford
Copy link

I tried running pdfcpu info on the PDF found here: https://link.springer.com/book/10.1007/978-1-4302-6584-9 and got the following error:

$ ./pdfcpu info /tmp/Arthur-Challener2015_Book_APracticalGuideToTPM20.pdf 
pdfcpu: validateDestinationArray: invalid length

The same error also occurs when trying to run extract -mode content on that file.

@hhrutter
Copy link
Collaborator

Thanks for reporting this.

@hhrutter hhrutter self-assigned this Sep 18, 2021
@hhrutter hhrutter added the bug label Sep 18, 2021
@hhrutter hhrutter changed the title pdfcpu: validateDestinationArray: invalid length validateDestinationArray: invalid length Sep 24, 2021
@hhrutter
Copy link
Collaborator

This is fixed with the latest commit.

@maxiride
Copy link

I've encountered this error in a file (sent privately via email), the little investigation I managed to is that when reaching validateDestinationArrayLength the variable a has a length of 1 which is not contemplated in the check.

image

The document is readable and printable with no issue, maybe the relaxed validation can be improved on this?

Steps to reproduce the issue:

  • validate the document with relaxed settings

@hhrutter
Copy link
Collaborator

This document contains a corrupt bookmark section pointing to outline dicts with invalid Destinations and Adobe Reader flashes this warning:

Screen Shot 2022-04-14 at 12 21 37 PM

I am not going to pursue on this.

@maxiride
Copy link

Thanks for the feedback

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

No branches or pull requests

3 participants