litePDF C++ interface  2.0.5
Classes | Namespaces | Macros | Typedefs | Enumerations
litePDF.h File Reference

C++ interface. More...

#include <windows.h>
#include <string>

Classes

class  litePDF::TLitePDFException
 
class  litePDF::TLitePDF
 

Namespaces

 litePDF
 

Macros

#define LitePDF_API_Major   2
 
#define LitePDF_API_Minor   0
 
#define LitePDFDocumentInfo_Author   "Author"
 
#define LitePDFDocumentInfo_Creator   "Creator"
 
#define LitePDFDocumentInfo_Keywords   "Keywords"
 
#define LitePDFDocumentInfo_Subject   "Subject"
 
#define LitePDFDocumentInfo_Title   "Title"
 
#define LitePDFDocumentInfo_Producer   "Producer"
 
#define LitePDFDocumentInfo_Trapped   "Trapped"
 
#define LitePDFDocumentInfo_CreationDate   "CreationDate"
 
#define LitePDFDocumentInfo_ModificationDate   "ModDate"
 

Typedefs

typedef void(__stdcall * litePDF::MLitePDFErrorEvent )(unsigned int code, const char *msg, void *user_data)
 
typedef unsigned int(__stdcall * litePDF::TLitePDFEvalFontFlagCB )(char *inout_faceName, unsigned int faceNameBufferSize, void *user_data)
 
typedef void(__stdcall * litePDF::TLitePDFAppendSignatureDataFunc )(const char *bytes, unsigned int bytes_len, void *user_data)
 
typedef void(__stdcall * litePDF::TLitePDFFinishSignatureFunc )(char *signature, unsigned int *signature_len, void *user_data)
 

Enumerations

enum  litePDF::TLitePDFUnit {
  litePDF::LitePDFUnit_Unknown = 0, litePDF::LitePDFUnit_mm = 1, litePDF::LitePDFUnit_10th_mm = 2, litePDF::LitePDFUnit_100th_mm = 3,
  litePDF::LitePDFUnit_1000th_mm = 4, litePDF::LitePDFUnit_inch = 5, litePDF::LitePDFUnit_10th_inch = 6, litePDF::LitePDFUnit_100th_inch = 7,
  litePDF::LitePDFUnit_1000th_inch = 8
}
 
enum  litePDF::TLitePDFFontFlags {
  litePDF::LitePDFFontFlag_Default = 0, litePDF::LitePDFFontFlag_DoNotEmbed = 1, litePDF::LitePDFFontFlag_EmbedComplete = 2, litePDF::LitePDFFontFlag_EmbedSubset = 3,
  litePDF::LitePDFFontFlag_Substitute = 4
}
 
enum  litePDF::TLitePDFDrawFlags {
  litePDF::LitePDFDrawFlag_None = 0, litePDF::LitePDFDrawFlag_EmbedFontsNone = (1 << 4), litePDF::LitePDFDrawFlag_EmbedFontsComplete = (1 << 0), litePDF::LitePDFDrawFlag_EmbedFontsSubset = (1 << 1),
  litePDF::LitePDFDrawFlag_SubstituteFonts = (1 << 2), litePDF::LitePDFDrawFlag_CompressImagesWithJPEG = (1 << 3), litePDF::LitePDFDrawFlag_ResetGraphicsState = (1 << 5)
}
 
enum  litePDF::TLitePDFEncryptPermission {
  litePDF::LitePDFEncryptPermission_None = 0x0, litePDF::LitePDFEncryptPermission_Print = 0x00000004, litePDF::LitePDFEncryptPermission_Edit = 0x00000008, litePDF::LitePDFEncryptPermission_Copy = 0x00000010,
  litePDF::LitePDFEncryptPermission_EditNotes = 0x00000020, litePDF::LitePDFEncryptPermission_FillAndSign = 0x00000100, litePDF::LitePDFEncryptPermission_Accessible = 0x00000200, litePDF::LitePDFEncryptPermission_DocAssembly = 0x00000400,
  litePDF::LitePDFEncryptPermission_HighPrint = 0x00000800, litePDF::LitePDFEncryptPermission_All
}
 
enum  litePDF::TLitePDFEncryptAlgorithm {
  litePDF::LitePDFEncryptAlgorithm_None = 0, litePDF::LitePDFEncryptAlgorithm_RC4V1 = 1, litePDF::LitePDFEncryptAlgorithm_RC4V2 = 2, litePDF::LitePDFEncryptAlgorithm_AESV2 = 4,
  litePDF::LitePDFEncryptAlgorithm_AESV3 = 8
}
 
enum  litePDF::TLitePDFAnnotationFlags {
  litePDF::LitePDFAnnotationFlag_None = 0x0000, litePDF::LitePDFAnnotationFlag_Invisible = 0x0001, litePDF::LitePDFAnnotationFlag_Hidden = 0x0002, litePDF::LitePDFAnnotationFlag_Print = 0x0004,
  litePDF::LitePDFAnnotationFlag_NoZoom = 0x0008, litePDF::LitePDFAnnotationFlag_NoRotate = 0x0010, litePDF::LitePDFAnnotationFlag_NoView = 0x0020, litePDF::LitePDFAnnotationFlag_Readonly = 0x0040,
  litePDF::LitePDFAnnotationFlag_Locked = 0x0080, litePDF::LitePDFAnnotationFlag_ToggleNoView = 0x0100, litePDF::LitePDFAnnotationFlag_LockedContents = 0x0200
}
 
enum  litePDF::TLitePDFAppearance { litePDF::LitePDFAppearance_Normal = 0, litePDF::LitePDFAppearance_Rollover = 1, litePDF::LitePDFAppearance_Down = 2 }
 
enum  litePDF::TLitePDFBookmarkFlags { litePDF::LitePDFBookmarkFlag_None = 0x0000, litePDF::LitePDFBookmarkFlag_Italic = 0x0001, litePDF::LitePDFBookmarkFlag_Bold = 0x0002 }
 
enum  litePDF::TLitePDFCertificationPermission { litePDF::LitePDFCertificationPermission_NoPerms = 1, litePDF::LitePDFCertificationPermission_FormFill = 2, litePDF::LitePDFCertificationPermission_Annotations = 3 }
 
enum  litePDF::TLitePDFSignatureHash { litePDF::LitePDFSignatureHash_SHA1 = 1, litePDF::LitePDFSignatureHash_SHA256 = 2, litePDF::LitePDFSignatureHash_SHA384 = 3, litePDF::LitePDFSignatureHash_SHA512 = 4 }
 

Detailed Description

C++ interface.

This document describes a C++ interface for litePDF.dll API.

Macro Definition Documentation

#define LitePDF_API_Major   2

LitePDF API version Major part;

See Also
LitePDF_API_Minor
#define LitePDF_API_Minor   0

LitePDF API version Minor part;

See Also
LitePDF_API_Major
#define LitePDFDocumentInfo_Author   "Author"

an Author of the document

#define LitePDFDocumentInfo_CreationDate   "CreationDate"

a date of the creation of the document

#define LitePDFDocumentInfo_Creator   "Creator"

a Creator of the document

#define LitePDFDocumentInfo_Keywords   "Keywords"

the Keywords of the document

#define LitePDFDocumentInfo_ModificationDate   "ModDate"

a date of the last modification of the document

#define LitePDFDocumentInfo_Producer   "Producer"

a Producer of the document; this key is read-only

#define LitePDFDocumentInfo_Subject   "Subject"

a Subject of the document

#define LitePDFDocumentInfo_Title   "Title"

a Title of the document

#define LitePDFDocumentInfo_Trapped   "Trapped"

a trapping state of the document