Refine search
/** * Constructor for embedding. */ public PDAppearanceDictionary() { dictionary = new COSDictionary(); // the N entry is required. dictionary.setItem(COSName.N, new COSDictionary()); }
/** * Default Constructor. */ public PDComplexFileSpecification() { fs = new COSDictionary(); fs.setItem( COSName.TYPE, COSName.FILESPEC ); }
/** * Package-private constructor, for embedding. */ PDFontDescriptor() { dic = new COSDictionary(); dic.setItem( COSName.TYPE, COSName.FONT_DESC ); }
/** * Constructor. */ public PDAnnotation() { dictionary = new COSDictionary(); dictionary.setItem(COSName.TYPE, COSName.ANNOT); }
/** * Default constructor. */ public FDFAnnotation() { annot = new COSDictionary(); annot.setItem(COSName.TYPE, COSName.ANNOT); }
/** * Default constructor, creates blank graphics state. */ public PDExtendedGraphicsState() { dict = new COSDictionary(); dict.setItem(COSName.TYPE, COSName.EXT_G_STATE); }
/** * Creates a group object with /Transparency subtype entry. */ public PDTransparencyGroupAttributes() { dictionary = new COSDictionary(); dictionary.setItem(COSName.S, COSName.TRANSPARENCY); }
/** * Default constructor. */ public PDSignature() { dictionary = new COSDictionary(); dictionary.setItem(COSName.TYPE, COSName.SIG); }
/** * Creates a new instance of PDPage for embedding. * * @param mediaBox The MediaBox of the page. */ public PDPage(PDRectangle mediaBox) { page = new COSDictionary(); page.setItem(COSName.TYPE, COSName.PAGE); page.setItem(COSName.MEDIA_BOX, mediaBox); }
/** * Constructor for embedding. */ PDFont() { dict = new COSDictionary(); dict.setItem(COSName.TYPE, COSName.FONT); toUnicodeCMap = null; fontDescriptor = null; afmStandard14 = null; codeToWidthMap = new HashMap<>(); }
/** * Constructor. Creates empty COSDictionary if dict is null. * * @param dict The dictionary that fulfils this file specification. */ public PDComplexFileSpecification( COSDictionary dict ) { if (dict == null) { fs = new COSDictionary(); fs.setItem( COSName.TYPE, COSName.FILESPEC ); } else { fs = dict; } }
/** * Default constructor. */ public PDSeedValueCertificate() { this.dictionary = new COSDictionary(); this.dictionary.setItem(COSName.TYPE, COSName.SV_CERT); this.dictionary.setDirect(true); }
/** * Constructor. * * @param doc The document that this form is part of. */ public PDAcroForm(PDDocument doc) { document = doc; dictionary = new COSDictionary(); dictionary.setItem(COSName.FIELDS, new COSArray()); }
/** * Default constructor. */ public PDSeedValue() { dictionary = new COSDictionary(); dictionary.setItem(COSName.TYPE, COSName.SV); dictionary.setDirect(true); // the specification claim to use direct objects }
/** * Constructor for embedding. */ public PDPageTree() { root = new COSDictionary(); root.setItem(COSName.TYPE, COSName.PAGES); root.setItem(COSName.KIDS, new COSArray()); root.setItem(COSName.COUNT, COSInteger.ZERO); document = null; }
/** * Creates a new optional content properties dictionary. */ public PDOptionalContentProperties() { this.dict = new COSDictionary(); this.dict.setItem(COSName.OCGS, new COSArray()); COSDictionary d = new COSDictionary(); // Name optional but required for PDF/A-3 d.setString(COSName.NAME, "Top"); this.dict.setItem(COSName.D, d); }
public PDOutputIntent(PDDocument doc, InputStream colorProfile) throws IOException { dictionary = new COSDictionary(); dictionary.setItem(COSName.TYPE, COSName.OUTPUT_INTENT); dictionary.setItem(COSName.S, COSName.GTS_PDFA1); PDStream destOutputIntent = configureOutputProfile(doc, colorProfile); dictionary.setItem(COSName.DEST_OUTPUT_PROFILE, destOutputIntent); }
/** * Sets the value of a given named resource. */ private void put(COSName kind, COSName name, COSObjectable object) { COSDictionary dict = (COSDictionary)resources.getDictionaryObject(kind); if (dict == null) { dict = new COSDictionary(); resources.setItem(kind, dict); } dict.setItem(name, object); }
/** * Set the embedded dos file for this spec. * * @param file The dos file to be embedded. */ public void setEmbeddedFileDos( PDEmbeddedFile file ) { COSDictionary ef = getEFDictionary(); if( ef == null && file != null ) { ef = new COSDictionary(); fs.setItem( COSName.EF, ef ); } if( ef != null ) { ef.setItem( COSName.DOS, file ); } }
/** * Set the embedded Unix file for this spec. * * @param file The Unix file to be embedded. */ public void setEmbeddedFileUnix( PDEmbeddedFile file ) { COSDictionary ef = getEFDictionary(); if( ef == null && file != null ) { ef = new COSDictionary(); fs.setItem( COSName.EF, ef ); } if( ef != null ) { ef.setItem( COSName.UNIX, file ); } }