iText 7 7.1.8 API
|
Reads a PDF document. More...
Classes |
|
class | ReusableRandomAccessSource |
Public Member Functions |
|
PdfReader (IRandomAccessSource byteSource, ReaderProperties properties) | |
Constructs a new PdfReader. More... |
|
PdfReader (Stream @is, ReaderProperties properties) | |
Reads and parses a PDF document. More... |
|
PdfReader (FileInfo file) | |
Reads and parses a PDF document. More... |
|
PdfReader (Stream @is) | |
Reads and parses a PDF document. More... |
|
PdfReader (String filename, ReaderProperties properties) | |
Reads and parses a PDF document. More... |
|
PdfReader (String filename) | |
Reads and parses a PDF document. More... |
|
virtual void | Close () |
Close iText.IO.Source.PdfTokenizer More... |
|
virtual iText.Kernel.Pdf.PdfReader | SetUnethicalReading (bool unethicalReading) |
The iText is not responsible if you decide to change the value of this parameter. More... |
|
virtual bool | IsCloseStream () |
Gets whether Close() method shall close input stream. More... |
|
virtual void | SetCloseStream (bool closeStream) |
Sets whether Close() method shall close input stream. More... |
|
virtual bool | HasRebuiltXref () |
If any exception generated while reading XRef section, PdfReader will try to rebuild it. More... |
|
virtual bool | HasHybridXref () |
Some documents contain hybrid XRef, for more information see "7.5.8.4 Compatibility with Applications That Do Not Support Compressed Reference Streams" in PDF 32000-1:2008 spec. More... |
|
virtual bool | HasXrefStm () |
Indicates whether the document has Cross-Reference Streams. More... |
|
virtual bool | HasFixedXref () |
If any exception generated while reading PdfObject, PdfReader will try to fix offsets of all objects. More... |
|
virtual long | GetLastXref () |
Gets position of the last Cross-Reference table. More... |
|
virtual byte[] | ReadStreamBytes (PdfStream stream, bool decode) |
Reads, decrypt and optionally decode stream bytes. More... |
|
virtual byte[] | ReadStreamBytesRaw (PdfStream stream) |
Reads and decrypt stream bytes. More... |
|
virtual Stream | ReadStream (PdfStream stream, bool decode) |
Reads, decrypt and optionally decode stream bytes into System.IO.MemoryStreamUser is responsible for closing returned stream. More... |
|
virtual RandomAccessFileOrArray | GetSafeFile () |
Gets a new file instance of the original PDF document. More... |
|
virtual long | GetFileLength () |
Provides the size of the opened file. More... |
|
virtual bool | IsOpenedWithFullPermission () |
Checks if the document was opened with the owner password so that the end application can decide what level of access restrictions to apply. More... |
|
virtual long | GetPermissions () |
Gets the encryption permissions. More... |
|
virtual int | GetCryptoMode () |
Gets encryption algorithm and access permissions. More... |
|
virtual PdfAConformanceLevel | GetPdfAConformanceLevel () |
Gets the declared Pdf/A conformance level of the source document that is being read. More... |
|
virtual byte[] | ComputeUserPassword () |
Computes user password if standard encryption handler is used with Standard40, Standard128 or AES128 encryption algorithm. More... |
|
virtual byte[] | GetOriginalFileId () |
Gets original file ID, the first element in PdfName.ID key of trailer. If the size of ID array does not equal 2, an empty array will be returned. More... |
|
virtual byte[] | GetModifiedFileId () |
Gets modified file ID, the second element in PdfName.ID key of trailer. If the size of ID array does not equal 2, an empty array will be returned. More... |
|
virtual bool | IsEncrypted () |
Static Public Member Functions |
|
static byte[] | DecodeBytes (byte[] b, PdfDictionary streamDictionary) |
Decode bytes applying the filters specified in the provided dictionary using default filter handlers. More... |
|
static byte[] | DecodeBytes (byte[] b, PdfDictionary streamDictionary, IDictionary< PdfName, IFilterHandler > filterHandlers) |
Decode a byte[] applying the filters specified in the provided dictionary using the provided filter handlers. More... |
|
Reads a PDF document.
|
inline |
Constructs a new PdfReader.
byteSource | source of bytes for the reader |
properties | properties of the created reader |
System.IO.IOException |
|
inline |
Reads and parses a PDF document.
is | the InputStream containing the document. The stream is read to the end but is not closed. |
properties | properties of the created reader |
System.IO.IOException | on error |
|
inline |
Reads and parses a PDF document.
file | the File containing the document. |
System.IO.IOException | on error |
System.IO.FileNotFoundException | when the specified File is not found |
|
inline |
Reads and parses a PDF document.
is | the InputStream containing the document. the InputStream containing the document. The stream is read to the end but is not closed. |
System.IO.IOException | on error |
|
inline |
Reads and parses a PDF document.
filename | the file name of the document |
properties | properties of the created reader |
System.IO.IOException | on error |
|
inline |
Reads and parses a PDF document.
filename | the file name of the document |
System.IO.IOException | on error |
|
inlinevirtual |
Close iText.IO.Source.PdfTokenizer
System.IO.IOException | on error. |
|
inlinevirtual |
Computes user password if standard encryption handler is used with Standard40, Standard128 or AES128 encryption algorithm.
|
inlinestatic |
Decode bytes applying the filters specified in the provided dictionary using default filter handlers.
b | the bytes to decode |
streamDictionary | the dictionary that contains filter information |
iText.Kernel.PdfException | if there are any problems decoding the bytes |
|
inlinestatic |
Decode a byte[] applying the filters specified in the provided dictionary using the provided filter handlers.
b | the bytes to decode |
streamDictionary | the dictionary that contains filter information |
filterHandlers | the map used to look up a handler for each type of filter |
iText.Kernel.PdfException | if there are any problems decoding the bytes |
|
inlinevirtual |
Gets encryption algorithm and access permissions.
|
inlinevirtual |
Provides the size of the opened file.
System.IO.IOException | on error. |
|
inlinevirtual |
Gets position of the last Cross-Reference table.
|
inlinevirtual |
Gets modified file ID, the second element in PdfName.ID key of trailer. If the size of ID array does not equal 2, an empty array will be returned.
|
inlinevirtual |
Gets original file ID, the first element in PdfName.ID key of trailer. If the size of ID array does not equal 2, an empty array will be returned.
PdfDocument::getOriginalDocumentId(). The ultimate document id should be taken from PdfDocument
|
inlinevirtual |
Gets the declared Pdf/A conformance level of the source document that is being read.
Gets the declared Pdf/A conformance level of the source document that is being read. Note that this information is provided via XMP metadata and is not verified by iText.
null
if no Pdf/A conformance level information is specified.
|
inlinevirtual |
Gets the encryption permissions.
Gets the encryption permissions. It can be used directly in WriterProperties.SetStandardEncryption(byte[], byte[], int, int)See ISO 32000-1, Table 22 for more details.
|
inlinevirtual |
Gets a new file instance of the original PDF document.
|
inlinevirtual |
|
inlinevirtual |
Some documents contain hybrid XRef, for more information see "7.5.8.4 Compatibility with Applications That Do Not Support Compressed Reference Streams" in PDF 32000-1:2008 spec.
|
inlinevirtual |
|
inlinevirtual |
Indicates whether the document has Cross-Reference Streams.
|
inlinevirtual |
|
inlinevirtual |
Checks if the document was opened with the owner password so that the end application can decide what level of access restrictions to apply.
Checks if the document was opened with the owner password so that the end application can decide what level of access restrictions to apply. If the document is not encrypted it will return true
true
if the document was opened with the owner password or if it's not encrypted, false
if the document was opened with the user password.
|
inlinevirtual |
Reads, decrypt and optionally decode stream bytes into System.IO.MemoryStreamUser is responsible for closing returned stream.
decode | true if to get decoded stream, false if to leave it originally encoded. |
null
if reading was failed.
System.IO.IOException | on error. |
|
inlinevirtual |
Reads, decrypt and optionally decode stream bytes.
Reads, decrypt and optionally decode stream bytes. Note, this method doesn't store actual bytes in any internal structures.
decode | true if to get decoded stream bytes, false if to leave it originally encoded. |
System.IO.IOException | on error. |
|
inlinevirtual |
Reads and decrypt stream bytes.
Reads and decrypt stream bytes. Note, this method doesn't store actual bytes in any internal structures.
System.IO.IOException | on error. |
|
inlinevirtual |
|
inlinevirtual |
The iText is not responsible if you decide to change the value of this parameter.