litePDF C++ interface
2.0.5
|
Classes | |
class | TLitePDFException |
class | TLitePDF |
Typedefs | |
typedef void(__stdcall * | MLitePDFErrorEvent )(unsigned int code, const char *msg, void *user_data) |
typedef unsigned int(__stdcall * | TLitePDFEvalFontFlagCB )(char *inout_faceName, unsigned int faceNameBufferSize, void *user_data) |
typedef void(__stdcall * | TLitePDFAppendSignatureDataFunc )(const char *bytes, unsigned int bytes_len, void *user_data) |
typedef void(__stdcall * | TLitePDFFinishSignatureFunc )(char *signature, unsigned int *signature_len, void *user_data) |
typedef void(__stdcall * litePDF::MLitePDFErrorEvent)(unsigned int code, const char *msg, void *user_data) |
typedef void(__stdcall * litePDF::TLitePDFAppendSignatureDataFunc)(const char *bytes, unsigned int bytes_len, void *user_data) |
The function is used within TLitePDF::SaveToFileWithSignManual and TLitePDF::SaveToDataWithSignManual. It is called called when more data should be added to hash computation.
typedef unsigned int(__stdcall * litePDF::TLitePDFEvalFontFlagCB)(char *inout_faceName, unsigned int faceNameBufferSize, void *user_data) |
A callback to evaluate what to do with the specified font. The function can be also used to rename the font, without changing the font flag. The size of the inout_faceName buffer is faceNameBufferSize and when renaming it, the written value should not be longer than faceNameBufferSize, including the nul-terminating character.
The returned value for one font name should be consistent. It's not possible to for example once request complete font embedding and the other time to request no embedding at all.
inout_faceName | [in/out] The font face name to evaluate the flag for. |
faceNameBufferSize | Size of the inout_faceName buffer. |
user_data | User data provided in TLitePDF::SetEvalFontFlagCallback. |
typedef void(__stdcall * litePDF::TLitePDFFinishSignatureFunc)(char *signature, unsigned int *signature_len, void *user_data) |
The function is used within TLitePDF::SaveToFileWithSignManual and TLitePDF::SaveToDataWithSignManual. It is called when all the data are processed, and the signature value is required. The signature_len contains size of the signature buffer. The callback is responsible to populate signature and signature_len with correct values. Set signature_len to zero on any error. Note the callback is called only once.
Enumerator | |
---|---|
LitePDFCertificationPermission_NoPerms |
No changes to the document are permitted; any change to the document invalidates the signature. |
LitePDFCertificationPermission_FormFill |
Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature. |
LitePDFCertificationPermission_Annotations |
Permitted changes are the same as for LitePDFCertificationPermission_FormFill, as well as annotation creation, deletion, and modification; other changes invalidate the signature. |
Enumerator | |
---|---|
LitePDFDrawFlag_None |
None draw flags |
LitePDFDrawFlag_EmbedFontsNone |
Do not embed any fonts into resulting PDF.
|
LitePDFDrawFlag_EmbedFontsComplete |
Embed complete fonts into resulting PDF; |
LitePDFDrawFlag_EmbedFontsSubset |
Embed only subset of the fonts, aka used letters; this flag is used before LitePDFDrawFlag_EmbedFontsComplete;
|
LitePDFDrawFlag_SubstituteFonts |
Substitute fonts with base PDF fonts, if possible |
LitePDFDrawFlag_CompressImagesWithJPEG |
Compress images with JPEG compression, to get smaller PDF document; this is used only for RGB images |
LitePDFDrawFlag_ResetGraphicsState |
Try to reset graphics state before appending new content to the page. This covers leftover saved states and the transformation matrix |