/** * Get the documents AcroForm. This will return null if no AcroForm is part of the document. * * @return The document's AcroForm. */ public PDAcroForm getAcroForm() { if (cachedAcroForm == null) { COSDictionary dict = (COSDictionary)root.getDictionaryObject(COSName.ACRO_FORM); cachedAcroForm = dict == null ? null : new PDAcroForm(document, dict); } return cachedAcroForm; }
@Override Object[][] getFlagBits() { PDAcroForm acroForm = new PDAcroForm(document, acroFormDictionary); return new Object[][]{ new Object[]{1, "SignaturesExist", acroForm.isSignaturesExist()}, new Object[]{2, "AppendOnly", acroForm.isAppendOnly()}, }; } }
@Override public void createAcroForm(PDDocument template) { PDAcroForm theAcroForm = new PDAcroForm(template); template.getDocumentCatalog().setAcroForm(theAcroForm); pdfStructure.setAcroForm(theAcroForm); LOG.info("AcroForm has been created"); }
PDAcroForm acroForm = new PDAcroForm(document); document.getDocumentCatalog().setAcroForm(acroForm);
PDAcroForm acroForm = new PDAcroForm(doc); doc.getDocumentCatalog().setAcroForm(acroForm);
PDAcroForm acroForm = new PDAcroForm(document);
/** * Get the documents AcroForm. This will return null if no AcroForm is part of the document. * * @return The document's AcroForm. */ public PDAcroForm getAcroForm() { if (cachedAcroForm == null) { COSDictionary dict = (COSDictionary)root.getDictionaryObject(COSName.ACRO_FORM); cachedAcroForm = dict == null ? null : new PDAcroForm(document, dict); } return cachedAcroForm; }
/** * Get the documents AcroForm. This will return null if no AcroForm is part of the document. * * @return The document's AcroForm. */ public PDAcroForm getAcroForm() { if (cachedAcroForm == null) { COSDictionary dict = (COSDictionary)root.getDictionaryObject(COSName.ACRO_FORM); cachedAcroForm = dict == null ? null : new PDAcroForm(document, dict); } return cachedAcroForm; }
document.addPage(page); PDAcroForm acroForm = new PDAcroForm(document); document.getDocumentCatalog().setAcroForm(acroForm);
acroForm = new PDAcroForm(this); catalog.setAcroForm(acroForm);
PDAcroForm acroForm = new PDAcroForm(document); document.getDocumentCatalog().setAcroForm(acroForm);
PDAcroForm acroForm = new PDAcroForm(document); document.getDocumentCatalog().setAcroForm(acroForm);
@Override public void createAcroForm(PDDocument template) { PDAcroForm theAcroForm = new PDAcroForm(template); template.getDocumentCatalog().setAcroForm(theAcroForm); pdfStructure.setAcroForm(theAcroForm); LOG.info("AcroForm has been created"); }
@Override public void createAcroForm(PDDocument template) { PDAcroForm theAcroForm = new PDAcroForm(template); template.getDocumentCatalog().setAcroForm(theAcroForm); pdfStructure.setAcroForm(theAcroForm); LOG.info("AcroForm has been created"); }
PDAcroForm acroForm = new PDAcroForm(doc); doc.getDocumentCatalog().setAcroForm(acroForm); PDSignatureField signatureField = new PDSignatureField(acroForm);
if (acroForm == null) acroForm = new PDAcroForm(document); document.getDocumentCatalog().setAcroForm(acroForm);
PDAcroForm acro = new PDAcroForm(writer);
PDAcroForm acro = new PDAcroForm(writer);
PDAcroForm acroForm = new PDAcroForm(document); document.getDocumentCatalog().setAcroForm(acroForm);
PDPage page = new PDPage(); doc.addPage(page); PDAcroForm acroForm = new PDAcroForm(doc); doc.getDocumentCatalog().setAcroForm(acroForm);