![]() |
PDFix SDK
7.2.0
|
#include <pdfix.h>
Public Member Functions | |
virtual void | Destroy ()=0 |
Destroys Pdfix resources. More... | |
virtual PsAuthorization * | GetAuthorization ()=0 |
Gets the current PsAuthorization object. More... | |
virtual PsStandardAuthorization * | GetStandardAuthorization ()=0 |
Gets the PsStandardAuthorization object. More... | |
virtual PsAccountAuthorization * | GetAccountAuthorization ()=0 |
Gets the PsAccountAuthorization object. More... | |
virtual int | GetErrorType () const =0 |
virtual const char * | GetError ()=0 |
virtual void | SetError (int type, const char *error)=0 |
Sets the latest error message to the library. More... | |
virtual const char * | GetProductName () const =0 |
Returns the name of the product. More... | |
virtual const char * | GetProductUrl () const =0 |
Returns the url of the product. More... | |
virtual int | GetVersionMajor () const =0 |
virtual int | GetVersionMinor () const =0 |
virtual int | GetVersionPatch () const =0 |
virtual PdfDoc * | CreateDoc ()=0 |
virtual PdfDoc * | OpenDoc (const wchar_t *path, const wchar_t *password)=0 |
virtual PdfDoc * | OpenDocFromStream (PsStream *stream, const wchar_t *password)=0 |
virtual PdfDigSig * | CreateDigSig ()=0 |
virtual PdfCustomDigSig * | CreateCustomDigSig ()=0 |
virtual PdfStandardSecurityHandler * | CreateStandardSecurityHandler (const wchar_t *user_password, const wchar_t *owner_password, const PdfStandardSecurityParams *params)=0 |
Creates a new PdfStandardSecurityHandler object. More... | |
virtual PdfCustomSecurityHandler * | CreateCustomSecurityHandler (const wchar_t *name, void *client_data)=0 |
Creates a new PdfCustomSecurityHandler object. More... | |
virtual bool | RegisterSecurityHandler (PdfSecurityCreateHandlerProc proc, const wchar_t *name, void *client_data)=0 |
Registers factory method that will create security handler when the document is initialized. More... | |
virtual PdfAnnotHandler * | RegisterAnnotHandler (const wchar_t *type)=0 |
Register annotation handler. More... | |
virtual PdfActionHandler * | RegisterActionHandler (const wchar_t *type)=0 |
Register action handler. More... | |
virtual PsRegex * | CreateRegex ()=0 |
virtual PsFileStream * | CreateFileStream (const wchar_t *path, PsFileMode mode)=0 |
virtual PsMemoryStream * | CreateMemStream ()=0 |
virtual PsCustomStream * | CreateCustomStream (PsStreamReadProc read_proc, void *client_data)=0 |
virtual bool | RegisterEvent (PdfEventType type, PdfEventProc proc, void *data)=0 |
Registers a user-supplied procedure to call when the specified event occurs. More... | |
virtual bool | UnregisterEvent (PdfEventType type, PdfEventProc proc, void *data)=0 |
virtual bool | ReadImageInfo (PsStream *image_stream, PdfImageFormat format, PsImageInfo *info)=0 |
Reads basic image info from image data stream. More... | |
virtual PsImage * | CreateImage (int width, int height, PsImageDIBFormat format)=0 |
virtual PsRenderDeviceContext * | CreateRenderDeviceContext (void *device, PsRenderDeviceType type)=0 |
Creates a new PsRenderDeviceContext object. More... | |
virtual bool | RegisterPlugin (PdfixPlugin *plugin, const wchar_t *name)=0 |
virtual PdfixPlugin * | GetPluginByName (const wchar_t *name)=0 |
virtual PsEvent * | GetEvent ()=0 |
virtual PsSysFont * | FindSysFont (const wchar_t *font_family, PdfFontFlags font_flags, PdfFontCodepage codepage)=0 |
virtual bool | LoadSettingsFromStream (PsStream *settings, PsDataFormat format)=0 |
Loads settings from a data file. More... | |
Pdfix class.
Pdfix loads and unloads library. It initialized all necessary resources and also takes care about releasing it.
|
pure virtual |
Creates a new PdfCustomDigSig object. Call PdfDigSig::Destroy method to release resources.
|
pure virtual |
Creates a new PdfCustomSecurityHandler object.
name | name of the security handler filter |
client_data | user supplied data that will be passed to every callback set to the custom security handler |
|
pure virtual |
Creates a new read-only PsStream with arbitrary data-producing procedure. Call PsStream::Destroy to release all stream resources.
read_proc | Data producing procedure |
proc_stm | Pointer to user object which is provided to provided PsStreamProc |
|
pure virtual |
Creates a new PdfDigSig object. Call PdfDigSig::Destroy method to release resources.
|
pure virtual |
Creates a new document. The only object in the document will be a Catalog. After the document is created, at least one page must be added using PdfDoc::CreatePage or PdfDoc::InsertPages. NOTE: You must call PdfDoc::Close once for every successful create.
|
pure virtual |
Creates a new read-only or write PsStream from PsFile. Call PsStream::Destroy to release all stream resources.
path | Path to the file that PsStream needs to be created from. |
mode | File open mode. |
|
pure virtual |
Creates a new PsImage object. Call PsImage::Destroy to release image resources.
width | Requested image width. |
height | Requested image heught. |
format | Requested image DIB format. |
|
pure virtual |
Creates a new mempry operating PsStream. Call PsStream::Destroy to release all stream resources.
|
pure virtual |
Creates a new PsRegex object. Call PsRegex::Destroy to release all regex resources.
|
pure virtual |
Creates a new PsRenderDeviceContext object.
device | Pointer to the platform specific device context. |
type | Type of the device context. |
|
pure virtual |
Creates a new PdfStandardSecurityHandler object.
user_password | user password that will be used to open secured the document |
owner_password | owner password that will be used to access owner rights of the document |
params | pointer to the PdfStandardSecurityParams structure |
|
pure virtual |
Destroys Pdfix resources.
|
pure virtual |
Finds a sytem font installed on the current host system by name, font style and codepage. If the specified font is not installed on the current system or is in specified font search directory, it tries to find similar font.
font_family | Font family of the font we are looking for. |
font_flags | Style of the font we are looking for. |
codepage | Use kFontDefANSICodepage for default. |
|
pure virtual |
Gets the PsAccountAuthorization object.
|
pure virtual |
Gets the current PsAuthorization object.
|
pure virtual |
Returns the latest error message from the library. The error message is set each time, when any library method fails.
|
pure virtual |
Returns the latest error type from the library. The error type is set each time, when any library method fails.
|
pure virtual |
Get the object of current event. Method to retrieve the event object related with the notification.
|
pure virtual |
Get plugin by name. Method to retrieve the plugin by name.
name | Plugin registration name |
|
pure virtual |
Returns the name of the product.
|
pure virtual |
Returns the url of the product.
|
pure virtual |
Gets the PsStandardAuthorization object.
|
pure virtual |
Returns the major version. This is the first integer in a version number and is increased whenever significant changes are made.
|
pure virtual |
Returns the minor version. This is the second integer in a compound version number. This is normally set to 0 after each major release and increased whenever smaller features or significant bug fixes have been added.
|
pure virtual |
Returns the patch version. The (optional) third integer is the patch number, sometimes also called the revision number. Changes in patch number should imply no change to the actual API interface, only changes to the behavior of the API.
|
pure virtual |
Loads settings from a data file.
settings | The data file stream to load |
format | Format of the source stream. Only JSON format is supported. |
|
pure virtual |
Opens the specified document. If the document is already open, returns a reference to the already opened PdfDoc. NOTE: You must call PdfDoc::Close once for every successful open.
path | Path to the file. |
password | File password. Might be null. |
|
pure virtual |
Opens the specified document from memory. If the document is already open, returns a reference to the already opened PdfDoc. You must call PdfDoc::Close once for every successful open.
stream | PsStream object. |
password | File password. Might be null. |
|
pure virtual |
Reads basic image info from image data stream.
image_stream | Image data. |
format | Image format. |
info | (Filled by the method) A pointer to a PsImageInfo structure |
|
pure virtual |
Register action handler.
type | The type of actions that will be handled. |
|
pure virtual |
Register annotation handler.
type | The Subtype of annotations that will be handled. |
|
pure virtual |
Registers a user-supplied procedure to call when the specified event occurs.
type | The event type. |
proc | A user-supplied callback to call when the event occurs. |
data | A pointer to user-supplied data to pass to proc each time it is called. |
|
pure virtual |
Register plugin by name. Method to register plugin by name to allow other plugins to access it's functionality
plugin | The PdfixPlugin object. |
name | Plugin registration name. |
|
pure virtual |
Registers factory method that will create security handler when the document is initialized.
proc | factory method to create the security handler when the document is initialized |
name | name of the security handler filter |
data | user supplied data thath will stored with the create procedure and passed to it when it will be called |
|
pure virtual |
Sets the latest error message to the library.
type | The last error type. |
error | The last error. |
|
pure virtual |
Unregisters a user-supplied procedure to call when the specified event occurs. To un-register, you must use same type, proc and data that were used when the event was registered using Pdfix::RegisterEvent.
type | The registered event type. |
proc | A registered user-supplied callback. |
data | A pointer to registered user-supplied data. |