Am 16.12.2020 um 15:57 schrieb anze:
Hello,
I am writing to this group for the first time.
I would like to know if I can add a comment (annotation) to an
existing PDF/A 2b document that contains digital signatures and
content? After adding an annotation to my existing PDF/A 2b document
and call *saveIncremental* I need to get a valid digital signature and
a valid PDF / A 2b document. Is this possible and covered by PDFBOX
implementation?
I checked my samples and I got a valid digital signature, but not a
valid PDF/A 2b document.
I checked on page:
Verify PDFA online (bfo.com)
<https://bfo.com/blog/2017/11/08/verify_pdfa_online/>
and I get:
PDF/A-2b
NonPopupAnnotationPrintFlagNotSetis set, but shouldn't be
https://bfo.com/products/pdf/docs/api/org/faceless/pdf2/OutputProfile.Feature.html#NonPopupAnnotationPrintFlagNotSet
According to them, this means you should set the print flag. Try it...
AnnotationTransparentis set, but shouldn't be
I assume they mean the transparency. The implementation of the highlight
does involve transparency. I wanted to have code similar to what Adobe
Reader does.
You might try to rewrite the PDHighlightAppearanceHandler and pass the
modified one to your annotation with setCustomAppearanceHandler().
Use the code that fills "frm2CS" directly into the main content stream
("cs"). Or you add such an annotation with Adobe Reader on your PDF, and
if it is validated, then look at the file with PDFDebugger to see how it
is different.
Try also VeraPDF as validator, maybe their output tells more...
In my case, I would like to add a simple comment to the PDF / A 2b
document and I am wondering how I can achieve this?
What types of annotations can I use in the case of PDF / A 2b documents?
I don't know. I don't have the PDF/A-2b specification. I assume that
there is no list, rather it will be like above that there are surprising
problems.
Tilman
In attachment you can find a test class for this case.
Any help would be very welcome. Thanks
--
Best regards
Anze
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]