GitHub user Rayman2200 opened a pull request: https://github.com/apache/pdfbox/pull/3
PDFBOX-1513 Issue that depend to the changes https://issues.apache.org/jira/browse/PDFBOX-1513 Changelog: - add ability to sign documents with xref streams (big thanks to A. Funk). This will significantly improve the signature creation, due to the fact that there are more and more documents with xref streams out there. - add ability to handle documents with hybrid xref (xref stream and table as fallback) - parsing incremental updated documents where the offsets of the xref entries doesn't match exactly the position of the object. The conflict solver tollerate objects that are +- 4 bytes out of the offset. - fix COSString parsing if there are malformed chars inside a hex string. - removed some confusing logging in the conflict solver - add ability to create and sign signature fields. - add ability to create pades signature timestamps (PAdES Part4) - improved the signature search and added new convenience methods to PDDocument. - add new methods to the PDSignature object (seed value dict) - add examples for signing pdf documents (just basic signatures, i try to add some for advanced signing with SignatureOptions and maybe a example for visual signing) You can merge this pull request into a Git repository by running: $ git pull https://github.com/Rayman2200/pdfbox trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/pdfbox/pull/3.patch ---- commit 5c897785621fdf7eab1409c639ad4e45f37aa21a Author: tc <tc@localhost> Date: 2013-01-17T11:28:59Z ignore .project commit cfaa5d5f3945cce5744e1744604d0e2465aa52eb Author: Thomas Chojecki <tc@linux-6ubg.(none)> Date: 2013-01-18T08:12:38Z Merge remote-tracking branch 'upstream/trunk' into trunk commit 7effcea413f4ca4a07d2abd7d5275e72addc24dc Author: Thomas Chojecki <tc@linux-6ubg.(none)> Date: 2013-01-21T12:12:05Z Merge remote-tracking branch 'upstream/trunk' into trunk commit dae2ef02fbdfe45849f655b2469213e83759093d Author: tc <tc@localhost> Date: 2013-01-22T13:46:45Z Added a convenience method for getting the filename commit 9012abe1322f58e3f9a505a8a024d8c5ff05823d Author: tc <tc@localhost> Date: 2013-01-22T13:48:15Z - Added SignatureField - Added SeedValue dictionary commit 978050a658507c50118479e3418d0091740b16a3 Author: tc <tc@localhost> Date: 2013-01-22T13:49:47Z - fixed the way getting the signature(s) from a document - new method for getting signature fields commit cfa6778ab4e2e1b214c8043e44e6533006ae697c Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-01-22T14:01:18Z - added getter for TYPE - replaces some Strings with COSNames commit d379a12899855564287db338f66d3f9b87369cc7 Author: Thomas Chojecki <tc@linux-6ubg.(none)> Date: 2013-01-23T09:39:19Z Merge remote-tracking branch 'upstream/trunk' into trunk commit d39b7fefe20fdbe923a420aad186568ca2694a7b Author: Alexander Funk <> Date: 2013-01-23T14:00:05Z - Add support for write xref streams instead of xref tables if the document that should be sign base on xref streams commit e8bd78b17b82c829a2951160fab926bf04e0c63f Author: Alexander Funk <> Date: 2013-01-23T14:01:07Z - Add support for write xref streams instead of xref tables if the document that should be sign base on xref streams - Add support for signing documents with hybrid references. commit 95b41041ae25ad173e7ba0a48037b84199bd57da Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-01-24T12:47:43Z Add handling for signing PAdES Document Timestamps commit cbbd97225259f321372119d51c99bffdf8770d3e Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-01-25T13:34:04Z Fix parsing hex strings see comment in PDFBOX-1171 commit db9a43348f25017c0809c264c4fcc41226aee711 Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-01-25T13:47:35Z conflict resolver tolerate small offset differences (+-4 positions) this help parsing some not standard conform documents seen in the www commit 9f54aa847a4ce93694a2a10e8efb2cdb7db025d2 Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-01-29T16:01:38Z remove confusing logging commit d4e1fbd516553bf25f57eaf3f4157e1a45556192 Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-02-07T08:22:00Z Merge remote-tracking branch 'upstream/trunk' into trunk commit 15cd0d4933c7e43171c6f8392d376a19ba20fd93 Author: Thomas Chojecki <i...@rayman2200.de> Date: 2013-02-08T22:14:33Z Example for creating pdf signature - add a example class - add bouncy castle to the dependency ----