/** * The software module revision number, corresponding to the Date attribute. * * @return the revision of the software module */ public long getRevision() { return dictionary.getLong(COSName.R); }
/** * This is a convenience method that will get the dictionary object that is expected to be an long. -1 is returned * if there is no value. * * @param key The key to the item in the dictionary. * @return The long value. */ public long getLong(COSName key) { return getLong(key, -1L); }
/** * The software module revision number, used to determinate the minimum version of software that * is required in order to process this signature. * <p> * NOTE: this entry is deprecated for PDF v1.7 * </p> * * @return the revision of the software module */ public long getMinimumRevision() { return dictionary.getLong(COSName.V); }
/** * This is a convenience method that will get the dictionary object that is expected to be an long. -1 is returned * if there is no value. * * @param key The key to the item in the dictionary. * * @return The long value. */ public long getLong(String key) { return getLong(COSName.getPDFName(key), -1L); }
/** * This is a convenience method that will get the dictionary object that is expected to be an integer. If the * dictionary value is null then the default value will be returned. * * @param key The key to the item in the dictionary. * @param defaultValue The value to return if the dictionary item is null. * @return The integer value. */ public long getLong(String key, long defaultValue) { return getLong(COSName.getPDFName(key), defaultValue); }
while ( curObj.trailer != null ) long prevBytePos = curObj.trailer.getLong( COSName.PREV, -1L ); if ( prevBytePos == -1 )
/** * Parses an xref object stream starting with indirect object id. * * @return value of PREV item in dictionary or <code>-1</code> if no such item exists */ private long parseXrefObjStream(long objByteOffset, boolean isStandalone) throws IOException { // ---- parse indirect object head long objectNumber = readObjectNumber(); // remember the highest XRef object number to avoid it being reused in incremental saving long currentHighestXRefObjectNumber = document.getHighestXRefObjectNumber(); document.setHighestXRefObjectNumber(Math.max(currentHighestXRefObjectNumber, objectNumber)); readGenerationNumber(); readExpectedString(OBJ_MARKER, true); COSDictionary dict = parseCOSDictionary(); try (COSStream xrefStream = parseCOSStream(dict)) { parseXrefStream(xrefStream, objByteOffset, isStandalone); } return dict.getLong(COSName.PREV); }
/** * The software module revision number, corresponding to the Date attribute. * * @return the revision of the software module */ public long getRevision() { return dictionary.getLong(COSName.R); }
/** * This is a convenience method that will get the dictionary object that is expected to be an long. -1 is returned * if there is no value. * * @param key The key to the item in the dictionary. * @return The long value. */ public long getLong(COSName key) { return getLong(key, -1L); }
/** * The software module revision number, corresponding to the Date attribute. * * @return the revision of the software module */ public long getRevision() { return dictionary.getLong(COSName.R); }
/** * This is a convenience method that will get the dictionary object that is expected to be an long. -1 is returned * if there is no value. * * @param key The key to the item in the dictionary. * @return The long value. */ public long getLong(COSName key) { return getLong(key, -1L); }
/** * The software module revision number, used to determinate the minimum version of software that * is required in order to process this signature. * <p> * NOTE: this entry is deprecated for PDF v1.7 * </p> * * @return the revision of the software module */ public long getMinimumRevision() { return dictionary.getLong(COSName.V); }
/** * The software module revision number, used to determinate the minimum version of software that * is required in order to process this signature. * <p> * NOTE: this entry is deprecated for PDF v1.7 * </p> * * @return the revision of the software module */ public long getMinimumRevision() { return dictionary.getLong(COSName.V); }
prev = trailer.getLong(COSName.PREV); if (prev > 0)
ctx.getFileLen() == linearizedDict.getLong(COSName.L))
/** * This is a convenience method that will get the dictionary object that is expected to be an integer. If the * dictionary value is null then the default value will be returned. * * @param key The key to the item in the dictionary. * @param defaultValue The value to return if the dictionary item is null. * @return The integer value. */ public long getLong(String key, long defaultValue) { return getLong(COSName.getPDFName(key), defaultValue); }
/** * This is a convenience method that will get the dictionary object that is expected to be an long. -1 is returned * if there is no value. * * @param key The key to the item in the dictionary. * * @return The long value. */ public long getLong(String key) { return getLong(COSName.getPDFName(key), -1L); }
/** * This is a convenience method that will get the dictionary object that is expected to be an long. -1 is returned * if there is no value. * * @param key The key to the item in the dictionary. * * @return The long value. */ public long getLong(String key) { return getLong(COSName.getPDFName(key), -1L); }
/** * This is a convenience method that will get the dictionary object that is expected to be an integer. If the * dictionary value is null then the default Value will be returned. * * @param key The key to the item in the dictionary. * @param defaultValue The value to return if the dictionary item is null. * @return The integer value. */ public long getLong(String key, long defaultValue) { return getLong(COSName.getPDFName(key), defaultValue); }
hybridPrev = trailer.getLong(COSName.XREF_STM);