You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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, becauseif(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?
The text was updated successfully, but these errors were encountered: