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

Crash while copying PDF with annotations #157

Open
neklesayurii opened this issue May 21, 2019 · 0 comments
Open

Crash while copying PDF with annotations #157

neklesayurii opened this issue May 21, 2019 · 0 comments

Comments

@neklesayurii
Copy link

Hello

Lib crashes when I try to copy this original.pdf PDF. It happens in destructor on delete[] mXrefTable; step.

I found that issue is hidden in PDFParser::BuildXrefTableFromTable() function, because if(extendedTable) is triggered twice. And when it is triggered second time extendedTable is equal to mXrefTable.
To avoid crash I added equality check if(extendedTable && extendedTable != mXrefTable). But still annotations does not get copied (I refered to CopyingPagesWithComments.cpp sample).

After resave in Foxit Reader PDF resaved.pdf CopyingPagesWithComments.cpp sample works without problems.

Does anyone know how to solve the problem with original pdf?

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