C# Class iTextSharp.text.pdf.PdfReader

Inheritance: IPdfViewerPreferences, IDisposable
显示文件 Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Protected Properties

Property Type Description
acroForm PRAcroForm
acroFormParsed bool
catalog PdfDictionary
certificate Org.BouncyCastle.X509.X509Certificate
certificateKey ICipherParameters
consolidateNamedDestinations bool
decrypt PdfEncryption
encrypted bool
eofPos int
freeXref int
lastXref int
newXrefType bool
objStmMark Hashtable
objStmToOffset IntHashtable
pValue int
pageRefs PageRefs
password byte[]
pdfVersion char
rValue int
rebuilt bool
sharedStreams bool
strings ArrayList
tampered bool
tokens PRTokeniser
trailer PdfDictionary
xref int[]

Private Properties

Property Type Description
CheckPRStreamLength void
EnsureXrefSize void
EqualsArray bool
Equalsn bool
ExistsName bool
GetCryptoRef PdfIndirectReference
GetFontName String
GetNameArray PdfArray
GetPageRotation int
GetSubsetPrefix String
IterateBookmarks void
ReadDecryptedDocObj void
ReplaceNamedDestination bool
SetViewerPreferences void
SetXrefPartialObject void

Public Methods

Method Description
ASCII85Decode ( byte inp ) : byte[]
ASCIIHexDecode ( byte inp ) : byte[]
AddPdfObject ( PdfObject obj ) : PRIndirectReference
AddViewerPreference ( PdfName key, PdfObject value ) : void
Close ( ) : void
ComputeUserPassword ( ) : byte[]
ConsolidateNamedDestinations ( ) : void
CreateFakeFontSubsets ( ) : int
DecodePredictor ( byte inp, PdfObject dicPar ) : byte[]
DumpPerc ( ) : double
EliminateSharedStreams ( ) : void
FlateDecode ( byte inp ) : byte[]
FlateDecode ( byte inp, bool strict ) : byte[]
GetBoxSize ( int index, String boxName ) : Rectangle
GetCertificationLevel ( ) : int
GetCropBox ( int index ) : Rectangle
GetCryptoMode ( ) : int
GetJavaScript ( RandomAccessFileOrArray file ) : String
GetLinks ( int page ) : ArrayList
GetNamedDestination ( ) : Hashtable
GetNamedDestination ( bool keepNames ) : Hashtable
GetNamedDestinationFromNames ( ) : Hashtable
GetNamedDestinationFromNames ( bool keepNames ) : Hashtable
GetNamedDestinationFromStrings ( ) : Hashtable
GetNormalizedRectangle ( PdfArray box ) : Rectangle
GetPageContent ( int pageNum ) : byte[]
GetPageContent ( int pageNum, RandomAccessFileOrArray file ) : byte[]
GetPageN ( int pageNum ) : PdfDictionary
GetPageNRelease ( int pageNum ) : PdfDictionary
GetPageOrigRef ( int pageNum ) : PRIndirectReference
GetPageRotation ( int index ) : int
GetPageSize ( PdfDictionary page ) : Rectangle
GetPageSize ( int index ) : Rectangle
GetPageSizeWithRotation ( PdfDictionary page ) : Rectangle
GetPageSizeWithRotation ( int index ) : Rectangle
GetPdfObject ( PdfObject obj ) : PdfObject
GetPdfObject ( PdfObject obj, PdfObject parent ) : PdfObject
GetPdfObject ( int idx ) : PdfObject
GetPdfObjectRelease ( PdfObject obj ) : PdfObject
GetPdfObjectRelease ( PdfObject obj, PdfObject parent ) : PdfObject
GetPdfObjectRelease ( int idx ) : PdfObject
GetStreamBytes ( PRStream stream ) : byte[]
GetStreamBytes ( PRStream stream, RandomAccessFileOrArray file ) : byte[]
GetStreamBytesRaw ( PRStream stream ) : byte[]
GetStreamBytesRaw ( PRStream stream, RandomAccessFileOrArray file ) : byte[]
Is128Key ( ) : bool
IsEncrypted ( ) : bool
IsHybridXref ( ) : bool
IsMetadataEncrypted ( ) : bool
IsNewXrefType ( ) : bool
IsRebuilt ( ) : bool
KillIndirect ( PdfObject obj ) : PdfObject
LZWDecode ( byte inp ) : byte[]
PdfReader ( PdfReader reader ) : System
PdfReader ( RandomAccessFileOrArray raf, byte ownerPassword ) : System
PdfReader ( Stream isp ) : System
PdfReader ( Stream isp, byte ownerPassword ) : System
PdfReader ( String filename ) : System
PdfReader ( String filename, X509Certificate certificate, ICipherParameters certificateKey ) : System
PdfReader ( String filename, byte ownerPassword ) : System
PdfReader ( Uri url ) : System
PdfReader ( Uri url, byte ownerPassword ) : System
PdfReader ( byte pdfIn ) : System
PdfReader ( byte pdfIn, byte ownerPassword ) : System
ReleaseLastXrefPartial ( ) : void
ReleaseLastXrefPartial ( PdfObject obj ) : void
ReleasePage ( int pageNum ) : void
RemoveAnnotations ( ) : void
RemoveFields ( ) : void
RemoveUnusedObjects ( ) : int
RemoveUsageRights ( ) : void
ResetLastXrefPartial ( ) : void
ResetReleasePage ( ) : void
SelectPages ( ArrayList pagesToKeep ) : void
SelectPages ( String ranges ) : void
SetPageContent ( int pageNum, byte content ) : void
SetPageContent ( int pageNum, byte content, int compressionLevel ) : void
ShuffleSubsetNames ( ) : int

