Uses of Class
com.pd4ml.pdf.cos.COSDocument
-
-
Uses of COSDocument in com.pd4ml.pdf.cos
Methods in com.pd4ml.pdf.cos that return COSDocument Modifier and Type Method Description COSDocumentCOSObject. getDocument()Constructors in com.pd4ml.pdf.cos with parameters of type COSDocument Constructor Description COSObject(COSDocument document, COSObjectKey key)COSObject(COSDocument document, COSObjectKey key, COSBase value)Direct constructor for an already-known target, useful when building a document in memory rather than parsing one from disk. -
Uses of COSDocument in com.pd4ml.pdf.cos.parser
Methods in com.pd4ml.pdf.cos.parser that return COSDocument Modifier and Type Method Description static COSDocumentCOSParser. load(byte[] pdfBytes)static COSDocumentCOSParser. load(byte[] pdfBytes, java.lang.String password)LikeCOSParser.load(byte[]), for a document protected by the PDF Standard security handler.COSDocumentCOSParser. parse() -
Uses of COSDocument in com.pd4ml.pdf.cos.path
Methods in com.pd4ml.pdf.cos.path with parameters of type COSDocument Modifier and Type Method Description static COSBaseCOSPathEvaluator. evaluate(COSDocument document, COSPath path)static COSBaseCOSPathEvaluator. evaluate(COSDocument document, java.lang.String pathExpression)static COSBaseCOSPathEvaluator. evaluateStrict(COSDocument document, COSPath path)static COSBaseCOSPathEvaluator. evaluateStrict(COSDocument document, java.lang.String pathExpression) -
Uses of COSDocument in com.pd4ml.pdf.cos.security
Methods in com.pd4ml.pdf.cos.security with parameters of type COSDocument Modifier and Type Method Description static voidPdfEncryptor. encrypt(COSDocument document, PdfEncryptor.Options options) -
Uses of COSDocument in com.pd4ml.pdf.cos.util
Methods in com.pd4ml.pdf.cos.util that return COSDocument Modifier and Type Method Description COSDocumentCOSObjectImporter. getTarget()Methods in com.pd4ml.pdf.cos.util with parameters of type COSDocument Modifier and Type Method Description COSObjectCOSObjectImporter. getImported(COSDocument sourceDoc, COSObjectKey sourceKey)The already-imported target-document reference forsourceKey, ornullif not imported yet.COSObjectCOSObjectImporter. importIndirect(COSDocument sourceDoc, COSObject sourceRef)LikeCOSObjectImporter.importValue(com.pd4ml.pdf.cos.COSDocument, com.pd4ml.pdf.cos.COSBase), but always returns an indirect reference in the target document.COSBaseCOSObjectImporter. importValue(COSDocument sourceDoc, COSBase value)Importsvalue(which may be a direct value or an indirectCOSObjectreference) fromsourceDoc, returning the equivalent value already registered in the target document.booleanCOSObjectImporter. isImported(COSDocument sourceDoc, COSObjectKey sourceKey)True ifsourceKeyinsourceDochas already been imported into the target document.voidCOSObjectImporter. preRegister(COSDocument sourceDoc, COSObjectKey sourceKey, COSObject targetRef)Seeds the import cache so any future reference tosourceKeyinsourceDocresolves directly totargetRefinstead of being cloned.Constructors in com.pd4ml.pdf.cos.util with parameters of type COSDocument Constructor Description COSObjectImporter(COSDocument target) -
Uses of COSDocument in com.pd4ml.pdf.cos.writer
Methods in com.pd4ml.pdf.cos.writer with parameters of type COSDocument Modifier and Type Method Description static byte[]COSDocumentWriter. write(COSDocument document)Writesdocumentas a complete PDF file.Constructors in com.pd4ml.pdf.cos.writer with parameters of type COSDocument Constructor Description IncrementalUpdateWriter(byte[] originalBytes, COSDocument document) -
Uses of COSDocument in com.pd4ml.pdf.merge.internal
Methods in com.pd4ml.pdf.merge.internal with parameters of type COSDocument Modifier and Type Method Description static PdfConformance.LevelPdfConformance. detectPdfA(COSDocument document)The document's own declared PDF/A identification, ornullif it doesn't declare one (or none is parseable).static PdfConformance.LevelPdfConformance. detectPdfUa(COSDocument document)The document's own declared PDF/UA identification, ornullif it doesn't declare one (or none is parseable).static java.lang.StringPdfConformance. detectTitle(COSDocument document)The document's owndc:title(Dublin Core, from its XMP/Metadata), falling back to the plain/Infodictionary's/Titlewhen the XMP doesn't carry one (or there's no XMP at all) -- ornullif neither does.voidStructureTreeMerger. mergePage(COSDocument sourceDoc, COSDictionary sourceStructTreeRoot, COSDictionary sourcePageDict, COSDictionary clonedPageDict)Merges one page's structure contribution, if any.static voidUnreachableObjectSweeper. sweep(COSDocument target) -
Uses of COSDocument in com.pd4ml.pdf.optimizer.internal
Methods in com.pd4ml.pdf.optimizer.internal with parameters of type COSDocument Modifier and Type Method Description static intContentDeduplicator. deduplicate(COSDocument document)Rewritesdocument's trailer and every indirect object's references so that every duplicate-content object is referenced only via its canonical (first-encountered) copy. -
Uses of COSDocument in com.pd4ml.pdf.sign.pdf
Methods in com.pd4ml.pdf.sign.pdf that return COSDocument Modifier and Type Method Description COSDocumentIncrementalPdfSigner. getDocument()The parsed input document, e.g. -
Uses of COSDocument in com.pd4ml.pdf.xfdf.internal
Methods in com.pd4ml.pdf.xfdf.internal with parameters of type COSDocument Modifier and Type Method Description static FieldMapper.ApplyResultFieldMapper. applyFields(COSDocument document, java.util.List<XfdfField> fields, SelectionFilter filter)Applies every field infieldsthat matches an existing terminal field (by fully-qualified name) indocument's/AcroFormand passesfilter.static voidAnnotationMapper. applyToCOS(XfdfAnnotation x, COSDictionary target, COSDocument targetDoc)Populates (or, for an already-populatedtargetpassed in by the caller's "update if exists" handling -- seeXfdfImporter-- re-populates)targetfromx.static java.util.List<XfdfField>FieldMapper. exportFields(COSDocument document, SelectionFilter filter)static StructureTreeUpdaterStructureTreeUpdater. forDocument(COSDocument document)Returns a new updater fordocument, ornullif it isn't tagged (no/StructTreeRoot) -- the caller's cue to skip structure-tree work for this import entirely, exactly as if this class didn't exist.
-