I'm creating a PDF, and converting it to PDF/A using the standard code using PdfStandardsConverter (see lower).
How can I sign this PDF/A ? with an invisible signature ?
if I sign the original PDF, then obviously the signature is no more valid after conversion.
Or is signature not compatible with PDF/A ?
- Code: Select all
// convert to inputstream
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ByteArrayInputStream bais = null;
document.saveToStream(baos);
document.close();
bais = new ByteArrayInputStream(baos.toByteArray());
// Convert to PdfA1A
PdfStandardsConverter converter = new PdfStandardsConverter(
bais);
converter.toPdfA3B(outputName);
Regards
Guillaume PATRY