Methods defined by the DLL |
[Top] [Chapter] [Previous] [Next] |
// Methods defined in the DLL - see include file wPDF.H typedef WPDFEnviroment (__stdcall WPDF_InitializeEx)(WPDFInfoRecord *Info); // WPDFInfoRecord typedef WPDFEnviroment (__stdcall WPDF_Initialize)(void); typedef void (__stdcall WPDF_Finalize)(WPDFEnviroment PdfEnv); typedef void (__stdcall WPDF_FinalizeAll)(void); typedef void (__stdcall WPDF_SetResult)(WPDFEnviroment PdfEnv, int buffertype, char *buffer, int bufsize);
typedef int (__stdcall WPDF_BeginDoc)(WPDFEnviroment PdfEnv, char *FileName, int UseStream); typedef void (__stdcall WPDF_EndDoc)(WPDFEnviroment PdfEnv); typedef void (__stdcall WPDF_StartPage)(WPDFEnviroment PdfEnv); typedef void (__stdcall WPDF_StartPageEx)(WPDFEnviroment PdfEnv, int Width, int Height, int Rotation); typedef void (__stdcall WPDF_EndPage)(WPDFEnviroment PdfEnv); typedef void (__stdcall WPDF_StartWatermark)(WPDFEnviroment PdfEnv, char *Name); typedef void (__stdcall WPDF_StartWatermarkEx)(WPDFEnviroment PdfEnv, char *Name, int Width, int Height); typedef void (__stdcall WPDF_EndWatermark)(WPDFEnviroment PdfEnv); typedef void (__stdcall WPDF_DrawWatermark)(WPDFEnviroment PdfEnv, char *Name, int Rotation);
// Property and command typedef void (__stdcall WPDF_SetSProp)(WPDFEnviroment PdfEnv, int id, char *Value); typedef void (__stdcall WPDF_SetIProp)(WPDFEnviroment PdfEnv, int id, int Value); typedef int (__stdcall WPDF_ExecCommand)(WPDFEnviroment PdfEnv, int id, int Value,char *buffer,int buflen);
// PDF Output Functions typedef void (__stdcall WPDF_DrawMetafile)(WPDFEnviroment PdfEnv, unsigned int meta, int x, int y, int w, int h); typedef int (__stdcall WPDF_DrawDIB)(WPDFEnviroment PdfEnv, int x, int y, int w, int h, void *BitmapInfo, void *BitmapBits); typedef int (__stdcall WPDF_DrawBMP)(WPDFEnviroment PdfEnv, int x, int y, int w, int h, HBITMAP Bitmap); typedef int (__stdcall WPDF_DrawJPEG)(WPDFEnviroment PdfEnv, int x, int y, int w, int h, int jpeg_w, int jpeg_h, void *buffer, int buflen); typedef int (__stdcall WPDF_DrawBitmapFile)(WPDFEnviroment PdfEnv, int x, int y, int w, int h, char *FileName); typedef int (__stdcall WPDF_DrawBitmapClone)(WPDFEnviroment PdfEnv, int x, int y, int w, int h, int BitmapID);
// HDC Output function typedef HDC (__stdcall WPDF_DC)(WPDFEnviroment PdfEnv); //** Get the DC of the PDF Canvas! **// typedef void (__stdcall WPDF_TextOut)(WPDFEnviroment PdfEnv, int x, int y, char * Text); typedef char* (__stdcall WPDF_TextRect)(WPDFEnviroment PdfEnv, int x, int y, int w, int h, char *Text, int Alignment);
typedef void (__stdcall WPDF_MoveTo)(WPDFEnviroment PdfEnv, int x, int y); typedef void (__stdcall WPDF_LineTo)(WPDFEnviroment PdfEnv, int x, int y); typedef void (__stdcall WPDF_Rectangle)(WPDFEnviroment PdfEnv, int x, int y,int w,int h);
typedef void (__stdcall WPDF_Hyperlink)(WPDFEnviroment PdfEnv, int x, int y,int w,int h,char *Name); typedef void (__stdcall WPDF_Bookmark)(WPDFEnviroment PdfEnv, int x, int y,char *Name); typedef void (__stdcall WPDF_Outline)(WPDFEnviroment PdfEnv, int level, int x, int y,char *Name, char *Caption);
// Attribute funtions typedef void (__stdcall WPDF_SetTextDefaultAttr)(WPDFEnviroment PdfEnv, char *FontName, int Size); typedef void (__stdcall WPDF_SetTextAttr)(WPDFEnviroment PdfEnv, char *FontName, int Size, int Bold, int Italic,int Underline); typedef void (__stdcall WPDF_SetTextAttrEx)(WPDFEnviroment PdfEnv, char *FontName, int Charset, int Size, int Bold, int Italic,int Underline, unsigned int Color); typedef void (__stdcall WPDF_SetPenAttr)(WPDFEnviroment PdfEnv, int Style, int Width, int Color); typedef void (__stdcall WPDF_SetBrushAttr)(WPDFEnviroment PdfEnv, int Style, int Color);
// Set License Key. This function only exists in the registered DLL, notz in the demo! typedef void (__stdcall WPDF_SetLicenseKey)(unsigned long number, char *Name, char *Code);
|