@Override String getFlagValue() { return "Flag value: " + dictionary.getInt(COSName.FF); }
@Override String getFlagValue() { return "Flag value:" + fontDescriptor.getInt(COSName.FLAGS); }
@Override public int getHeight() { return parameters.getInt(COSName.H, COSName.HEIGHT, -1); }
/** * Indicates if a timestamp is required. * * @return true if a timestamp is required */ public boolean isTimestampRequired() { return dictionary.getInt(COSName.FT, 0) != 0; }
/** * A set of flags specifying various characteristics of the action * * @return the flags */ public int getFlags() { return this.action.getInt(COSName.FLAGS, 0); }
@Override String getFlagValue() { return "Flag value: " + acroFormDictionary.getInt(COSName.SIG_FLAGS); }
@Override String getFlagValue() { return "Flag value:" + encryptDictionary.getInt(COSName.P); }
/** * This will return the V entry of the encryption dictionary.<br><br> * See PDF Reference 1.4 Table 3.13. * * @return The encryption version to use. */ public int getVersion() { return dictionary.getInt( COSName.V, 0 ); }
/** * This will get the permissions bit mask. * * @return The permissions bit mask. */ public int getPermissions() { return dictionary.getInt( COSName.P, 0 ); }
/** * This will get the key of this Page in the structural parent tree. * * @return the integer key of the page's entry in the structural parent tree or -1 if * there isn't any. */ public int getStructParents() { return page.getInt(COSName.STRUCT_PARENTS); }
/** * This will get the key of this annotation in the structural parent tree. * * @return the integer key of the annotation's entry in the structural parent tree or -1 if * there isn't any. */ public int getStructParent() { return getCOSObject().getInt(COSName.STRUCT_PARENT); }
/** * Get the order of interpolation between samples. Valid values are 1 and 3, * specifying linear and cubic spline interpolation, respectively. Default * is 1. See p.170 in PDF spec 1.7. * * @return order of interpolation. */ public int getOrder() { return getCOSObject().getInt(COSName.ORDER, 1); }
@Override protected void encode(InputStream input, OutputStream encoded, COSDictionary parameters) throws IOException { int cols = parameters.getInt(COSName.COLUMNS); int rows = parameters.getInt(COSName.ROWS); CCITTFaxEncoderStream ccittFaxEncoderStream = new CCITTFaxEncoderStream(encoded, cols, rows, TIFFExtension.FILL_LEFT_TO_RIGHT); IOUtils.copy(input, ccittFaxEncoderStream); input.close(); } }
@Override public int getBitsPerComponent() { if (isStencil()) { return 1; } else { return parameters.getInt(COSName.BPC, COSName.BITS_PER_COMPONENT, -1); } }
/** * This will return the paint type. * @return The paint type */ public int getPaintType() { return getCOSObject().getInt( COSName.PAINT_TYPE, 0 ); }
/** * This will retrieve the rotation of the annotation widget. It must be a multiple of 90. Default is 0 * * @return the rotation */ public int getRotation() { return this.getCOSObject().getInt(COSName.R, 0); }
/** * Returns the revision number (R). * * @return the revision number */ public int getRevisionNumber() { return this.getCOSObject().getInt(COSName.R, 0); }
/** * This will get the top index "TI" value. * * @return the top index, default value 0. */ public int getTopIndex() { return getCOSObject().getInt(COSName.TI, 0); }
/** * Gets the marked-content identifier. * * @return the marked-content identifier, or -1 if it doesn't exist. */ public int getMCID() { return this.getProperties() == null ? -1 : this.getProperties().getInt(COSName.MCID); }
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); } }