Protected Methods

Method Description
DuplicatePdfDictionary ( PdfDictionary original, PdfDictionary copy, PdfReader newReader ) : PdfDictionary
DuplicatePdfObject ( PdfObject original, PdfReader newReader ) : PdfObject
GetPdfReaderInstance ( PdfWriter writer ) : PdfReaderInstance
KillXref ( PdfObject obj ) : void
PdfReader ( ) : System
ReadArray ( ) : PdfArray
ReadDictionary ( ) : PdfDictionary
ReadDocObj ( ) : void
ReadDocObjPartial ( ) : void
ReadObjStm ( PRStream stream, IntHashtable map ) : void
ReadOneObjStm ( PRStream stream, int idx ) : PdfObject
ReadPRObject ( ) : PdfObject
ReadPages ( ) : void
ReadPdf ( ) : void
ReadPdfPartial ( ) : void
ReadSingleObject ( int k ) : PdfObject
ReadXRefStream ( int ptr ) : bool
ReadXref ( ) : void
ReadXrefSection ( ) : PdfDictionary
RebuildXref ( ) : void
RemoveUnusedNode ( PdfObject obj, bool hits ) : void

Private Methods

Method Description
CheckPRStreamLength ( PRStream stream ) : void
EnsureXrefSize ( int size ) : void
EqualsArray ( byte ar1, byte ar2, int size ) : bool
Equalsn ( byte a1, byte a2 ) : bool
ExistsName ( PdfDictionary dic, PdfName key, PdfName value ) : bool
GetCryptoRef ( ) : PdfIndirectReference
GetFontName ( PdfDictionary dic ) : String
GetNameArray ( PdfObject obj ) : PdfArray
GetPageRotation ( PdfDictionary page ) : int
GetSubsetPrefix ( PdfDictionary dic ) : String
IterateBookmarks ( PdfObject outlineRef, Hashtable names ) : void
ReadDecryptedDocObj ( ) : void
ReplaceNamedDestination ( PdfObject obj, Hashtable names ) : bool
SetViewerPreferences ( PdfViewerPreferencesImp vp ) : void
SetXrefPartialObject ( int idx, PdfObject obj ) : void

Method Details

ASCII85Decode() public static method

public static ASCII85Decode ( byte inp ) : byte[]
inp byte
return byte[]

ASCIIHexDecode() public static method

public static ASCIIHexDecode ( byte inp ) : byte[]
inp byte
return byte[]

AddPdfObject() public method

public AddPdfObject ( PdfObject obj ) : PRIndirectReference
obj PdfObject
return PRIndirectReference

AddViewerPreference() public method

public AddViewerPreference ( PdfName key, PdfObject value ) : void
key PdfName
value PdfObject
return void

Close() public method

public Close ( ) : void
return void

ComputeUserPassword() public method

public ComputeUserPassword ( ) : byte[]
return byte[]

ConsolidateNamedDestinations() public method

public ConsolidateNamedDestinations ( ) : void
return void

CreateFakeFontSubsets() public method

public CreateFakeFontSubsets ( ) : int
return int

