![]() |
Perfectly Clear SDK Documentation
10.7.1.1191
|
PFCPDFImageIterator allows the user to iterate over the PFC-supported images of a PDF file. It returns images to edit as necesary and will automatically embed them to the document again. If your PDF files could be password protected use podofo directly to open the document and then pass the open document to the iterator. More...
#include <PFCPDFImageIterator.h>
Public Member Functions | |
void | setExpandImageData (bool expand) |
Sets if the PFCPDFImageFile should expand the pdf bytes into a PFCImageFile. More... | |
bool | expandImageData () |
Get if the PFCPDFImageFile should expand the pdf bytes into a PFCImageFile. More... | |
Accessing PdfMemDocument directly | |
For less common applications, it might be necessary to access to the PdfMemDocument directly. These functions allow that | |
PoDoFo::PdfMemDocument * | document () |
For more advanced usage this will point to the underlaying PDF documennt the iterator is modifying. More... | |
PoDoFo::PdfMemDocument * | takeDocument () |
For more advanced usage releases the document to the user and will no longer be managed by PFCPDFImageIterator. The returned document must outlive any PFCPDFImage images. More... | |
Main PDF Functions | |
enum | LoadStatus |
Status report from loading a PDF file with the load() function. More... | |
enum | SaveStatus |
Status report from saving a PDF file with the save() function. More... | |
PFCPDFImageIterator (PoDoFo::PdfMemDocument *document) | |
Iterates over PFC-compatible images from the given document. More... | |
~PFCPDFImageIterator () | |
Destroys the pointed document if it was created by this class. | |
LoadStatus | load (const char *path) |
load() loads the file and returns true if succesful. More... | |
SaveStatus | save (const char *path) |
save() loads the file and returns true if succesful. More... | |
PFCPDFImage * | nextImage () |
Primary use of the iterator. It'll return a pointer to a PFCPDFImage until the document containes no more images when it'll return nullptr. More... | |
PFCPDFImageIterator allows the user to iterate over the PFC-supported images of a PDF file. It returns images to edit as necesary and will automatically embed them to the document again. If your PDF files could be password protected use podofo directly to open the document and then pass the open document to the iterator.
Definition at line 28 of file PFCPDFImageIterator.h.
PoDoFo::PdfMemDocument* document | ( | ) |
For more advanced usage this will point to the underlaying PDF documennt the iterator is modifying.
bool expandImageData | ( | ) |
Get if the PFCPDFImageFile should expand the pdf bytes into a PFCImageFile.
LoadStatus load | ( | const char * | path | ) |
load() loads the file and returns true if succesful.
path | [in] Path to PDF file to open |
PFCPDFImage* nextImage | ( | ) |
Primary use of the iterator. It'll return a pointer to a PFCPDFImage until the document containes no more images when it'll return nullptr.
SaveStatus save | ( | const char * | path | ) |
save() loads the file and returns true if succesful.
path | [in] Path to PDF file to write |
void setExpandImageData | ( | bool | expand | ) |
Sets if the PFCPDFImageFile should expand the pdf bytes into a PFCImageFile.
expand | [in] should expand or not |
PoDoFo::PdfMemDocument* takeDocument | ( | ) |
For more advanced usage releases the document to the user and will no longer be managed by PFCPDFImageIterator. The returned document must outlive any PFCPDFImage images.
|
strong |
Status report from loading a PDF file with the load() function.
Definition at line 47 of file PFCPDFImageIterator.h.
|
strong |
Status report from saving a PDF file with the save() function.
Enumerator | |
---|---|
Ok | Success, file saved successfully. |
InvalidPath | Could not create the path to save the PDF file. |
DocumentError | Other error preventing proper file writing. |
Definition at line 63 of file PFCPDFImageIterator.h.
PFCPDFImageIterator | ( | PoDoFo::PdfMemDocument * | document | ) |
Iterates over PFC-compatible images from the given document.
document | [in|out] does not take ownership of the pointer but the document muts outlive the iterator. |