Class PrStream
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
public class PrStream : PdfStream
- Inheritance
-
PrStream
- Inherited Members
Constructors
PrStream(PdfReader, byte[])
public PrStream(PdfReader reader, byte[] conts)
Parameters
PrStream(PdfReader, byte[], int)
Creates a new PDF stream object that will replace a stream in a existing PDF file. @since 2.1.3 (replacing the existing constructor without param compressionLevel)
public PrStream(PdfReader reader, byte[] conts, int compressionLevel)
Parameters
reader
PdfReaderthe reader that holds the existing PDF
conts
byte[]the new content
compressionLevel
intthe compression level for the content
PrStream(PdfReader, int)
public PrStream(PdfReader reader, int offset)
Parameters
PrStream(PrStream, PdfDictionary)
public PrStream(PrStream stream, PdfDictionary newDic)
Parameters
stream
PrStreamnewDic
PdfDictionary
PrStream(PrStream, PdfDictionary, PdfReader)
public PrStream(PrStream stream, PdfDictionary newDic, PdfReader reader)
Parameters
stream
PrStreamnewDic
PdfDictionaryreader
PdfReader
Fields
length
protected int length
Field Value
objGen
protected int objGen
Field Value
objNum
added by ujihara for decryption
protected int objNum
Field Value
offset
protected int offset
Field Value
reader
protected PdfReader reader
Field Value
Properties
Length
public int Length { get; set; }
Property Value
ObjGen
public int ObjGen { get; set; }
Property Value
ObjNum
public int ObjNum { get; set; }
Property Value
Offset
public int Offset { get; }
Property Value
Reader
public PdfReader Reader { get; }
Property Value
Methods
GetBytes()
public byte[] GetBytes()
Returns
- byte[]
SetData(byte[])
Sets the data associated with the stream
public void SetData(byte[] data)
Parameters
data
byte[]raw data, decrypted and uncompressed.
SetData(byte[], bool)
Sets the data associated with the stream, either compressed or uncompressed. Note that the data will never be compressed if Document.compress is set to false. @since iText 2.1.1
public void SetData(byte[] data, bool compress)
Parameters
data
byte[]raw data, decrypted and uncompressed.
compress
booltrue if you want the stream to be compresssed.
SetData(byte[], bool, int)
Sets the data associated with the stream, either compressed or uncompressed. Note that the data will never be compressed if Document.compress is set to false. @since iText 2.1.3
public void SetData(byte[] data, bool compress, int compressionLevel)
Parameters
data
byte[]raw data, decrypted and uncompressed.
compress
booltrue if you want the stream to be compresssed.
compressionLevel
inta value between -1 and 9 (ignored if compress == false)
ToPdf(PdfWriter, Stream)
public override void ToPdf(PdfWriter writer, Stream os)