DecodePredictor() public static method

public static DecodePredictor ( byte inp, PdfObject dicPar ) : byte[]
inp byte
dicPar PdfObject
return byte[]

DumpPerc() public method

public DumpPerc ( ) : double
return double

DuplicatePdfDictionary() protected static method

protected static DuplicatePdfDictionary ( PdfDictionary original, PdfDictionary copy, PdfReader newReader ) : PdfDictionary
original PdfDictionary
copy PdfDictionary
newReader PdfReader
return PdfDictionary

DuplicatePdfObject() protected static method

protected static DuplicatePdfObject ( PdfObject original, PdfReader newReader ) : PdfObject
original PdfObject
newReader PdfReader
return PdfObject

EliminateSharedStreams() public method

public EliminateSharedStreams ( ) : void
return void

FlateDecode() public static method

public static FlateDecode ( byte inp ) : byte[]
inp byte
return byte[]

FlateDecode() public static method

public static FlateDecode ( byte inp, bool strict ) : byte[]
inp byte
strict bool
return byte[]

GetBoxSize() public method

public GetBoxSize ( int index, String boxName ) : Rectangle
index int
boxName String
return iTextSharp.text.Rectangle

GetCertificationLevel() public method

public GetCertificationLevel ( ) : int
return int

GetCropBox() public method

public GetCropBox ( int index ) : Rectangle
index int
return iTextSharp.text.Rectangle

GetCryptoMode() public method

public GetCryptoMode ( ) : int
return int

GetJavaScript() public method

public GetJavaScript ( RandomAccessFileOrArray file ) : String
file RandomAccessFileOrArray
return String

GetLinks() public method

public GetLinks ( int page ) : ArrayList
page int
return ArrayList

GetNamedDestination() public method

public GetNamedDestination ( ) : Hashtable
return Hashtable

GetNamedDestination() public method

public GetNamedDestination ( bool keepNames ) : Hashtable
keepNames bool
return Hashtable

GetNamedDestinationFromNames() public method

public GetNamedDestinationFromNames ( ) : Hashtable
return Hashtable

GetNamedDestinationFromNames() public method

public GetNamedDestinationFromNames ( bool keepNames ) : Hashtable
keepNames bool
return Hashtable

GetNamedDestinationFromStrings() public method

public GetNamedDestinationFromStrings ( ) : Hashtable
return Hashtable

GetNormalizedRectangle() public static method

public static GetNormalizedRectangle ( PdfArray box ) : Rectangle
box PdfArray
return iTextSharp.text.Rectangle

GetPageContent() public method

public GetPageContent ( int pageNum ) : byte[]
pageNum int
return byte[]

GetPageContent() public method

public GetPageContent ( int pageNum, RandomAccessFileOrArray file ) : byte[]
pageNum int
file RandomAccessFileOrArray
return byte[]

GetPageN() public method

public GetPageN ( int pageNum ) : PdfDictionary
pageNum int
return PdfDictionary

GetPageNRelease() public method

public GetPageNRelease ( int pageNum ) : PdfDictionary
pageNum int
return PdfDictionary

GetPageOrigRef() public method

public GetPageOrigRef ( int pageNum ) : PRIndirectReference
pageNum int
return PRIndirectReference

GetPageRotation() public method

public GetPageRotation ( int index ) : int
index int
return int

GetPageSize() public method

public GetPageSize ( PdfDictionary page ) : Rectangle
page PdfDictionary
return iTextSharp.text.Rectangle

GetPageSize() public method

public GetPageSize ( int index ) : Rectangle
index int
return iTextSharp.text.Rectangle

GetPageSizeWithRotation() public method

public GetPageSizeWithRotation ( PdfDictionary page ) : Rectangle
page PdfDictionary
return iTextSharp.text.Rectangle

GetPageSizeWithRotation() public method

public GetPageSizeWithRotation ( int index ) : Rectangle
index int
return iTextSharp.text.Rectangle

GetPdfObject() public static method

public static GetPdfObject ( PdfObject obj ) : PdfObject
obj PdfObject
return PdfObject

GetPdfObject() public static method

public static GetPdfObject ( PdfObject obj, PdfObject parent ) : PdfObject
obj PdfObject
parent PdfObject
return PdfObject

GetPdfObject() public method

public GetPdfObject ( int idx ) : PdfObject
idx int
return PdfObject

GetPdfObjectRelease() public static method

