5 #ifndef PDFTRON_H_CPPPDFPDFNet
6 #define PDFTRON_H_CPPPDFPDFNet
8 #include <C/PDF/TRN_PDFNet.h>
41 static void Initialize(
const char* license_key = 0);
56 static void Initialize(
const char* license_key,
const char* json_string);
68 static void Terminate(
const int termination_level);
387 static void SetNumberWriteProc(
char* (*WriteProc) (
double num,
char *in_buf,
int in_buf_size));
397 static void SetNumberReadProc(TRN_Bool (*ReadProc) (
const TRN_UChar *buf,
double *output));
401 typedef enum _LogLevel
404 e_LogLevel_Fatal = 5,
405 e_LogLevel_Error = 4,
406 e_LogLevel_Warning = 3,
408 e_LogLevel_Trace = 1,
413 static void SetLogLevel(LogLevel level = e_LogLevel_Fatal);
483 #include <Impl/PDFNet.inl>
487 #endif // PDFTRON_H_CPPPDFPDFNet
static void SetConnectionErrorHandlingMode(ConnectionErrorHandlingMode mode)
static void SetViewerCache(size_t max_cache_size, bool on_disk)
static void SetConnectionErrorProc(ConnectionErrorProc error_proc, void *data)
static void SetDefaultDeviceCMYKProfile(const UString &icc_filename)
static bool IsJavaScriptEnabled()
static void SetWriteAPIUsageLocally(bool write_usage)
static void AddPDFTronCustomHandler(UInt32 custom_id)
TRN_PDFNetCreateSecurityHandler CreateSecurityHandler
Use Windows ICM2 (available only on Windows platforms).
static void SetDefaultFlateCompressionLevel(int level)
static void SetNumberReadProc(TRN_Bool(*ReadProc)(const TRN_UChar *buf, double *output))
Common::Iterator< SecurityDescriptor > SecurityDescriptorIterator
Use LittleCMS (available on all supported platforms).
static bool AddFontSubst(const char *fontname, const UString &fontpath)
static void EnableJavaScript(bool enable)
static void Initialize(const char *license_key=0)
void(* ConnectionErrorProc)(const char *message, const int error_code, UChar switch_to_demo, void *user_data)
static void SetTempPath(const UString &temp_path)
static const char * GetVersionString()
ConnectionErrorHandlingMode
static UString GetSystemFontList()
static bool SetResourcesPath(const UString &path)
const char * GetGuiName()
static double GetVersion()
static void SetDefaultDeviceRGBProfile(const UString &icc_filename)
static void SetColorManagement(CMSType t=e_lcms)
static void SetPersistentCachePath(const UString &persistent_path)
CreateSecurityHandler GetCreateFunct()
static void SetDefaultDiskCachingEnabled(bool use_disk)
static void AddResourceSearchPath(const UString &path)
static SecurityDescriptorIterator GetSecHdlrInfoIterator()
static void RegisterSecurityHandler(const char *handler_name, const char *gui_name, CreateSecurityHandler factory_method)
static void SetNumberWriteProc(char *(*WriteProc)(double num, char *in_buf, int in_buf_size))
static UString GetResourcesPath()