/** * The software module revision number, corresponding to the Date attribute. * * @param revision is the software module revision number */ public void setRevision(long revision) { dictionary.setLong(COSName.R, revision); }
/** * 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> * * @param revision is the software module revision number */ public void setMinimumRevision(long revision) { dictionary.setLong(COSName.V, revision); }
/** * 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 setLong(String key, long value) { setLong(COSName.getPDFName(key), value); }
/** * The software module revision number, corresponding to the Date attribute. * * @param revision is the software module revision number */ public void setRevision(long revision) { dictionary.setLong(COSName.R, revision); }
/** * The software module revision number, corresponding to the Date attribute. * * @param revision is the software module revision number */ public void setRevision(long revision) { dictionary.setLong(COSName.R, revision); }
/** * 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> * * @param revision is the software module revision number */ public void setMinimumRevision(long revision) { dictionary.setLong(COSName.V, revision); }
/** * This will write the trailer to the PDF document. * * @param doc The document to create the trailer for. * * @throws IOException If there is an IOError while writing the document. */ protected void doWriteTrailer(COSDocument doc) throws IOException { getStandardOutput().write(TRAILER); getStandardOutput().writeEOL(); COSDictionary trailer = doc.getTrailer(); //sort xref, needed only if object keys not regenerated Collections.sort(getXRefEntries()); COSWriterXRefEntry lastEntry = getXRefEntries().get( getXRefEntries().size()-1); trailer.setLong(COSName.SIZE, lastEntry.getKey().getNumber()+1); // Only need to stay, if an incremental update will be performed if (!incrementalUpdate) { trailer.removeItem( COSName.PREV ); } if (!doc.isXRefStream()) { trailer.removeItem( COSName.XREF_STM ); } // Remove a checksum if present trailer.removeItem( COSName.DOC_CHECKSUM ); trailer.accept(this); }
/** * 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> * * @param revision is the software module revision number */ public void setMinimumRevision(long revision) { dictionary.setLong(COSName.V, revision); }
/** * 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 setLong(String key, long value) { setLong(COSName.getPDFName(key), value); }
/** * 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 setLong(String key, long value) { setLong(COSName.getPDFName(key), value); }
/** * This will write the trailer to the PDF document. * * @param doc The document to create the trailer for. * * @throws IOException If there is an IOError while writing the document. */ protected void doWriteTrailer(COSDocument doc) throws IOException { getStandardOutput().write(TRAILER); getStandardOutput().writeEOL(); COSDictionary trailer = doc.getTrailer(); //sort xref, needed only if object keys not regenerated Collections.sort(getXRefEntries()); COSWriterXRefEntry lastEntry = getXRefEntries().get( getXRefEntries().size()-1); trailer.setLong(COSName.SIZE, lastEntry.getKey().getNumber()+1); // Only need to stay, if an incremental update will be performed if (!incrementalUpdate) { trailer.removeItem( COSName.PREV ); } if (!doc.isXRefStream()) { trailer.removeItem( COSName.XREF_STM ); } // Remove a checksum if present trailer.removeItem( COSName.DOC_CHECKSUM ); trailer.accept(this); }
/** * This will write the trailer to the PDF document. * * @param doc The document to create the trailer for. * * @throws IOException If there is an IOError while writing the document. */ protected void doWriteTrailer(COSDocument doc) throws IOException { getStandardOutput().write(TRAILER); getStandardOutput().writeEOL(); COSDictionary trailer = doc.getTrailer(); //sort xref, needed only if object keys not regenerated Collections.sort(getXRefEntries()); COSWriterXRefEntry lastEntry = getXRefEntries().get( getXRefEntries().size()-1); trailer.setLong(COSName.SIZE, lastEntry.getKey().getNumber()+1); // Only need to stay, if an incremental update will be performed if (!incrementalUpdate) { trailer.removeItem( COSName.PREV ); } if (!doc.isXRefStream()) { trailer.removeItem( COSName.XREF_STM ); } // Remove a checksum if present trailer.removeItem( COSName.DOC_CHECKSUM ); trailer.accept(this); }