public static GetPdfObjectRelease ( PdfObject obj ) : PdfObject
obj PdfObject
return PdfObject

GetPdfObjectRelease() public static method

public static GetPdfObjectRelease ( PdfObject obj, PdfObject parent ) : PdfObject
obj PdfObject
parent PdfObject
return PdfObject

GetPdfObjectRelease() public method

public GetPdfObjectRelease ( int idx ) : PdfObject
idx int
return PdfObject

GetPdfReaderInstance() protected method

protected GetPdfReaderInstance ( PdfWriter writer ) : PdfReaderInstance
writer PdfWriter
return PdfReaderInstance

GetStreamBytes() public static method

public static GetStreamBytes ( PRStream stream ) : byte[]
stream PRStream
return byte[]

GetStreamBytes() public static method

public static GetStreamBytes ( PRStream stream, RandomAccessFileOrArray file ) : byte[]
stream PRStream
file RandomAccessFileOrArray
return byte[]

GetStreamBytesRaw() public static method

public static GetStreamBytesRaw ( PRStream stream ) : byte[]
stream PRStream
return byte[]

GetStreamBytesRaw() public static method

public static GetStreamBytesRaw ( PRStream stream, RandomAccessFileOrArray file ) : byte[]
stream PRStream
file RandomAccessFileOrArray
return byte[]

Is128Key() public method

public Is128Key ( ) : bool
return bool

IsEncrypted() public method

public IsEncrypted ( ) : bool
return bool

IsHybridXref() public method

public IsHybridXref ( ) : bool
return bool

IsMetadataEncrypted() public method

public IsMetadataEncrypted ( ) : bool
return bool

IsNewXrefType() public method

public IsNewXrefType ( ) : bool
return bool

IsRebuilt() public method

public IsRebuilt ( ) : bool
return bool

KillIndirect() public static method

public static KillIndirect ( PdfObject obj ) : PdfObject
obj PdfObject
return PdfObject

KillXref() protected method

protected KillXref ( PdfObject obj ) : void
obj PdfObject
return void

LZWDecode() public static method

public static LZWDecode ( byte inp ) : byte[]
inp byte
return byte[]

PdfReader() protected method

protected PdfReader ( ) : System
return System

PdfReader() public method

public PdfReader ( PdfReader reader ) : System
reader PdfReader
return System

PdfReader() public method

public PdfReader ( RandomAccessFileOrArray raf, byte ownerPassword ) : System
raf RandomAccessFileOrArray
ownerPassword byte
return System

PdfReader() public method

public PdfReader ( Stream isp ) : System
isp Stream
return System

PdfReader() public method

public PdfReader ( Stream isp, byte ownerPassword ) : System
isp Stream
ownerPassword byte
return System

PdfReader() public method

public PdfReader ( String filename ) : System
filename String
return System

PdfReader() public method

public PdfReader ( String filename, X509Certificate certificate, ICipherParameters certificateKey ) : System
filename String
certificate Org.BouncyCastle.X509.X509Certificate
certificateKey ICipherParameters
return System

PdfReader() public method

public PdfReader ( String filename, byte ownerPassword ) : System
filename String
ownerPassword byte
return System

PdfReader() public method

public PdfReader ( Uri url ) : System
url System.Uri
return System

PdfReader() public method

public PdfReader ( Uri url, byte ownerPassword ) : System
url System.Uri
ownerPassword byte
return System

PdfReader() public method

public PdfReader ( byte pdfIn ) : System
pdfIn byte
return System

PdfReader() public method

public PdfReader ( byte pdfIn, byte ownerPassword ) : System
pdfIn byte
ownerPassword byte
return System

ReadArray() protected method

protected ReadArray ( ) : PdfArray
return PdfArray

ReadDictionary() protected method

protected ReadDictionary ( ) : PdfDictionary
return PdfDictionary

ReadDocObj() protected method

protected ReadDocObj ( ) : void
return void

ReadDocObjPartial() protected method

protected ReadDocObjPartial ( ) : void
return void

ReadObjStm() protected method

protected ReadObjStm ( PRStream stream, IntHashtable map ) : void
stream PRStream
map IntHashtable
return void

ReadOneObjStm() protected method

protected ReadOneObjStm ( PRStream stream, int idx ) : PdfObject
stream PRStream
idx int
return PdfObject

ReadPRObject() protected method

protected ReadPRObject ( ) : PdfObject
return PdfObject

