public class

PDFDocWithoutOwnership

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

Class Overview

Doc created for debugging purposes to be used until we sort out ownership issues for documents created through universal conversion.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.PDFDoc
[Expand]
Inherited Fields
From class com.pdftron.pdf.PDFDoc
Public Constructors
PDFDocWithoutOwnership()
Default constructor.
PDFDocWithoutOwnership(Filter stream)
Open an existing PDF document.
PDFDocWithoutOwnership(InputStream stream)
Open an existing PDF document from an InputStream.
PDFDocWithoutOwnership(InputStream stream, int size)
Open an existing PDF document from an InputStream.
Public Methods
static PDFDocWithoutOwnership __Create(long impl)
[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 PDFDocWithoutOwnership ()

Default constructor. Creates an empty new document.

public PDFDocWithoutOwnership (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 PDFDocWithoutOwnership (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 PDFDocWithoutOwnership (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 static PDFDocWithoutOwnership __Create (long impl)