Java Code Examples for org.apache.pdfbox.cos.COSDocument#createCOSStream()
The following examples show how to use
org.apache.pdfbox.cos.COSDocument#createCOSStream() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PDFXRefStream.java From gcs with Mozilla Public License 2.0 | 5 votes |
/** * Create a fresh XRef stream like for a fresh file or an incremental update. * * @param cosDocument */ public PDFXRefStream(COSDocument cosDocument) { stream = cosDocument.createCOSStream(); streamData = new TreeMap<Long, Object>(); objectNumbers = new TreeSet<Long>(); }
Example 2
Source File: PDStream.java From gcs with Mozilla Public License 2.0 | 2 votes |
/** * Creates a new empty PDStream object. * * @param document The document that the stream will be part of. */ public PDStream(COSDocument document) { stream = document.createCOSStream(); }