public class PDFXRefStream extends Object
| Constructor and Description |
|---|
PDFXRefStream(COSDocument cosDocument)
Create a fresh XRef stream like for a fresh file or an incremental update.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(XReferenceEntry entry)
Add an new entry to the XRef stream.
|
void |
addTrailerInfo(COSDictionary trailerDict)
Copy all Trailer Information to this file.
|
COSStream |
getStream()
Returns the stream of the XRef.
|
void |
setSize(long streamSize)
Set the size of the XRef stream.
|
public PDFXRefStream(COSDocument cosDocument)
cosDocument - the COSDocmernt to be used to create a new COSStreampublic COSStream getStream() throws IOException
IOException - if something went wrongpublic void addTrailerInfo(COSDictionary trailerDict)
trailerDict - dictionary to be added as trailer infopublic void addEntry(XReferenceEntry entry)
entry - new entry to be addedpublic void setSize(long streamSize)
streamSize - size to bet set as stream sizeCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.