/** * @param flags the flags */ public void setFlags(int flags) { this.action.setInt(COSName.FLAGS, flags); }
/** * This will set the number of bits to use for the encryption algorithm. * * @param length The new key length. */ public void setLength(int length) { dictionary.setInt(COSName.LENGTH, length); }
/** * This will set the clockwise rotation in degrees. * * @param rotation The number of degrees of clockwise rotation. */ public final void setRotation(int rotation) { annot.setInt(COSName.ROTATE, rotation); }
/** * This will set the number of bits to use for the crypt filter algorithm. * * @param length The new key length. */ public void setLength(int length) { cryptFilterDictionary.setInt(COSName.LENGTH, length); }
/** * @param flags the flags */ public void setFlags(int flags) { this.action.setInt(COSName.FLAGS, flags); }
/** * This will set the shading type. * * @param shadingType the new shading type */ public void setShadingType(int shadingType) { dictionary.setInt(COSName.SHADING_TYPE, shadingType); }
/** * This will set the permissions bit mask. * * @param permissions The new permissions bit mask */ public void setPermissions(int permissions) { dictionary.setInt(COSName.P, permissions); }
/** * This will get the field flags that are associated with this field. The Ff entry in the FDF field dictionary. * * @param ff The new value for the field flags. */ public void setFieldFlags(int ff) { field.setInt(COSName.FF, ff); }
/** * This will set the key for this page in the structural parent tree. * * @param structParents The new key for this page. */ public void setStructParents(int structParents) { page.setInt(COSName.STRUCT_PARENTS, structParents); }
@Override public void setWidth(int width) { parameters.setInt(COSName.W, width); }
/** * This will set the font flags. * * @param flags The new font flags. */ public void setFlags( int flags ) { dic.setInt( COSName.FLAGS, flags ); this.flags = flags; }
/** * Set the number of bits per component. * * @param bitsPerComponent the number of bits per component */ public void setBitsPerComponent(int bitsPerComponent) { getCOSObject().setInt(COSName.BITS_PER_COMPONENT, bitsPerComponent); }
/** * This will set the precision or denominator of a fractional amount. * * @param denominator the precision or denominator */ public void setDenominator(int denominator) { this.getCOSObject().setInt("D", denominator); }
/** * Set the open count. This number is automatically managed for you when you add items to the outline. * * @param openCount The new open count. */ void setOpenCount(int openCount) { getCOSObject().setInt(COSName.COUNT, openCount); }
/** * This will set the tiling type. * @param tilingType The new tiling type. */ public void setTilingType(int tilingType) { getCOSObject().setInt(COSName.TILING_TYPE, tilingType); }
/** * This is a convenience method that will convert the value to a COSInteger object. * * @param key The key to the object, * @param value The int value for the name. */ public void setInt(String key, int value) { setInt(COSName.getPDFName(key), value); }
/** * Sets the marked content identifier. * * @param mcid the marked content identifier */ public void setMCID(int mcid) { this.getCOSObject().setInt(COSName.MCID, mcid); }
/** * Sets the next key in the parent tree. * * @param parentTreeNextkey the next key in the parent tree. */ public void setParentTreeNextKey(int parentTreeNextkey) { this.getCOSObject().setInt(COSName.PARENT_TREE_NEXT_KEY, parentTreeNextkey); }
private void increaseParents(COSDictionary parentDict) { do { int cnt = parentDict.getInt(COSName.COUNT); parentDict.setInt(COSName.COUNT, cnt + 1); parentDict = (COSDictionary) parentDict.getDictionaryObject(COSName.PARENT); } while (parentDict != null); } }
/** * Creates a new tiling pattern. */ public PDTilingPattern() { super(new COSStream()); getCOSObject().setName(COSName.TYPE, COSName.PATTERN.getName()); getCOSObject().setInt(COSName.PATTERN_TYPE, PDAbstractPattern.TYPE_TILING_PATTERN); // Resources required per PDF specification; when missing, pattern is not displayed in Adobe Reader setResources(new PDResources()); }