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

Some slightly malformed PDFs have PdfNull as AcroForm entry #32

Closed
wants to merge 3 commits into from

Conversation

trumpetinc
Copy link
Contributor

We were seeing ClassCastException on the return from PdfReader.getPdfObject() in PdfStamperImpl b/c PdfNull was being returned instead of null - best to not cast at that point and do an instanceof check later.

@trumpetinc
Copy link
Contributor Author

Hi all - any chance of getting this pull request accepted?

@iText-CI
Copy link
Contributor

iText-CI commented Nov 1, 2017

Can one of the admins verify this patch?

@pavel-alay
Copy link
Contributor

@trumpetinc, could you attach a test file?

@trumpetinc
Copy link
Contributor Author

trumpetinc commented Nov 2, 2017 via email

@trumpetinc
Copy link
Contributor Author

ok - I figured out how to add a unit test without relying on the original source document. This fails with current code, passes with the fixed code.

@michaeldemey
Copy link
Contributor

@trumpetinc
We'll go over it and merge it after the build passed on our end.

Thanks for the contribution!
Ref: RND-707

@avlemos
Copy link

avlemos commented Apr 30, 2019

Hi @trumpetinc,

Right now itext/itextpdf has been deprecated in favor of itext/itext7, although we will continue to incorporate security fixes in itext/itextpdf (iText5).

Could you check if the issue exists in itext/itext7 so we can incorporate your fix?

Thank you for contribution, it is appreciated.

@avlemos avlemos closed this Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants