public PDColorSpace getGroupCS() { PDGroup group = getGroup(); if (group != null) { return group.getColorSpace(); } return null; }
public PDResources getResources() { if (this.resources != null) { return this.resources; } else { COSObject resources = getInheritableResources(); if (resources != null) { this.resources = new PDResources(resources); } } return this.resources; }
@Override public InputStream getMetadataStream() { if (page != null && !page.empty()) { PDMetadata meta = page.getMetadata(); if (meta != null && !meta.empty()) { return meta.getStream(); } } return null; }
public int getNumberOfPages() { return this.getCatalog().getPageTree().getPageCount(); }
public PDPage getPage(final int number) { return this.getCatalog().getPageTree().getPage(number); }
public PDOutlineDictionary getOutlines() { return getCatalog().getOutlines(); }
@Override public String getN_type() { PDAppearanceEntry normalAppearance = ((PDAnnotation) simplePDObject).getNormalAppearance(); if (normalAppearance == null) { return null; } else if (normalAppearance.isSubDictionary()) { return DICT; } else { return STREAM; } }
public double[] getCropBox() { COSArray array = getInheritedCOSBBox(ASAtom.CROP_BOX); if (array != null) { return clipToMediaBox(getDoubleArrayForBox(array)); } else { return getMediaBox(); } }
public PDPage newPage(final int insertAt) { final PDPage page = new PDPage(null); if (this.addPage(page, insertAt)) { page.pageNumber = (insertAt == -1 ? this.getPageCount() - 1 : insertAt); } return page; }
public GFPDDocument(org.verapdf.pd.PDDocument document) { super(document, PD_DOCUMENT_TYPE); PDCatalog catalog; catalog = document.getCatalog(); this.catalog = catalog; }
public PDNavigationNode getPresSteps() { COSObject cosPresSteps = getCOSPresSteps(); if (cosPresSteps != null) { return new PDNavigationNode(cosPresSteps); } return null; } }
public PDPage getPage(final int index) { if (index < this.getPageCount()) { final PDPage page = this.root.findTerminalPDPage(index); if (page != null) { page.pageNumber = index; page.pagesTotal = index; } return page; } else { return null; } }
public PDPage(final COSObject obj) { super(); this.pageNumber = 0; this.pagesTotal = 0; super.setObject(obj); initializeContents(obj); }
public PDDocument() throws IOException { this.catalog = new PDCatalog(); this.constructDocument(); }
@Override public void close() { if (this.document != null) { this.document.close(); } }
/** * @return information provided by the signer to enable a recipient to * contact the signer to verify the signature. */ public String getContactInfo() { return this.getStringKey(ASAtom.CONTACT_INFO); }
/** * @return a name that describes the encoding of the signature value and key * information in the signature dictionary. */ public ASAtom getSubfilter() { return this.getNameKey(ASAtom.SUB_FILTER); }