ReadPages() protected method

protected ReadPages ( ) : void
return void

ReadPdf() protected method

protected ReadPdf ( ) : void
return void

ReadPdfPartial() protected method

protected ReadPdfPartial ( ) : void
return void

ReadSingleObject() protected method

protected ReadSingleObject ( int k ) : PdfObject
k int
return PdfObject

ReadXRefStream() protected method

protected ReadXRefStream ( int ptr ) : bool
ptr int
return bool

ReadXref() protected method

protected ReadXref ( ) : void
return void

ReadXrefSection() protected method

protected ReadXrefSection ( ) : PdfDictionary
return PdfDictionary

RebuildXref() protected method

protected RebuildXref ( ) : void
return void

ReleaseLastXrefPartial() public method

public ReleaseLastXrefPartial ( ) : void
return void

ReleaseLastXrefPartial() public static method

public static ReleaseLastXrefPartial ( PdfObject obj ) : void
obj PdfObject
return void

ReleasePage() public method

public ReleasePage ( int pageNum ) : void
pageNum int
return void

RemoveAnnotations() public method

public RemoveAnnotations ( ) : void
return void

RemoveFields() public method

public RemoveFields ( ) : void
return void

RemoveUnusedNode() protected method

protected RemoveUnusedNode ( PdfObject obj, bool hits ) : void
obj PdfObject
hits bool
return void

RemoveUnusedObjects() public method

public RemoveUnusedObjects ( ) : int
return int

RemoveUsageRights() public method

public RemoveUsageRights ( ) : void
return void

ResetLastXrefPartial() public method

public ResetLastXrefPartial ( ) : void
return void

ResetReleasePage() public method

public ResetReleasePage ( ) : void
return void

SelectPages() public method

public SelectPages ( ArrayList pagesToKeep ) : void
pagesToKeep ArrayList
return void

SelectPages() public method

public SelectPages ( String ranges ) : void
ranges String
return void

SetPageContent() public method

public SetPageContent ( int pageNum, byte content ) : void
pageNum int
content byte
return void

SetPageContent() public method

public SetPageContent ( int pageNum, byte content, int compressionLevel ) : void
pageNum int
content byte
compressionLevel int
return void

ShuffleSubsetNames() public method

public ShuffleSubsetNames ( ) : int
return int

Property Details

acroForm protected_oe property

protected PRAcroForm,iTextSharp.text.pdf acroForm
return PRAcroForm

acroFormParsed protected_oe property

protected bool acroFormParsed
return bool

catalog protected_oe property

protected PdfDictionary,iTextSharp.text.pdf catalog
return PdfDictionary

certificate protected_oe property

protected X509Certificate,Org.BouncyCastle.X509 certificate
return Org.BouncyCastle.X509.X509Certificate

certificateKey protected_oe property

protected ICipherParameters certificateKey
return ICipherParameters

consolidateNamedDestinations protected_oe property

protected bool consolidateNamedDestinations
return bool

decrypt protected_oe property

protected PdfEncryption,iTextSharp.text.pdf decrypt
return PdfEncryption

encrypted protected_oe property

protected bool encrypted
return bool

eofPos protected_oe property

protected int eofPos
return int

freeXref protected_oe property

protected int freeXref
return int

lastXref protected_oe property

protected int lastXref
return int

newXrefType protected_oe property

protected bool newXrefType
return bool

objStmMark protected_oe property

protected Hashtable objStmMark
return Hashtable

objStmToOffset protected_oe property

protected IntHashtable,iTextSharp.text.pdf objStmToOffset
return IntHashtable

pValue protected_oe property

protected int pValue
return int

pageRefs protected_oe property

protected PageRefs pageRefs
return PageRefs

password protected_oe property

protected byte[] password
return byte[]

pdfVersion protected_oe property

protected char pdfVersion
return char

rValue protected_oe property

protected int rValue
return int

rebuilt protected_oe property

protected bool rebuilt
return bool

sharedStreams protected_oe property

protected bool sharedStreams
return bool

strings protected_oe property

protected ArrayList strings
return ArrayList

tampered protected_oe property

protected bool tampered
return bool

tokens protected_oe property

protected PRTokeniser,iTextSharp.text.pdf tokens
return PRTokeniser

trailer protected_oe property

protected PdfDictionary,iTextSharp.text.pdf trailer
return PdfDictionary

xref protected_oe property

protected int[] xref
return int[]