An instance of the JawsMako PDFPageExtractor class.
More...
#include <jawsmako/pdfpage.h>
|
virtual | ~IPDFPageExtractor () |
virtual uint32 | getNumPages ()=0 |
| Return the number of pages in the document.
|
virtual void | extract (const IOutputStreamPtr &outputStream, uint32 pageIndex, uint32 numPages)=0 |
| Extract a range of pages into a given output stream.
|
virtual void | extractFrom (const IOutputStreamPtr &outputStream, uint32 pageIndex)=0 |
| Extract a range of pages from a given index into a given output stream.
|
virtual void | extractTo (const IOutputStreamPtr &outputStream, uint32 pageIndex)=0 |
| Extract a range of pages to a given index into a given output stream.
|
virtual void | addRef () const =0 |
| Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
|
virtual bool | decRef () const =0 |
| Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
An instance of the JawsMako PDFPageExtractor class.
◆ ~IPDFPageExtractor()
virtual JawsMako::IPDFPageExtractor::~IPDFPageExtractor |
( |
| ) |
|
|
inlinevirtual |
◆ create()
Create an IPDFPageExtractor interface.
The IPDFPageExtractor interface allows extraction of pages from a PDF.
- Parameters
-
jawsMako | The IJawsMako object. |
inputStream | The input PDF stream. |
password | The password to use. Assumed to be UTF-8. |
permissions | The allowed permissions. |
If allowed permissions is set to IDOMStandardPDFSecurityInfo::eEverythingAllowed then no checking for assembly permissions will be performed.
Otherwise, the parameter is the or'd combination of IDOMStandardPDFSecurity::ePermissionsFlags that is checked against the permissions defined in the input PDF. If an operation corresponds to a flag set in the parameter, then output will be allowed to continue. Otherwise, an IError exception with the error code JM_ERR_ASSEMBLY_WRITE_FORBIDDEN will be thrown.
If the source has no permissions information the output will proceed regardless.
The default is 0.
- Parameters
-
progressMonitor | A smart pointer to an IProgressMonitor object which can be NULL if no such object was passed in. |
- Returns
- IPDFPageExtractorPtr A smart pointer to the IPDFPageExtractor object.
◆ extract()
virtual void JawsMako::IPDFPageExtractor::extract |
( |
const IOutputStreamPtr & | outputStream, |
|
|
uint32 | pageIndex, |
|
|
uint32 | numPages ) |
|
pure virtual |
Extract a range of pages into a given output stream.
Pages are numbered starting at zero. An exception will be thrown if an invalid page range is specified.
- Parameters
-
outputStream | The output stream. |
pageIndex | The index of the first page to extract. |
numPages | The number of pages to extract. |
◆ extractFrom()
virtual void JawsMako::IPDFPageExtractor::extractFrom |
( |
const IOutputStreamPtr & | outputStream, |
|
|
uint32 | pageIndex ) |
|
pure virtual |
Extract a range of pages from a given index into a given output stream.
A convenience function. Equivalent to extract(pageIndex, getNumPages());
Pages are numbered starting at zero. An exception will be thrown if an invalid page range is specified.
- Parameters
-
outputStream | The output stream. |
pageIndex | The index of the first page to extract. |
◆ extractTo()
virtual void JawsMako::IPDFPageExtractor::extractTo |
( |
const IOutputStreamPtr & | outputStream, |
|
|
uint32 | pageIndex ) |
|
pure virtual |
Extract a range of pages to a given index into a given output stream.
A convenience function. Equivalent to extract(0, pageIndex + 1);
Pages are numbered starting at zero. An exception will be thrown if an invalid page range is specified.
- Parameters
-
outputStream | The output stream. |
pageIndex | The index of the page to extract to. |
◆ getNumPages()
virtual uint32 JawsMako::IPDFPageExtractor::getNumPages |
( |
| ) |
|
|
pure virtual |
Return the number of pages in the document.
- Returns
- uint32 The number of pages in the document.
The documentation for this class was generated from the following file: