tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

Approving or Annotating Secured PDFs in Alfresco #830

Open benallenallen opened 9 years ago

benallenallen commented 9 years ago

Currently Alfresco will bomb if a user attempts to eSign a Workflow Document that has "Document Security" applied to the PDF. This is due to the fact that Alfresco includes "bcprov-jdk15-1.45", but iText 5.1.0, they require a newer version of bouncycastle to be able to work with "secured" pdfs.

If a client needs us to make this work on Alfresco, we have a few options:

  1. Compile an "old" version of iText that will work with the older bouncycastle dependency (it seems like 5.0.6 iText should work)
  2. Delete Alfresco's old version of bouncycastle and drop in a new one. This is risky if Alfresco was using it since it may freak out over having newer versions since they changed class names (see http://www.bouncycastle.org/wiki/display/JA1/Porting+from+earlier+BC+releases+to+1.47+and+later)
  3. Start using PDFBox for everything instead of iText
    • Affected places:
      • OpenOverlay
      • OpenAnnotate (xfdfs)
      • AddDocumentActionExecutor#createBarcodePDF
      • PDFUtil#concatPDFs
      • many more places...
gsteimer commented 7 years ago

See also #1279