Package br.gov.lexml.pdfa
Class PDFA
java.lang.Object
br.gov.lexml.pdfa.PDFA
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionAdd an attachmentaddAttachments(PDFAttachmentFile... files) Add a list of attachmentsaddAttachments(List<PDFAttachmentFile> files) Add a list of attachmentsaddXMP(byte[] xmp) Add a XMP metadatavoidclose()Close PDF Stamperstatic PDFAgetNewInstance(OutputStream pdfDest, InputStream pdfSource, String part, String conformance) Load a PDF to be transformed as PDF/A3-Bcom.itextpdf.text.pdf.PdfAStamperReturn current PdfAStampervoidsetVersion(PDFA.PDFVersion pdfVersion)
-
Method Details
-
getNewInstance
public static PDFA getNewInstance(OutputStream pdfDest, InputStream pdfSource, String part, String conformance) throws Exception Load a PDF to be transformed as PDF/A3-B- Parameters:
pdfSource-pdfDest-- Returns:
- Throws:
IOExceptioncom.itextpdf.text.DocumentExceptionException
-
getStamper
public com.itextpdf.text.pdf.PdfAStamper getStamper()Return current PdfAStamper- Returns:
-
setVersion
-
addXMP
Add a XMP metadata- Parameters:
xmp-- Returns:
- Throws:
IOExceptioncom.itextpdf.text.DocumentExceptionException
-
addAttachment
Add an attachment- Parameters:
file-- Returns:
- Throws:
IOExceptioncom.itextpdf.text.DocumentExceptionException
-
addAttachments
Add a list of attachments- Parameters:
files-- Returns:
- Throws:
Exception
-
addAttachments
Add a list of attachments- Parameters:
files-- Returns:
- Throws:
IOExceptioncom.itextpdf.text.DocumentExceptionException
-
close
Close PDF Stamper- Throws:
com.itextpdf.text.DocumentExceptionIOExceptionException
-