/** * Default constructor. */ public FDFAnnotationPolyline() { super(); annot.setName(COSName.SUBTYPE, SUBTYPE); }
/** * Default constructor. */ public FDFAnnotationText() { super(); annot.setName(COSName.SUBTYPE, SUBTYPE); }
/** * Default constructor. */ public FDFAnnotationFileAttachment() { super(); annot.setName(COSName.SUBTYPE, SUBTYPE); }
/** * Sets the PDF specification version this document conforms to. * * @param version the PDF version (e.g. "1.4") */ public void setVersion(String version) { root.setName(COSName.VERSION, version); }
/** * Set the subfilter entry of the encryption dictionary. * * @param subfilter The value of the subfilter field. */ public void setSubFilter(String subfilter) { dictionary.setName(COSName.SUB_FILTER, subfilter); }
/** * The intent of the annotation. * * @param intent The annotation's intent. */ public final void setIntent(String intent) { annot.setName(COSName.IT, intent); }
/** * Constructor. */ public PDAnnotationPolyline() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * Default constructor. * */ public PDThread() { thread = new COSDictionary(); thread.setName( "Type", "Thread" ); }
/** * This will set the sub type (and hence appearance, AP taking precedence) For this annotation. See the SUB_TYPE_XXX * constants for valid values. * * @param subType The subtype of the annotation */ protected final void setSubtype(String subType) { getCOSObject().setName(COSName.SUBTYPE, subType); }
/** * Set the reading direction preference. * * @param value Set the reading direction preference. */ public void setReadingDirection( READING_DIRECTION value ) { prefs.setName( COSName.DIRECTION, value.toString() ); }
/** * Set the ViewArea preference. See BOUNDARY enumeration. * * @param value Set the ViewArea preference. */ public void setViewArea( BOUNDARY value ) { prefs.setName( COSName.VIEW_AREA, value.toString() ); }
/** * Set the PrintArea preference. See BOUNDARY enumeration. * * @param value Set the PrintArea preference. */ public void setPrintArea( BOUNDARY value ) { prefs.setName( COSName.PRINT_AREA, value.toString() ); }
/** * Set the PrintClip preference. See BOUNDARY enumeration. * * @param value Set the PrintClip preference. */ public void setPrintClip( BOUNDARY value ) { prefs.setName( COSName.PRINT_CLIP, value.toString() ); }
/** * Set the Duplex preference. See DUPLEX enumeration. * * @param value Set the Duplex preference. */ public void setDuplex( DUPLEX value ) { prefs.setName( COSName.DUPLEX, value.toString() ); }
/** * Set the highlight mode. See the HIGHLIGHT_MODE_XXX constants. * * @param mode The new highlight mode. */ public void setHighlightMode(String mode) { getCOSObject().setName(COSName.H, mode); }
/** * Sets the page mode. * * @param mode The new page mode. */ public void setPageMode(PageMode mode) { root.setName(COSName.PAGE_MODE, mode.stringValue()); }
/** * Sets the page layout. * * @param layout The new page layout. */ public void setPageLayout(PageLayout layout) { root.setName(COSName.PAGE_LAYOUT, layout.stringValue()); }
/** * Constructor. * * @param type the type */ protected PDStructureNode(String type) { this.dictionary = new COSDictionary(); this.dictionary.setName(COSName.TYPE, type); }
/** * Constructor for an existing document outline. * * @param dic The storage dictionary. */ public PDDocumentOutline( COSDictionary dic ) { super( dic ); getCOSObject().setName(COSName.TYPE, COSName.OUTLINES.getName()); }
/** * Sets the default value. * * @param value Name of option to select * @throws IllegalArgumentException if the value is not a valid option. */ public void setDefaultValue(String value) { checkValue(value); getCOSObject().setName(COSName.DV, value); }