public class

TempDoc

extends PDFDoc
java.lang.Object
   ↳ com.pdftron.sdf.Doc
     ↳ com.pdftron.pdf.PDFDoc
       ↳ com.pdftron.pdf.TempDoc

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.PDFDoc
[Expand]
Inherited Fields
From class com.pdftron.pdf.PDFDoc
Public Constructors
TempDoc()
Default constructor.
TempDoc(Filter stream)
Open an existing PDF document.
TempDoc(InputStream stream)
Open an existing PDF document from an InputStream.
TempDoc(InputStream stream, int size)
Open an existing PDF document from an InputStream.
Public Methods
void invalidate()
[Expand]
Inherited Methods
From class com.pdftron.pdf.PDFDoc
From class com.pdftron.sdf.Doc
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public TempDoc ()

Default constructor. Creates an empty new document.

public TempDoc (Filter stream)

Open an existing PDF document.

Note: if the input stream doesn't support Seek() operation the document will load whole data stream in memory before parsing. In case of linearized PDF, the document may be parsed on-the-fly while it is being loaded in memory. Note that since StdFile implements Seek() interface, the document does not have to be fully in memory before it is used.

Note: Make sure to call InitSecurityHandler() after PDFDoc(...) for encrypted documents.

Parameters
stream - input stream containing a serialized document. The input stream may be a random-access file, memory buffer, slow HTTP connection etc.

public TempDoc (InputStream stream)

Open an existing PDF document from an InputStream.

Note: Make sure to call InitSecurityHandler() after FDFDoc(...) for encrypted documents.

Parameters
stream - input stream containing a serialized document.
Throws
PDFNetException
IOException Signals that an I/O exception has occurred.
PDFNetException

public TempDoc (InputStream stream, int size)

Open an existing PDF document from an InputStream.

Note: Make sure to call InitSecurityHandler() after FDFDoc(...) for encrypted documents.

Parameters
stream - input stream containing a serialized document.
size - the expected size of the input stream.
Throws
PDFNetException
IOException Signals that an I/O exception has occurred.
PDFNetException

Public Methods

public void invalidate ()