PDFNet.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------------------
00002 // Copyright (c) 2001-2008 by PDFTron Systems Inc. All Rights Reserved.
00003 // Consult legal.txt regarding legal and license information.
00004 //---------------------------------------------------------------------------------------
00005 
00006 #ifndef   H_CPPPDFNet
00007 #define   H_CPPPDFNet
00008 
00009 #include <C/PDF/TRN_PDFNet.h>
00010 #include <Common/UString.h>
00011 
00012 namespace pdftron { 
00013 
00021 class PDFNet
00022 {
00023 public:
00024 
00036         static void Initialize(const char* license_key = 0);
00037 
00045          static void Terminate();
00046 
00065          static bool SetResourcesPath(const UString& path);
00066 
00071          static UString GetResourcesPath();
00072 
00077          static void SetColorManagement(bool enable);
00078 
00089          static void SetDefaultDeviceCMYKProfile(const UString& icc_filename);
00090 
00101          static void SetDefaultDeviceRGBProfile(const UString& icc_filename);
00102 
00108         enum CharacterOrdering {
00109                 e_Identity = 0,    
00110                 e_Japan1   = 1,    
00111                 e_Japan2   = 2,    
00112                 e_GB1      = 3,    
00113                 e_CNS1     = 4,    
00114                 e_Korea1   = 5     
00115         };
00116 
00157          static bool AddFontSubst(const char* fontname, const UString& fontpath);
00158          static bool AddFontSubst(CharacterOrdering ordering, const UString& fontpath);
00159 
00166          static bool SetTempPath(const UString& temp_path);
00167 
00171          static double GetVersion();
00172 };
00173 
00174 
00175 #include <Impl/PDFNet.inl>
00176 
00177 
00178 };      // namespace pdftron
00179 
00180 #endif
00181 

© 2002-2008 PDFTron Systems Inc.