ImageGear .NET v25.2 - Updated
Initialize() Method




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDF Class > Initialize Method : Initialize() Method
Initializes PDF and PS libraries.
Syntax
'Declaration
 
Public Overloads Shared Sub Initialize() 
'Usage
 
ImGearPDF.Initialize()
public static void Initialize()
public: static void Initialize(); 
public:
static void Initialize(); 
Remarks
This initialization method must be called for each thread in the multi-threaded application.

The resource content must be located in the same to ImageGear assembly place.

A call to an Initialize() method should be paired with a call to the Terminate method. The very first call to Initialize() will initialize the entire PDF library, while its paired call to Terminate method will de-initialize and release its memory. Multiple PDF initialization/termination pairs are supported in a multi-threaded PDF application, because it is required to initialize and terminate PDF in each child thread.

PDF support requires ImGearFileFormats.Filters.Add(ImGearPDF.CreatePDFFormat()) call be made before the first call to ImGearPDF.Initialize().

PS support requires both ImGearFileFormats.Filters.Add(ImGearPDF.CreatePDFFormat()) and ImGearFileFormats.Filters.Add(ImGearPDF.CreatePSFormat()) calls be made before the first call to ImGearPDF.Initialize(). Paths provided for PS support must convert completely to ANSI.

See Also

Reference

ImGearPDF Class
ImGearPDF Members
Overload List
Terminate Method

Is this page helpful?
Yes No
Thanks for your feedback.