diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3614d53009..9a85d3e389 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,15 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-05-18 22:27 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * contrib/hbhpdf/harupdf.c + + Calling hb_fsNameConv() in filename parameters. + Thanks Petr for the suggestion. + ! Changed hb_parnl()/hb_retnl() calls to hb_parptr()/hb_retptr() + where a "handle" (which is a memory pointer) is passed. + ; TOFIX: Some of these calls should be changed to the GC version + to avoid leaks by bad or interrupted program code. + 2008-05-18 20:15 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * contrib/hbhpdf/harupdf.c ! Fixed GPFs. Thanks to Petr Chornyj. diff --git a/harbour/contrib/hbhpdf/harupdf.c b/harbour/contrib/hbhpdf/harupdf.c index 153411a442..4fa464d55a 100644 --- a/harbour/contrib/hbhpdf/harupdf.c +++ b/harbour/contrib/hbhpdf/harupdf.c @@ -63,6 +63,7 @@ // (x)Harbour headers // #include "hbapi.h" +#include "hbapifs.h" #include "hbapiitm.h" // harupdf header @@ -77,56 +78,62 @@ // HB_FUNC( HPDF_NEW ) { - hb_retnl( (long) HPDF_New( NULL, NULL ) ); + hb_retptr( (void *) HPDF_New( NULL, NULL ) ); } //----------------------------------------------------------------------// // HPdf_Free( hDoc ) -> NIL // HB_FUNC( HPDF_FREE ) { - HPDF_Free( (HPDF_Doc) hb_parnl( 1 ) ); + HPDF_Free( (HPDF_Doc) hb_parptr( 1 ) ); } //----------------------------------------------------------------------// // HPdf_NewDoc( hDoc ) -> hStatus // HB_FUNC( HPDF_NEWDOC ) { - hb_retnl( (long) HPDF_NewDoc( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_NewDoc( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_FreeDoc( hNewDoc ) -> NIL // HB_FUNC( HPDF_FREEDOC ) { - HPDF_FreeDoc( (HPDF_Doc) hb_parnl( 1 ) ); + HPDF_FreeDoc( (HPDF_Doc) hb_parptr( 1 ) ); } //----------------------------------------------------------------------// // HPdf_FreeDocAll() -> NIL // HB_FUNC( HPDF_FREEDOCALL ) { - HPDF_FreeDocAll( (HPDF_Doc) hb_parnl( 1 ) ); + HPDF_FreeDocAll( (HPDF_Doc) hb_parptr( 1 ) ); } //----------------------------------------------------------------------// // HPdf_SaveToFile( hDoc, cFileToSave ) -> hStatus // HB_FUNC( HPDF_SAVETOFILE ) { - hb_retnl( (long) HPDF_SaveToFile( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ) ) ); + BOOL fFree; + BYTE * pszFileName = hb_fsNameConv( ( BYTE * ) hb_parc( 2 ), &fFree ); + + hb_retnl( (long) HPDF_SaveToFile( (HPDF_Doc) hb_parptr( 1 ), ( char * ) pszFileName ) ); + + if( fFree ) + hb_xfree( ( void * ) pszFileName ); } //----------------------------------------------------------------------// // HPdf_SaveToStream( hDoc ) -> hStatus // HB_FUNC( HPDF_SAVETOSTREAM ) { - hb_retnl( (long) HPDF_SaveToStream( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_SaveToStream( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetStreamSize( hDoc ) -> nSize // HB_FUNC( HPDF_GETSTREAMSIZE ) { - hb_retnl( (long) HPDF_GetStreamSize( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_GetStreamSize( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_ReadFromStream( hDoc, @cBuffer ) -> nBytesRead @@ -134,7 +141,7 @@ HB_FUNC( HPDF_GETSTREAMSIZE ) HB_FUNC( HPDF_READFROMSTREAM ) { HPDF_UINT32 size = strlen( hb_parc( 2 ) ); - HPDF_ReadFromStream( (HPDF_Doc) hb_parnl( 1 ), (HPDF_BYTE*) hb_parc( 2 ), &size ); + HPDF_ReadFromStream( (HPDF_Doc) hb_parptr( 1 ), (HPDF_BYTE*) hb_parc( 2 ), &size ); hb_retnl( size ); } //----------------------------------------------------------------------// @@ -142,42 +149,42 @@ HB_FUNC( HPDF_READFROMSTREAM ) // HB_FUNC( HPDF_RESETSTREAM ) { - hb_retnl( (long) HPDF_ResetStream( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_ResetStream( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_HasDoc( hDoc ) -> lHasDoc // HB_FUNC( HPDF_HASDOC ) { - hb_retl( HPDF_HasDoc( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retl( HPDF_HasDoc( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetErrorHandler( hDoc, procErrHandler ) -> hStatus // HB_FUNC( HPDF_SETERRORHANDLER ) { - hb_retnl( (long) HPDF_SetErrorHandler( (HPDF_Doc) hb_parnl( 1 ), (HPDF_Error_Handler) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_SetErrorHandler( (HPDF_Doc) hb_parptr( 1 ), (HPDF_Error_Handler) hb_parnl( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetError( hDoc ) -> nErrorCode // HB_FUNC( HPDF_GETERROR ) { - hb_retnl( (long) HPDF_GetError( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_GetError( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_ResetError( hDoc ) -> NIL // HB_FUNC( HPDF_RESETERROR ) { - HPDF_ResetError( (HPDF_Doc) hb_parnl( 1 ) ); + HPDF_ResetError( (HPDF_Doc) hb_parptr( 1 ) ); } //----------------------------------------------------------------------// // HPdf_SetPagesConfiguration( hDoc, nPagePerPages ) -> hStatus // HB_FUNC( HPDF_SETPAGESCONFIGURATION ) { - hb_retnl( (long) HPDF_SetPagesConfiguration( (HPDF_Doc) hb_parnl( 1 ), hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_SetPagesConfiguration( (HPDF_Doc) hb_parptr( 1 ), hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetPageLayout( hDoc, nLayout ) -> hStatus @@ -190,14 +197,14 @@ HB_FUNC( HPDF_SETPAGESCONFIGURATION ) // HB_FUNC( HPDF_SETPAGELAYOUT ) { - hb_retnl( (long) HPDF_SetPageLayout( (HPDF_Doc) hb_parnl( 1 ), (HPDF_PageLayout) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_SetPageLayout( (HPDF_Doc) hb_parptr( 1 ), (HPDF_PageLayout) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetPageLayout( hDoc ) -> nLayout // HB_FUNC( HPDF_GETPAGELAYOUT ) { - hb_retni( (int) HPDF_GetPageLayout( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_GetPageLayout( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetPageMode( hDoc, nPageMode ) -> hStatus @@ -210,70 +217,93 @@ HB_FUNC( HPDF_GETPAGELAYOUT ) // HB_FUNC( HPDF_SETPAGEMODE ) { - hb_retnl( (long) HPDF_SetPageMode( (HPDF_Doc) hb_parnl( 1 ), (HPDF_PageMode) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_SetPageMode( (HPDF_Doc) hb_parptr( 1 ), (HPDF_PageMode) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetPageMode( hDoc ) -> nPageMode // HB_FUNC( HPDF_GETPAGEMODE ) { - hb_retni( (int) HPDF_GetPageMode( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_GetPageMode( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetOpenAction( hDoc, hDestn ) -> hStatus // HB_FUNC( HPDF_SETOPENACTION ) { - hb_retnl( (long) HPDF_SetOpenAction( (HPDF_Doc) hb_parnl( 1 ), (HPDF_Destination) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_SetOpenAction( (HPDF_Doc) hb_parptr( 1 ), (HPDF_Destination) hb_parptr( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetCurrentPage( hDoc ) -> hPage // HB_FUNC( HPDF_GETCURRENTPAGE ) { - hb_retnl( (long) HPDF_GetCurrentPage( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retptr( ( void * ) HPDF_GetCurrentPage( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_AddPage( hDoc ) -> hPage // HB_FUNC( HPDF_ADDPAGE ) { - hb_retnl( (long) HPDF_AddPage( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retptr( ( void * ) HPDF_AddPage( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_InsertPage( hDoc, hPage ) -> hPageInserted : Just before hPage // HB_FUNC( HPDF_INSERTPAGE ) { - hb_retnl( (long) HPDF_InsertPage( (HPDF_Doc) hb_parnl( 1 ), (HPDF_Page)hb_parnl( 2 ) ) ); + hb_retptr( ( void * ) HPDF_InsertPage( (HPDF_Doc) hb_parptr( 1 ), (HPDF_Page) hb_parptr( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetFont( hDoc, cFontName, cEncoding ) -> hFont // HB_FUNC( HPDF_GETFONT ) { - hb_retnl( (long) HPDF_GetFont( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ), hb_parc( 3 ) ) ); + hb_retptr( ( void * ) HPDF_GetFont( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ), hb_parc( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_LoadTypeIFontFromFile( hDoc, cAFMFileName, cPFA_PFBFileName ) -> cFontName // HB_FUNC( HPDF_LOADTYPE1FONTFROMFILE ) { - hb_retc( HPDF_LoadType1FontFromFile( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ), hb_parc( 3 ) ) ); + BOOL fFree1; + BYTE * pszFileName1 = hb_fsNameConv( ( BYTE * ) hb_parc( 2 ), &fFree1 ); + BOOL fFree2; + BYTE * pszFileName2 = hb_fsNameConv( ( BYTE * ) hb_parc( 3 ), &fFree2 ); + + hb_retc( HPDF_LoadType1FontFromFile( (HPDF_Doc) hb_parptr( 1 ), ( char * ) pszFileName1, ( char * ) pszFileName2 ) ); + + if( fFree1 ) + hb_xfree( pszFileName1 ); + + if( fFree2 ) + hb_xfree( pszFileName2 ); } //----------------------------------------------------------------------// // HPdf_LoadTTFontFromFile( hDoc, cTTFontFileName, lEmbed ) -> cFontName // HB_FUNC( HPDF_LOADTTFONTFROMFILE ) { - hb_retc( HPDF_LoadTTFontFromFile( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ), hb_parl( 3 ) ) ); + BOOL fFree; + BYTE * pszFileName = hb_fsNameConv( ( BYTE * ) hb_parc( 2 ), &fFree ); + + hb_retc( HPDF_LoadTTFontFromFile( (HPDF_Doc) hb_parptr( 1 ), ( char * ) pszFileName, hb_parl( 3 ) ) ); + + if( fFree ) + hb_xfree( ( void * ) pszFileName ); } //----------------------------------------------------------------------// // HPdf_LoadTTFontFromFile2( hDoc, cTTFontFileName, nIndexInFile, lEmbed ) -> cFontName // HB_FUNC( HPDF_LOADTTFONTFROMFILE2 ) { - hb_retc( HPDF_LoadTTFontFromFile2( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ), hb_parni( 3 ), hb_parl( 4 ) ) ); + BOOL fFree; + BYTE * pszFileName = hb_fsNameConv( ( BYTE * ) hb_parc( 2 ), &fFree ); + + hb_retc( HPDF_LoadTTFontFromFile2( (HPDF_Doc) hb_parptr( 1 ), ( char * ) pszFileName, hb_parni( 3 ), hb_parl( 4 ) ) ); + + if( fFree ) + hb_xfree( ( void * ) pszFileName ); } //----------------------------------------------------------------------// // HPdf_AddPageLabel( hDoc, nPageNum, nPgNoStyle, nFirstPageInRange, cPrefixToLabel ) -> hStatus @@ -289,109 +319,109 @@ HB_FUNC( HPDF_ADDPAGELABEL ) hb_retnl( (long) HPDF_AddPageLabel( (HPDF_Doc) hb_parni( 1 ), hb_parni( 2 ), (HPDF_PageNumStyle) hb_parni( 3 ), hb_parni( 4 ), hb_parc( 5 ) ) ); } //----------------------------------------------------------------------// -// HPdf_UseJPFonts( hDoc ) -> hSttaus +// HPdf_UseJPFonts( hDoc ) -> hStatus // HB_FUNC( HPDF_USEJPFONTS ) { - hb_retnl( (long) HPDF_UseJPFonts( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseJPFonts( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// -// HPdf_UseKRFonts( hDoc ) -> hSttaus +// HPdf_UseKRFonts( hDoc ) -> hStatus // HB_FUNC( HPDF_USEKRFONTS ) { - hb_retnl( (long) HPDF_UseKRFonts( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseKRFonts( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_UseCNSFonts( hDoc ) -> hStatus // HB_FUNC( HPDF_USECNSFONTS ) { - hb_retnl( (long) HPDF_UseCNSFonts( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseCNSFonts( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_UseCNTFonts( hDoc ) -> hStatus // HB_FUNC( HPDF_USECNTFONTS ) { - hb_retnl( (long) HPDF_UseCNTFonts( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseCNTFonts( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_CreateExtGState( hDoc ) -> hExtGState // HB_FUNC( HPDF_CREATEEXTGSTATE ) { - hb_retnl( (long) HPDF_CreateExtGState( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retptr( ( void * ) HPDF_CreateExtGState( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_CreateOutline( hDoc, hParentOutline, cTitle, hEncoder ) -> hOutline // HB_FUNC( HPDF_CREATEOUTLINE ) { - hb_retnl( (long) HPDF_CreateOutline( (HPDF_Doc) hb_parnl( 1 ),(HPDF_Outline) hb_parnl( 2 ), hb_parc( 3 ), (HPDF_Encoder) hb_parnl( 4 ) ) ); + hb_retptr( ( void * ) HPDF_CreateOutline( (HPDF_Doc) hb_parptr( 1 ), (HPDF_Outline) hb_parptr( 2 ), hb_parc( 3 ), (HPDF_Encoder) hb_parptr( 4 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetEncoder( hDoc, cEncoding ) -> hEncoder // HB_FUNC( HPDF_GETENCODER ) { - hb_retnl( (long) HPDF_GetEncoder( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retptr( ( void * ) HPDF_GetEncoder( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetCurrentEncoder( hDoc ) -> hEncoder // HB_FUNC( HPDF_GETCURRENTENCODER ) { - hb_retnl( (long) HPDF_GetCurrentEncoder( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retptr( ( void * ) HPDF_GetCurrentEncoder( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// -// HPdf_SetCurrentEncoder( hDoc, hEncoder ) -> hOutline +// HPdf_SetCurrentEncoder( hDoc, hEncoder ) -> hStatus // HB_FUNC( HPDF_SETCURRENTENCODER ) { - hb_retnl( (long) HPDF_SetCurrentEncoder( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retnl( (long) HPDF_SetCurrentEncoder( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_UseJPEncodings( hDoc ) -> hStatus // HB_FUNC( HPDF_USEJPENCODINGS ) { - hb_retnl( (long) HPDF_UseJPEncodings( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseJPEncodings( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_UseKREncodings( hDoc ) -> hStatus // HB_FUNC( HPDF_USEKRENCODINGS ) { - hb_retnl( (long) HPDF_UseKREncodings( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseKREncodings( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_UseCNSEncodings( hDoc ) -> hStatus // HB_FUNC( HPDF_USECNSENCODINGS ) { - hb_retnl( (long) HPDF_UseCNSEncodings( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseCNSEncodings( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_UseCNTEncodings( hDoc ) -> hStatus // HB_FUNC( HPDF_USECNTENCODINGS ) { - hb_retnl( (long) HPDF_UseCNTEncodings( (HPDF_Doc) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_UseCNTEncodings( (HPDF_Doc) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_LoadPngImageFromFile( hDoc, cPNGFileName ) -> hImage // HB_FUNC( HPDF_LOADPNGIMAGEFROMFILE ) { - hb_retnl( (long) HPDF_LoadPngImageFromFile( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retptr( ( void * ) HPDF_LoadPngImageFromFile( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_LoadPngImageFromFile2( hDoc, cPNGFileName ) -> hImage // HB_FUNC( HPDF_LOADPNGIMAGEFROMFILE2 ) { - hb_retnl( (long) HPDF_LoadPngImageFromFile2( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retptr( ( void * ) HPDF_LoadPngImageFromFile2( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_LoadRawImageFromFile( hDoc, cImageFileName, nWidth, nHeight, nColorSpace ) -> hImage @@ -402,24 +432,24 @@ HB_FUNC( HPDF_LOADPNGIMAGEFROMFILE2 ) // HB_FUNC( HPDF_LOADRAWIMAGEFROMFILE ) { - hb_retnl( (long) HPDF_LoadRawImageFromFile( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ), hb_parni( 3 ), hb_parni( 4 ), (HPDF_ColorSpace) hb_parni( 5 ) ) ); + hb_retptr( ( void * ) HPDF_LoadRawImageFromFile( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ), hb_parni( 3 ), hb_parni( 4 ), (HPDF_ColorSpace) hb_parni( 5 ) ) ); } //----------------------------------------------------------------------// // HPdf_LoadRawImageFromMem( hDoc, cBuffer, nWidth, nHeight, nColorSpace, nBitsPerComponents ) -> hImage // HB_FUNC( HPDF_LOADRAWIMAGEFROMMEM ) { - hb_retnl( (long) HPDF_LoadRawImageFromMem( (HPDF_Doc) hb_parnl( 1 ), (HPDF_BYTE*) hb_parc( 2 ), hb_parni( 3 ), hb_parni( 4 ), (HPDF_ColorSpace) hb_parni( 5 ), hb_parni( 6 ) ) ); + hb_retptr( ( void * ) HPDF_LoadRawImageFromMem( (HPDF_Doc) hb_parptr( 1 ), (HPDF_BYTE*) hb_parc( 2 ), hb_parni( 3 ), hb_parni( 4 ), (HPDF_ColorSpace) hb_parni( 5 ), hb_parni( 6 ) ) ); } //----------------------------------------------------------------------// // HPdf_LoadJPEGImageFromFile( hDoc, cHPEGFileName ) -> hImage // HB_FUNC( HPDF_LOADJPEGIMAGEFROMFILE ) { - hb_retnl( (long) HPDF_LoadJpegImageFromFile( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retptr( ( void * ) HPDF_LoadJpegImageFromFile( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// -// HPdf_SetInfoAttr( hDoc, nInfoType, cInfo ) -> hSttaus +// HPdf_SetInfoAttr( hDoc, nInfoType, cInfo ) -> hStatus // nInfoType == // HPDF_INFO_AUTHOR // HPDF_INFO_CREATOR @@ -429,14 +459,14 @@ HB_FUNC( HPDF_LOADJPEGIMAGEFROMFILE ) // HB_FUNC( HPDF_SETINFOATTR ) { - hb_retnl( (long) HPDF_SetInfoAttr( (HPDF_Doc) hb_parnl( 1 ), (HPDF_InfoType) hb_parni( 2 ), hb_parc( 3 ) ) ); + hb_retnl( (long) HPDF_SetInfoAttr( (HPDF_Doc) hb_parptr( 1 ), (HPDF_InfoType) hb_parni( 2 ), hb_parc( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_GetInfoAttr( hDoc, nInfoType ) -> cInfo // HB_FUNC( HPDF_GETINFOATTR ) { - hb_retc( HPDF_GetInfoAttr( (HPDF_Doc) hb_parnl( 1 ), (HPDF_InfoType) hb_parni( 2 ) ) ); + hb_retc( HPDF_GetInfoAttr( (HPDF_Doc) hb_parptr( 1 ), (HPDF_InfoType) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetInfoDateAttr( hDoc, nInfoType, aDateValues ) -> hStatus @@ -455,14 +485,14 @@ HB_FUNC( HPDF_SETINFODATEATTR ) date.minutes = hb_parni( 2,5 ); date.seconds = hb_parni( 2,6 ); - hb_retnl( (long) HPDF_SetInfoDateAttr( (HPDF_Doc) hb_parnl( 1 ), (HPDF_InfoType) hb_parni( 2 ), date ) ); + hb_retnl( (long) HPDF_SetInfoDateAttr( (HPDF_Doc) hb_parptr( 1 ), (HPDF_InfoType) hb_parni( 2 ), date ) ); } //----------------------------------------------------------------------// // HPdf_SetPassword( hDoc, cOwnerPassword = NO NIL, cUserPassword = CANBE NIL ) -> hStatus // HB_FUNC( HPDF_SETPASSWORD ) { - hb_retnl( (long) HPDF_SetPassword( (HPDF_Doc) hb_parnl( 1 ), hb_parc( 2 ), hb_parc( 3 ) ) ); + hb_retnl( (long) HPDF_SetPassword( (HPDF_Doc) hb_parptr( 1 ), hb_parc( 2 ), hb_parc( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetPermission( hDoc, nPermission ) -> hStatus @@ -475,10 +505,10 @@ HB_FUNC( HPDF_SETPASSWORD ) // HB_FUNC( HPDF_SETPERMISSION ) { - hb_retnl( (long) HPDF_SetPermission( (HPDF_Doc) hb_parnl( 1 ), hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_SetPermission( (HPDF_Doc) hb_parptr( 1 ), hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// -// HPdf_SetEncryptionMode( hDoc, nEncMode, nKeyLen ) -> hSttaus +// HPdf_SetEncryptionMode( hDoc, nEncMode, nKeyLen ) -> hStatus // nEncMode == // HPDF_ENCRYPT_R2 1 Use "Revision 2" algorithm. // The length of key is automatically set to 5(40bit). @@ -487,7 +517,7 @@ HB_FUNC( HPDF_SETPERMISSION ) // HB_FUNC( HPDF_SETENCRYPTIONMODE ) { - hb_retnl( (long) HPDF_SetEncryptionMode( (HPDF_Doc) hb_parnl( 1 ), (HPDF_EncryptMode) hb_parni( 2 ), hb_parni( 3 ) ) ); + hb_retnl( (long) HPDF_SetEncryptionMode( (HPDF_Doc) hb_parptr( 1 ), (HPDF_EncryptMode) hb_parni( 2 ), hb_parni( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_SetCompressionMode( hDoc, nCompMode ) -> hStatus @@ -500,12 +530,12 @@ HB_FUNC( HPDF_SETENCRYPTIONMODE ) // HB_FUNC( HPDF_SETCOMPRESSIONMODE ) { - hb_retnl( (long) HPDF_SetCompressionMode( (HPDF_Doc) hb_parnl( 1 ), hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_SetCompressionMode( (HPDF_Doc) hb_parptr( 1 ), hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// //----------------------------------------------------------------------// -// Page Handelling +// Page Handling //----------------------------------------------------------------------// //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -513,17 +543,17 @@ HB_FUNC( HPDF_SETCOMPRESSIONMODE ) // HB_FUNC( HPDF_PAGE_SETWIDTH ) { - hb_retnl( (long) HPDF_Page_SetWidth( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetWidth( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_SetHeight( hPage, nHeight ) -> hStatus // HB_FUNC( HPDF_PAGE_SETHEIGHT ) { - hb_retnl( (long) HPDF_Page_SetHeight( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetHeight( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// -// HPdf_Page_SetSize( hPage, nSize, nOrientation = 1 Portrait, 2 Landscape ) -> hStatis +// HPdf_Page_SetSize( hPage, nSize, nOrientation = 1 Portrait, 2 Landscape ) -> hStatus // nSize == // HPDF_PAGE_SIZE_LETTER 1 8½ x 11 (Inches) 612 x 792 // HPDF_PAGE_SIZE_LEGAL 2 8½ x 14 (Inches) 612 x 1008 @@ -540,35 +570,35 @@ HB_FUNC( HPDF_PAGE_SETHEIGHT ) // HB_FUNC( HPDF_PAGE_SETSIZE ) { - hb_retnl( (long) HPDF_Page_SetSize( (HPDF_Page) hb_parnl( 1 ), (HPDF_PageSizes) hb_parni( 2 ), (HPDF_PageDirection) hb_parni( 3 ) ) ); + hb_retnl( (long) HPDF_Page_SetSize( (HPDF_Page) hb_parptr( 1 ), (HPDF_PageSizes) hb_parni( 2 ), (HPDF_PageDirection) hb_parni( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_SetRotate( hPage, nAngle = 0-360 ) -> hStatus // HB_FUNC( HPDF_PAGE_SETROTATE ) { - hb_retnl( (long) HPDF_Page_SetRotate( (HPDF_Page) hb_parnl( 1 ), hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetRotate( (HPDF_Page) hb_parptr( 1 ), hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetWidth( hPage ) -> nWidth // HB_FUNC( HPDF_PAGE_GETWIDTH ) { - hb_retnd( (long) HPDF_Page_GetWidth( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetWidth( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetHeight( hPage ) -> nHeight // HB_FUNC( HPDF_PAGE_GETHEIGHT ) { - hb_retnd( (long) HPDF_Page_GetHeight( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetHeight( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_CreateDestination( hPage ) -> hDestn // HB_FUNC( HPDF_PAGE_CREATEDESTINATION ) { - hb_retnl( (long) HPDF_Page_CreateDestination( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retptr( ( void * ) HPDF_Page_CreateDestination( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_CreateAnnot( hPage, aRect[nLeft,nTop,nRight,nBottom], cText, cEncoder ) -> hStatus @@ -577,26 +607,26 @@ HB_FUNC( HPDF_PAGE_CREATETEXTANNOT ) { HPDF_Rect rc; - rc.left = (HPDF_REAL) hb_parnd( 2,1 ); - rc.top = (HPDF_REAL) hb_parnd( 2,2 ); - rc.right = (HPDF_REAL) hb_parnd( 2,3 ); - rc.bottom = (HPDF_REAL) hb_parnd( 2,4 ); + rc.left = (HPDF_REAL) hb_parnd( 2, 1 ); + rc.top = (HPDF_REAL) hb_parnd( 2, 2 ); + rc.right = (HPDF_REAL) hb_parnd( 2, 3 ); + rc.bottom = (HPDF_REAL) hb_parnd( 2, 4 ); - hb_retnl( (long) HPDF_Page_CreateTextAnnot( (HPDF_Page) hb_parnl( 1 ), rc, hb_parc( 3 ), (HPDF_Encoder) hb_parnl( 4 ) ) ); + hb_retnl( (long) HPDF_Page_CreateTextAnnot( (HPDF_Page) hb_parptr( 1 ), rc, hb_parc( 3 ), (HPDF_Encoder) hb_parptr( 4 ) ) ); } //----------------------------------------------------------------------// -// HPdf_Page_CreateLinkAnnot( hPage, aRect, hDestn) -> hStatus +// HPdf_Page_CreateLinkAnnot( hPage, aRect, hDestn ) -> hStatus // HB_FUNC( HPDF_PAGE_CREATELINKANNOT ) { HPDF_Rect rc; - rc.left = (HPDF_REAL) hb_parnd( 2,1 ); - rc.top = (HPDF_REAL) hb_parnd( 2,2 ); - rc.right = (HPDF_REAL) hb_parnd( 2,3 ); - rc.bottom = (HPDF_REAL) hb_parnd( 2,4 ); + rc.left = (HPDF_REAL) hb_parnd( 2, 1 ); + rc.top = (HPDF_REAL) hb_parnd( 2, 2 ); + rc.right = (HPDF_REAL) hb_parnd( 2, 3 ); + rc.bottom = (HPDF_REAL) hb_parnd( 2, 4 ); - hb_retnl( (long) HPDF_Page_CreateLinkAnnot( (HPDF_Page) hb_parnl( 1 ), rc, (HPDF_Destination) hb_parnl( 3 ) ) ); + hb_retnl( (long) HPDF_Page_CreateLinkAnnot( (HPDF_Page) hb_parptr( 1 ), rc, (HPDF_Destination) hb_parptr( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_CreateURILinkAnnot( hPage, aRect, cURI ) -> hStatus @@ -605,33 +635,33 @@ HB_FUNC( HPDF_PAGE_CREATEURILINKANNOT ) { HPDF_Rect rc; - rc.left = (HPDF_REAL) hb_parnd( 2,1 ); - rc.top = (HPDF_REAL) hb_parnd( 2,2 ); - rc.right = (HPDF_REAL) hb_parnd( 2,3 ); - rc.bottom = (HPDF_REAL) hb_parnd( 2,4 ); + rc.left = (HPDF_REAL) hb_parnd( 2, 1 ); + rc.top = (HPDF_REAL) hb_parnd( 2, 2 ); + rc.right = (HPDF_REAL) hb_parnd( 2, 3 ); + rc.bottom = (HPDF_REAL) hb_parnd( 2, 4 ); - hb_retnl( (long) HPDF_Page_CreateURILinkAnnot( (HPDF_Page) hb_parnl( 1 ), rc, hb_parc( 3 ) ) ); + hb_retnl( (long) HPDF_Page_CreateURILinkAnnot( (HPDF_Page) hb_parptr( 1 ), rc, hb_parc( 3 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_TextWidth( hPage, cText ) -> nTextWidth // HB_FUNC( HPDF_PAGE_TEXTWIDTH ) { - hb_retnl( (long) HPDF_Page_TextWidth( (HPDF_Page) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retnl( (long) HPDF_Page_TextWidth( (HPDF_Page) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_MeasureText( hPage, cText, nWidth, lWordWrap ) -> nByteLenOfTextToFitWidth // HB_FUNC( HPDF_PAGE_MEASURETEXT ) { - hb_retnl( (long) HPDF_Page_MeasureText( (HPDF_Page) hb_parnl( 1 ), hb_parc( 2 ), (HPDF_REAL) hb_parnd( 3 ), hb_parl( 4 ), NULL ) ); + hb_retnl( (long) HPDF_Page_MeasureText( (HPDF_Page) hb_parptr( 1 ), hb_parc( 2 ), (HPDF_REAL) hb_parnd( 3 ), hb_parl( 4 ), NULL ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetMode( hPage ) -> nGraphicMode // HB_FUNC( HPDF_PAGE_GETGMODE ) { - hb_retnl( (long) HPDF_Page_GetGMode( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_GetGMode( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetCurrentPos( hPage ) -> aCurPos[ nX, nY ] @@ -641,7 +671,7 @@ HB_FUNC( HPDF_PAGE_GETCURRENTPOS ) HPDF_Point pt; PHB_ITEM info = hb_itemArrayNew( 2 ); - HPDF_Page_GetCurrentPos2( (HPDF_Page) hb_parnl( 1 ), &pt ); + HPDF_Page_GetCurrentPos2( (HPDF_Page) hb_parptr( 1 ), &pt ); hb_arraySetND( info, 1, pt.x ); hb_arraySetND( info, 2, pt.y ); @@ -656,7 +686,7 @@ HB_FUNC( HPDF_PAGE_GETCURRENTTEXTPOS ) HPDF_Point pt; PHB_ITEM info = hb_itemArrayNew( 2 ); - HPDF_Page_GetCurrentTextPos2( (HPDF_Page) hb_parnl( 1 ), &pt ); + HPDF_Page_GetCurrentTextPos2( (HPDF_Page) hb_parptr( 1 ), &pt ); hb_arraySetND( info, 1, pt.x ); hb_arraySetND( info, 2, pt.y ); @@ -668,14 +698,14 @@ HB_FUNC( HPDF_PAGE_GETCURRENTTEXTPOS ) // HB_FUNC( HPDF_PAGE_GETCURRENTFONT ) { - hb_retnl( (long) HPDF_Page_GetCurrentFont( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retptr( ( void * ) HPDF_Page_GetCurrentFont( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetCurrentFontSize( hPage ) -> nFontSize // HB_FUNC( HPDF_PAGE_GETCURRENTFONTSIZE ) { - hb_retnd( (long) HPDF_Page_GetCurrentFontSize( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetCurrentFontSize( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetTransMatrix( hPage ) -> aMatrix[ ] @@ -685,7 +715,7 @@ HB_FUNC( HPDF_PAGE_GETTRANSMATRIX ) HPDF_TransMatrix matrix; PHB_ITEM info = hb_itemArrayNew( 6 ); - matrix = HPDF_Page_GetTransMatrix( (HPDF_Page) hb_parnl( 1 ) ); + matrix = HPDF_Page_GetTransMatrix( (HPDF_Page) hb_parptr( 1 ) ); hb_arraySetND( info, 1, matrix.a ); hb_arraySetND( info, 2, matrix.b ); @@ -701,28 +731,28 @@ HB_FUNC( HPDF_PAGE_GETTRANSMATRIX ) // HB_FUNC( HPDF_PAGE_GETLINEWIDTH ) { - hb_retnd( (long) HPDF_Page_GetLineWidth( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetLineWidth( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetLineCap( hPage ) -> nLineCapStyle // HB_FUNC( HPDF_PAGE_GETLINECAP ) { - hb_retnl( (long) HPDF_Page_GetLineCap( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_GetLineCap( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetLineJoin( hPage ) -> nLineJoinStyle // HB_FUNC( HPDF_PAGE_GETLINEJOIN ) { - hb_retnl( (long) HPDF_Page_GetLineJoin( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_GetLineJoin( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetMiterLimit( hPage ) -> nMiterLimit // HB_FUNC( HPDF_PAGE_GETMITERLIMIT ) { - hb_retnl( (long) HPDF_Page_GetMiterLimit( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_GetMiterLimit( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetDash( hPage ) -> aDash @@ -732,7 +762,7 @@ HB_FUNC( HPDF_PAGE_GETDASH ) HPDF_DashMode dash; PHB_ITEM info = hb_itemArrayNew( 10 ); - dash = HPDF_Page_GetDash( (HPDF_Page) hb_parnl( 1 ) ); + dash = HPDF_Page_GetDash( (HPDF_Page) hb_parptr( 1 ) ); hb_arraySetNI( info, 1, dash.ptn[0] ); hb_arraySetNI( info, 2, dash.ptn[1] ); @@ -752,49 +782,49 @@ HB_FUNC( HPDF_PAGE_GETDASH ) // HB_FUNC( HPDF_PAGE_GETFLAT ) { - hb_retnd( (long) HPDF_Page_GetFlat( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetFlat( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetCharSpace( hPage ) -> nCurCharSpace // HB_FUNC( HPDF_PAGE_GETCHARSPACE ) { - hb_retnd( (long) HPDF_Page_GetCharSpace( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetCharSpace( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetWordSpace( hPage ) -> nCurWordSpace // HB_FUNC( HPDF_PAGE_GETWORDSPACE ) { - hb_retnd( (long) HPDF_Page_GetWordSpace( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetWordSpace( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetHorizontalScalling( hPage ) -> nHorzScaling // HB_FUNC( HPDF_PAGE_GETHORIZONTALSCALLING ) { - hb_retnd( (long) HPDF_Page_GetHorizontalScalling( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetHorizontalScalling( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetTextLeading( hPage ) -> nTextLeading // HB_FUNC( HPDF_PAGE_GETTEXTLEADING ) { - hb_retnd( (long) HPDF_Page_GetTextLeading( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetTextLeading( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetTextRenderingMode( hPage ) -> nTextRenderingMode // HB_FUNC( HPDF_PAGE_GETTEXTRENDERINGMODE ) { - hb_retnd( (long) HPDF_Page_GetTextRenderingMode( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetTextRenderingMode( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetTextRise( hPage ) -> nTextRise // HB_FUNC( HPDF_PAGE_GETTEXTRISE ) { - hb_retnd( (long) HPDF_Page_GetTextRise( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetTextRise( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetRGBFill( hPage ) -> aRGBFill[ nRed, nGreen, nBlue ] @@ -804,7 +834,7 @@ HB_FUNC( HPDF_PAGE_GETRGBFILL ) HPDF_RGBColor rgb; PHB_ITEM info = hb_itemArrayNew( 3 ); - rgb = HPDF_Page_GetRGBFill( (HPDF_Page) hb_parnl( 1 ) ); + rgb = HPDF_Page_GetRGBFill( (HPDF_Page) hb_parptr( 1 ) ); hb_arraySetND( info, 1, rgb.r ); hb_arraySetND( info, 2, rgb.g ); @@ -820,7 +850,7 @@ HB_FUNC( HPDF_PAGE_GETRGBSTROKE ) HPDF_RGBColor rgb; PHB_ITEM info = hb_itemArrayNew( 3 ); - rgb = HPDF_Page_GetRGBStroke( (HPDF_Page) hb_parnl( 1 ) ); + rgb = HPDF_Page_GetRGBStroke( (HPDF_Page) hb_parptr( 1 ) ); hb_arraySetND( info, 1, rgb.r ); hb_arraySetND( info, 2, rgb.g ); @@ -836,7 +866,7 @@ HB_FUNC( HPDF_PAGE_GETCMYKFILL ) HPDF_CMYKColor cmyk; PHB_ITEM info = hb_itemArrayNew( 4 ); - cmyk = HPDF_Page_GetCMYKFill( (HPDF_Page) hb_parnl( 1 ) ); + cmyk = HPDF_Page_GetCMYKFill( (HPDF_Page) hb_parptr( 1 ) ); hb_arraySetND( info, 1, cmyk.c ); hb_arraySetND( info, 2, cmyk.m ); @@ -853,7 +883,7 @@ HB_FUNC( HPDF_PAGE_GETCMYKSTROKE ) HPDF_CMYKColor cmyk; PHB_ITEM info = hb_itemArrayNew( 4 ); - cmyk = HPDF_Page_GetCMYKStroke( (HPDF_Page) hb_parnl( 1 ) ); + cmyk = HPDF_Page_GetCMYKStroke( (HPDF_Page) hb_parptr( 1 ) ); hb_arraySetND( info, 1, cmyk.c ); hb_arraySetND( info, 2, cmyk.m ); @@ -867,28 +897,28 @@ HB_FUNC( HPDF_PAGE_GETCMYKSTROKE ) // HB_FUNC( HPDF_PAGE_GETGRAYFILL ) { - hb_retnd( (long) HPDF_Page_GetGrayFill( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetGrayFill( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetGrayStroke( hPage ) -> nGrayStrokeValue // HB_FUNC( HPDF_PAGE_GETGRAYSTROKE ) { - hb_retnd( (long) HPDF_Page_GetGrayStroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetGrayStroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetStrokingColorSpace( hPage ) -> nStrokingSpace // HB_FUNC( HPDF_PAGE_GETSTROKINGCOLORSPACE ) { - hb_retnd( (long) HPDF_Page_GetStrokingColorSpace( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetStrokingColorSpace( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetFillingColorSpace( hPage ) -> nFillingColorSpace // HB_FUNC( HPDF_PAGE_GETFILLINGCOLORSPACE ) { - hb_retnd( (long) HPDF_Page_GetFillingColorSpace( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnd( (long) HPDF_Page_GetFillingColorSpace( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_GetTextMatrix( hPage ) -> aMatrix[ ] @@ -898,7 +928,7 @@ HB_FUNC( HPDF_PAGE_GETTEXTMATRIX ) HPDF_TransMatrix matrix; PHB_ITEM info = hb_itemArrayNew( 6 ); - matrix = HPDF_Page_GetTextMatrix( (HPDF_Page) hb_parnl( 1 ) ) ; + matrix = HPDF_Page_GetTextMatrix( (HPDF_Page) hb_parptr( 1 ) ) ; hb_arraySetND( info, 1, matrix.a ); hb_arraySetND( info, 2, matrix.b ); @@ -914,7 +944,7 @@ HB_FUNC( HPDF_PAGE_GETTEXTMATRIX ) // HB_FUNC( HPDF_PAGE_GETGSTATEDEPTH ) { - hb_retni( (int) HPDF_Page_GetGStateDepth( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_Page_GetGStateDepth( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPdf_Page_SetSlideShow( hPage, nType, nDurationPerFrame, nTranstnTime = 1 Second ) -> hStatus @@ -939,7 +969,7 @@ HB_FUNC( HPDF_PAGE_GETGSTATEDEPTH ) // HB_FUNC( HPDF_PAGE_SETSLIDESHOW ) { - hb_retnl( (long) HPDF_Page_SetSlideShow( (HPDF_Page) hb_parnl( 1 ), (HPDF_TransitionStyle) hb_parni( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); + hb_retnl( (long) HPDF_Page_SetSlideShow( (HPDF_Page) hb_parptr( 1 ), (HPDF_TransitionStyle) hb_parni( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -952,28 +982,28 @@ HB_FUNC( HPDF_PAGE_SETSLIDESHOW ) // HB_FUNC( HPDF_PAGE_SETLINEWIDTH ) { - hb_retnl( (long) HPDF_Page_SetLineWidth( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetLineWidth( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetLineCap( hPage, nLineCap ) -> hStatus // HB_FUNC( HPDF_PAGE_SETLINECAP ) { - hb_retnl( (long) HPDF_Page_SetLineCap( (HPDF_Page) hb_parnl( 1 ), (HPDF_LineCap) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetLineCap( (HPDF_Page) hb_parptr( 1 ), (HPDF_LineCap) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetLineJoin( hPage, nLineJoin ) -> hStatus // HB_FUNC( HPDF_PAGE_SETLINEJOIN ) { - hb_retnl( (long) HPDF_Page_SetLineJoin( (HPDF_Page) hb_parnl( 1 ), (HPDF_LineJoin) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetLineJoin( (HPDF_Page) hb_parptr( 1 ), (HPDF_LineJoin) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetMiterLimit( hPage, nMiterLimit ) -> hStatus // HB_FUNC( HPDF_PAGE_SETMITERLIMIT ) { - hb_retnl( (long) HPDF_Page_SetMiterLimit( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetMiterLimit( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetDash( hPage, aDash, nNumPoints, nStartFrom ) -> hStatus @@ -989,35 +1019,35 @@ HB_FUNC( HPDF_PAGE_SETDASH ) dash.ptn[ i ] = hb_parni( 2, i+1 ); } - hb_retnl( (long) HPDF_Page_SetDash( (HPDF_Page) hb_parnl( 1 ), dash.ptn, nPtns, hb_parni( 4 ) ) ); + hb_retnl( (long) HPDF_Page_SetDash( (HPDF_Page) hb_parptr( 1 ), dash.ptn, nPtns, hb_parni( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetExtGState( hPage, hGState ) -> hStatus // HB_FUNC( HPDF_PAGE_SETEXTGSTATE ) { - hb_retnl( (long) HPDF_Page_SetExtGState( (HPDF_Page) hb_parnl( 1 ), (HPDF_ExtGState) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetExtGState( (HPDF_Page) hb_parptr( 1 ), (HPDF_ExtGState) hb_parptr( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_GSave( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_GSAVE ) { - hb_retnl( (long) HPDF_Page_GSave( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_GSave( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_GRestore( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_GRESTORE ) { - hb_retnl( (long) HPDF_Page_GRestore( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_GRestore( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Concat( hPage, nA, nB, nC, nD, nX, nY ) -> hStatus // HB_FUNC( HPDF_PAGE_CONCAT ) { - hb_retnl( (long) HPDF_Page_Concat( (HPDF_Page) hb_parnl( 1 ), + hb_retnl( (long) HPDF_Page_Concat( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), @@ -1031,21 +1061,21 @@ HB_FUNC( HPDF_PAGE_CONCAT ) // HB_FUNC( HPDF_PAGE_MOVETO ) { - hb_retnl( (long) HPDF_Page_MoveTo( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); + hb_retnl( (long) HPDF_Page_MoveTo( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_LineTo( hPage, nX, nY ) -> hStatus // HB_FUNC( HPDF_PAGE_LINETO ) { - hb_retnl( (long) HPDF_Page_LineTo( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); + hb_retnl( (long) HPDF_Page_LineTo( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_CurveTo( hPage, nX1, nY1, nX2, nY2, nX3, nY3 ) -> hStatus // HB_FUNC( HPDF_PAGE_CURVETO ) { - hb_retnl( (long) HPDF_Page_CurveTo( (HPDF_Page) hb_parnl( 1 ), + hb_retnl( (long) HPDF_Page_CurveTo( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), @@ -1059,7 +1089,7 @@ HB_FUNC( HPDF_PAGE_CURVETO ) // HB_FUNC( HPDF_PAGE_CURVETO2 ) { - hb_retnl( (long) HPDF_Page_CurveTo2( (HPDF_Page) hb_parnl( 1 ), + hb_retnl( (long) HPDF_Page_CurveTo2( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), @@ -1071,7 +1101,7 @@ HB_FUNC( HPDF_PAGE_CURVETO2 ) // HB_FUNC( HPDF_PAGE_CURVETO3 ) { - hb_retnl( (long) HPDF_Page_CurveTo3( (HPDF_Page) hb_parnl( 1 ), + hb_retnl( (long) HPDF_Page_CurveTo3( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), @@ -1083,294 +1113,294 @@ HB_FUNC( HPDF_PAGE_CURVETO3 ) // HB_FUNC( HPDF_PAGE_CLOSEPATH ) { - hb_retnl( (long) HPDF_Page_ClosePath( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_ClosePath( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Rectangle( hPage, nX, nY, nWidth, nHeight ) -> hStatus // HB_FUNC( HPDF_PAGE_RECTANGLE ) { - hb_retnl( (long) HPDF_Page_Rectangle( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); + hb_retnl( (long) HPDF_Page_Rectangle( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Stroke( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_STROKE ) { - hb_retnl( (long) HPDF_Page_Stroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_Stroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ClosePathStroke( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_CLOSEPATHSTROKE ) { - hb_retnl( (long) HPDF_Page_ClosePathStroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_ClosePathStroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetFontAndSize( hPage, hFont, nSize ) -> hStatus // HB_FUNC( HPDF_PAGE_SETFONTANDSIZE ) { - hb_retnl( (long) HPDF_Page_SetFontAndSize( (HPDF_Page) hb_parnl( 1 ), (HPDF_Font) hb_parnl( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); + hb_retnl( (long) HPDF_Page_SetFontAndSize( (HPDF_Page) hb_parptr( 1 ), (HPDF_Font) hb_parptr( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_BeginText( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_BEGINTEXT ) { - hb_retnl( (long) HPDF_Page_BeginText( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_BeginText( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_EndText( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_ENDTEXT ) { - hb_retnl( (long) HPDF_Page_EndText( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_EndText( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_TextOut( hPage, nX, nY, cText ) -> hStatus // HB_FUNC( HPDF_PAGE_TEXTOUT ) { - hb_retnl( (long) HPDF_Page_TextOut( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), hb_parc( 4 ) ) ); + hb_retnl( (long) HPDF_Page_TextOut( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), hb_parc( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_MoveTextPos( hPage, nX, nY ) -> hStatus // HB_FUNC( HPDF_PAGE_MOVETEXTPOS ) { - hb_retnl( (long) HPDF_Page_MoveTextPos( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); + hb_retnl( (long) HPDF_Page_MoveTextPos( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ShowText( hPage, cText ) -> hStatus // HB_FUNC( HPDF_PAGE_SHOWTEXT ) { - hb_retnl( (long) HPDF_Page_ShowText( (HPDF_Page) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retnl( (long) HPDF_Page_ShowText( (HPDF_Page) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Fill( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_FILL ) { - hb_retnl( (long) HPDF_Page_Fill( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_Fill( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Eofill( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_EOFILL ) { - hb_retnl( (long) HPDF_Page_Eofill( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_Eofill( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_FillStroke( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_FILLSTROKE ) { - hb_retnl( (long) HPDF_Page_FillStroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_FillStroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_EofillStroke( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_EOFILLSTROKE ) { - hb_retnl( (long) HPDF_Page_EofillStroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_EofillStroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ClosePathFillStroke( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_CLOSEPATHFILLSTROKE ) { - hb_retnl( (long) HPDF_Page_ClosePathFillStroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_ClosePathFillStroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ClosePathEofillStroke( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_CLOSEPATHEOFILLSTROKE ) { - hb_retnl( (long) HPDF_Page_ClosePathEofillStroke( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_ClosePathEofillStroke( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_EndPath( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_ENDPATH ) { - hb_retnl( (long) HPDF_Page_EndPath( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_EndPath( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Clip( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_CLIP ) { - hb_retnl( (long) HPDF_Page_Clip( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_Clip( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Eoclip( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_EOCLIP ) { - hb_retnl( (long) HPDF_Page_Eoclip( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_Eoclip( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetCharSpace( hPage, nSpaceWidth ) -> hStatus // HB_FUNC( HPDF_PAGE_SETCHARSPACE ) { - hb_retnl( (long) HPDF_Page_SetCharSpace( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetCharSpace( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetWordSpace( hPage, nSpaceWidth ) -> hStatus // HB_FUNC( HPDF_PAGE_SETWORDSPACE ) { - hb_retnl( (long) HPDF_Page_SetWordSpace( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetWordSpace( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetHorizontalScalling( hPage, nHorzScale ) -> hStatus // HB_FUNC( HPDF_PAGE_SETHORIZONTALSCALLING ) { - hb_retnl( (long) HPDF_Page_SetHorizontalScalling( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetHorizontalScalling( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetTextLeading( hPage, nTextLeading ) -> hStatus // HB_FUNC( HPDF_PAGE_SETTEXTLEADING ) { - hb_retnl( (long) HPDF_Page_SetTextLeading( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetTextLeading( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetTextRenderingMode( hPage, nTextRenderingMode ) -> hStatus // HB_FUNC( HPDF_PAGE_SETTEXTRENDERINGMODE ) { - hb_retnl( (long) HPDF_Page_SetTextRenderingMode( (HPDF_Page) hb_parnl( 1 ), (HPDF_TextRenderingMode) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetTextRenderingMode( (HPDF_Page) hb_parptr( 1 ), (HPDF_TextRenderingMode) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetTextRise( hPage, nTextRise ) -> hStatus // HB_FUNC( HPDF_PAGE_SETTEXTRISE ) { - hb_retnl( (long) HPDF_Page_SetTextRise( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetTextRise( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_MoveTextPos2( hPage, nX, nY ) -> hStatus // HB_FUNC( HPDF_PAGE_MOVETEXTPOS2 ) { - hb_retnl( (long) HPDF_Page_MoveTextPos2( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); + hb_retnl( (long) HPDF_Page_MoveTextPos2( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetTextMatrix( hPage ) -> hStatus --------tobedone--------- // HB_FUNC( HPDF_PAGE_SETTEXTMATRIX ) { - hb_retnl( (long) HPDF_Page_SetTextMatrix( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ), (HPDF_REAL) hb_parnd( 7 ) ) ); + hb_retnl( (long) HPDF_Page_SetTextMatrix( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ), (HPDF_REAL) hb_parnd( 7 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_MoveToNextLine( hPage ) -> hStatus // HB_FUNC( HPDF_PAGE_MOVETONEXTLINE ) { - hb_retnl( (long) HPDF_Page_MoveToNextLine( (HPDF_Page) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Page_MoveToNextLine( (HPDF_Page) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ShowTextNextLine( hPage, cText ) -> hStatus // HB_FUNC( HPDF_PAGE_SHOWTEXTNEXTLINE ) { - hb_retnl( (long) HPDF_Page_ShowTextNextLine( (HPDF_Page) hb_parnl( 1 ), hb_parc( 2 ) ) ); + hb_retnl( (long) HPDF_Page_ShowTextNextLine( (HPDF_Page) hb_parptr( 1 ), hb_parc( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ShowTextNextLineEx( hPage, nWordSpace, nCharSpace, cText ) -> hStatus // HB_FUNC( HPDF_PAGE_SHOWTEXTNEXTLINEEX ) { - hb_retnl( (long) HPDF_Page_ShowTextNextLineEx( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), hb_parc( 4 ) ) ); + hb_retnl( (long) HPDF_Page_ShowTextNextLineEx( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), hb_parc( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetGrayFill( hPage, nGrayFill ) -> hStatus // HB_FUNC( HPDF_PAGE_SETGRAYFILL ) { - hb_retnl( (long) HPDF_Page_SetGrayFill( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetGrayFill( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetGrayStroke( hPage, nGrayStroke ) -> hStatus // HB_FUNC( HPDF_PAGE_SETGRAYSTROKE ) { - hb_retnl( (long) HPDF_Page_SetGrayStroke( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Page_SetGrayStroke( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetRGBFill( hPage, nRGBRed, nRGBGreen, nRGBBlue ) -> hStatus // HB_FUNC( HPDF_PAGE_SETRGBFILL ) { - hb_retnl( (long) HPDF_Page_SetRGBFill( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); + hb_retnl( (long) HPDF_Page_SetRGBFill( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetRGBStroke( hPage, nRGBRed, nRGBGreen, nRGBBlue ) -> hStatus // HB_FUNC( HPDF_PAGE_SETRGBSTROKE ) { - hb_retnl( (long) HPDF_Page_SetRGBStroke( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); + hb_retnl( (long) HPDF_Page_SetRGBStroke( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetCMYKFill( hPage, nC, nM, nY, nK ) -> hStatus // HB_FUNC( HPDF_PAGE_SETCMYKFILL ) { - hb_retnl( (long) HPDF_Page_SetCMYKFill( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); + hb_retnl( (long) HPDF_Page_SetCMYKFill( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_SetCMYKStroke( hPage, nC, nM, nY, nK ) -> hStatus // HB_FUNC( HPDF_PAGE_SETCMYKSTROKE ) { - hb_retnl( (long) HPDF_Page_SetCMYKStroke( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); + hb_retnl( (long) HPDF_Page_SetCMYKStroke( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_ExecuteXObject( hPage, hImage ) -> hStatus // HB_FUNC( HPDF_PAGE_EXECUTEXOBJECT ) { - hb_retnl( (long) HPDF_Page_ExecuteXObject( (HPDF_Page) hb_parnl( 1 ), (HPDF_Image) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_Page_ExecuteXObject( (HPDF_Page) hb_parptr( 1 ), (HPDF_Image) hb_parptr( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_DrawImage( hPage, hImage, nX, nY, nWidth, nHeight ) -> hStatus // HB_FUNC( HPDF_PAGE_DRAWIMAGE ) { - hb_retnl( (long) HPDF_Page_DrawImage( (HPDF_Page) hb_parnl( 1 ), (HPDF_Image) hb_parnl( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ) ) ); + hb_retnl( (long) HPDF_Page_DrawImage( (HPDF_Page) hb_parptr( 1 ), (HPDF_Image) hb_parptr( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Circle( hPage, nX, nY, nRay ) -> hStatus // HB_FUNC( HPDF_PAGE_CIRCLE ) { - hb_retnl( (long) HPDF_Page_Circle( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); + hb_retnl( (long) HPDF_Page_Circle( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Arc( hPage, nX, nY, nRay, nAngle1, nAngle2 ) -> hStatus // HB_FUNC( HPDF_PAGE_ARC ) { - hb_retnl( (long) HPDF_Page_Arc( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ) ) ); + hb_retnl( (long) HPDF_Page_Arc( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_Ellipse( hPage, nX, nY, nxRay, nyRay ) -> hStatus // HB_FUNC( HPDF_PAGE_ELLIPSE ) { - hb_retnl( (long) HPDF_Page_Ellipse( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); + hb_retnl( (long) HPDF_Page_Ellipse( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); } //----------------------------------------------------------------------// // HPDF_Page_TextRect( hPage, nLeft, nTop, nRight, nBottom, cText, nAlign ) -> hStatus // HB_FUNC( HPDF_PAGE_TEXTRECT ) { - hb_retnl( (long) HPDF_Page_TextRect( (HPDF_Page) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), hb_parc( 6 ), (HPDF_TextAlignment) hb_parni( 7 ), NULL ) ); + hb_retnl( (long) HPDF_Page_TextRect( (HPDF_Page) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), hb_parc( 6 ), (HPDF_TextAlignment) hb_parni( 7 ), NULL ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -1383,21 +1413,21 @@ HB_FUNC( HPDF_PAGE_TEXTRECT ) // HB_FUNC( HPDF_FONT_GETFONTNAME ) { - hb_retc( HPDF_Font_GetFontName( (HPDF_Font) hb_parnl( 1 ) ) ); + hb_retc( HPDF_Font_GetFontName( (HPDF_Font) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_GetEncodingName( hFont ) -> cEncoding // HB_FUNC( HPDF_FONT_GETENCODINGNAME ) { - hb_retc( HPDF_Font_GetEncodingName( (HPDF_Font) hb_parnl( 1 ) ) ); + hb_retc( HPDF_Font_GetEncodingName( (HPDF_Font) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_GetUnicodeWidth( hFont, hUnicode ) -> nCharWidth // HB_FUNC( HPDF_FONT_GETUNICODEWIDTH ) { - hb_retnl( (long) HPDF_Font_GetUnicodeWidth( (HPDF_Font) hb_parnl( 1 ), (HPDF_UNICODE)hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_Font_GetUnicodeWidth( (HPDF_Font) hb_parptr( 1 ), (HPDF_UNICODE)hb_parnl( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_GetBBox( hFont ) -> aRect @@ -1407,7 +1437,7 @@ HB_FUNC( HPDF_FONT_GETBBOX ) HPDF_Box rc; PHB_ITEM info = hb_itemArrayNew( 4 ); - rc = HPDF_Font_GetBBox( (HPDF_Font) hb_parnl( 1 ) ); + rc = HPDF_Font_GetBBox( (HPDF_Font) hb_parptr( 1 ) ); hb_arraySetND( info, 1, rc.left ); hb_arraySetND( info, 2, rc.top ); @@ -1421,28 +1451,28 @@ HB_FUNC( HPDF_FONT_GETBBOX ) // HB_FUNC( HPDF_FONT_GETASCENT ) { - hb_retni( (int) HPDF_Font_GetAscent( (HPDF_Font) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_Font_GetAscent( (HPDF_Font) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_GetDescent( hFont ) -> nDescent // HB_FUNC( HPDF_FONT_GETDESCENT ) { - hb_retni( (int) HPDF_Font_GetDescent( (HPDF_Font) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_Font_GetDescent( (HPDF_Font) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_GetXHeight( hFont ) -> nXHeight // HB_FUNC( HPDF_FONT_GETXHEIGHT ) { - hb_retnl( (long) HPDF_Font_GetXHeight( (HPDF_Font) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Font_GetXHeight( (HPDF_Font) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_GetCapHeight( hFont ) -> nCapsHeight // HB_FUNC( HPDF_FONT_GETCAPHEIGHT ) { - hb_retnl( (long) HPDF_Font_GetCapHeight( (HPDF_Font) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Font_GetCapHeight( (HPDF_Font) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Font_TextWidth( hFont, cText, nWidth ) -> aTextWidth[ nNumChars, nNumWords, nWidth, nNumSpace ] @@ -1452,7 +1482,7 @@ HB_FUNC( HPDF_FONT_TEXTWIDTH ) HPDF_TextWidth tw; PHB_ITEM info = hb_itemArrayNew( 4 ); - tw = HPDF_Font_TextWidth( (HPDF_Font) hb_parnl( 1 ), (HPDF_BYTE*) hb_parc( 2 ), hb_parni( 3 ) ); + tw = HPDF_Font_TextWidth( (HPDF_Font) hb_parptr( 1 ), (HPDF_BYTE*) hb_parc( 2 ), hb_parni( 3 ) ); hb_arraySetNI( info, 1, tw.numchars ); hb_arraySetNI( info, 2, tw.numwords ); @@ -1466,14 +1496,14 @@ HB_FUNC( HPDF_FONT_TEXTWIDTH ) // HB_FUNC( HPDF_FONT_MEASURETEXT ) { - hb_retni( HPDF_Font_MeasureText( (HPDF_Font) hb_parnl( 1 ), - (HPDF_BYTE*) hb_parc ( 2 ), + hb_retni( HPDF_Font_MeasureText( (HPDF_Font) hb_parptr( 1 ), + (HPDF_BYTE*) hb_parc( 2 ), hb_parni( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ), (HPDF_REAL) hb_parnd( 6 ), (HPDF_REAL) hb_parnd( 7 ), - hb_parl ( 8 ), + hb_parl( 8 ), NULL ) ); } //----------------------------------------------------------------------// @@ -1492,7 +1522,7 @@ HB_FUNC( HPDF_FONT_MEASURETEXT ) // HB_FUNC( HPDF_ENCODER_GETTYPE ) { - hb_retni( (int) HPDF_Encoder_GetType( (HPDF_Encoder) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_Encoder_GetType( (HPDF_Encoder) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Encoder_GetByteType( hEncoder, cText, nIndex ) -> nByteType @@ -1504,14 +1534,14 @@ HB_FUNC( HPDF_ENCODER_GETTYPE ) // HB_FUNC( HPDF_ENCODER_GETBYTETYPE ) { - hb_retni( (int) HPDF_Encoder_GetByteType( (HPDF_Encoder) hb_parnl( 1 ), hb_parc( 2 ), hb_parni( 3 ) ) ); + hb_retni( (int) HPDF_Encoder_GetByteType( (HPDF_Encoder) hb_parptr( 1 ), hb_parc( 2 ), hb_parni( 3 ) ) ); } //----------------------------------------------------------------------// // HPDF_Encoder_GetUnicode( hEncoder, nCode ) -> nUnicode // HB_FUNC( HPDF_ENCODER_GETUNICODE ) { - hb_retni( (int) HPDF_Encoder_GetUnicode( (HPDF_Encoder) hb_parnl( 1 ), hb_parni( 2 ) ) ); + hb_retni( (int) HPDF_Encoder_GetUnicode( (HPDF_Encoder) hb_parptr( 1 ), hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Encoder_GetWritingMode( hEncoder ) -> nWriteMode @@ -1521,7 +1551,7 @@ HB_FUNC( HPDF_ENCODER_GETUNICODE ) // HB_FUNC( HPDF_ENCODER_GETWRITINGMODE ) { - hb_retni( (int) HPDF_Encoder_GetWritingMode( (HPDF_Encoder) hb_parnl( 1 ) ) ); + hb_retni( (int) HPDF_Encoder_GetWritingMode( (HPDF_Encoder) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -1539,14 +1569,14 @@ HB_FUNC( HPDF_ENCODER_GETWRITINGMODE ) // HB_FUNC( HPDF_LINKANNOT_SETHIGHLIGHTMODE ) { - hb_retnl( (long) HPDF_LinkAnnot_SetHighlightMode( (HPDF_Annotation) hb_parnl( 1 ), (HPDF_AnnotHighlightMode) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_LinkAnnot_SetHighlightMode( (HPDF_Annotation) hb_parptr( 1 ), (HPDF_AnnotHighlightMode) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_LinkAnnot_SetBorderStyle( hAnnot, nWidth, nDashOn, nDashOff ) -> hStatus // HB_FUNC( HPDF_LINKANNOT_SETBORDERSTYLE ) { - hb_retnl( (long) HPDF_LinkAnnot_SetBorderStyle( (HPDF_Annotation) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) ); + hb_retnl( (long) HPDF_LinkAnnot_SetBorderStyle( (HPDF_Annotation) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_TextAnnot_SetIcon( hAnnot, nIconID ) -> hStatus @@ -1561,14 +1591,14 @@ HB_FUNC( HPDF_LINKANNOT_SETBORDERSTYLE ) // HB_FUNC( HPDF_TEXTANNOT_SETICON ) { - hb_retnl( (long) HPDF_TextAnnot_SetIcon( (HPDF_Annotation) hb_parnl( 1 ), (HPDF_AnnotIcon) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_TextAnnot_SetIcon( (HPDF_Annotation) hb_parptr( 1 ), (HPDF_AnnotIcon) hb_parnl( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_TextAnnot_SetOpened( hAnnot, lOpened ) -> hStatus // HB_FUNC( HPDF_TEXTANNOT_SETOPENED ) { - hb_retnl( (long) HPDF_TextAnnot_SetOpened( (HPDF_Annotation) hb_parnl( 1 ), hb_parl( 2 ) ) ); + hb_retnl( (long) HPDF_TextAnnot_SetOpened( (HPDF_Annotation) hb_parptr( 1 ), hb_parl( 2 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -1581,14 +1611,14 @@ HB_FUNC( HPDF_TEXTANNOT_SETOPENED ) // HB_FUNC( HPDF_OUTLINE_SETOPENED ) { - hb_retnl( (long) HPDF_Outline_SetOpened( (HPDF_Outline) hb_parnl( 1 ), hb_parl( 2 ) ) ); + hb_retnl( (long) HPDF_Outline_SetOpened( (HPDF_Outline) hb_parptr( 1 ), hb_parl( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Outline_SetDestination( hOutline, hDestn ) -> hStatus // HB_FUNC( HPDF_OUTLINE_SETDESTINATION ) { - hb_retnl( (long) HPDF_Outline_SetDestination( (HPDF_Outline) hb_parnl( 1 ), (HPDF_Destination) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_Outline_SetDestination( (HPDF_Outline) hb_parptr( 1 ), (HPDF_Destination) hb_parptr( 2 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -1601,56 +1631,56 @@ HB_FUNC( HPDF_OUTLINE_SETDESTINATION ) // HB_FUNC( HPDF_DESTINATION_SETXYZ ) { - hb_retnl( (long) HPDF_Destination_SetXYZ( (HPDF_Destination) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); + hb_retnl( (long) HPDF_Destination_SetXYZ( (HPDF_Destination) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFit( hDestn ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFIT ) { - hb_retnl( (long) HPDF_Destination_SetFit( (HPDF_Destination) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFit( (HPDF_Destination) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFitH( hDestn, nTop ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFITH ) { - hb_retnl( (long) HPDF_Destination_SetFitH( (HPDF_Destination) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFitH( (HPDF_Destination) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFitV( hDestn, nLeft ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFITV ) { - hb_retnl( (long) HPDF_Destination_SetFitV( (HPDF_Destination) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFitV( (HPDF_Destination) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFitR( hDestn, nLeft, nBottom, nRight, nTop ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFITR ) { - hb_retnl( (long) HPDF_Destination_SetFitR( (HPDF_Destination) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFitR( (HPDF_Destination) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ), (HPDF_REAL) hb_parnd( 3 ), (HPDF_REAL) hb_parnd( 4 ), (HPDF_REAL) hb_parnd( 5 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFitB( hDestn ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFITB ) { - hb_retnl( (long) HPDF_Destination_SetFitB( (HPDF_Destination) hb_parnl( 1 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFitB( (HPDF_Destination) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFitBH( hDestn, nTop ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFITBH ) { - hb_retnl( (long) HPDF_Destination_SetFitBH( (HPDF_Destination) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFitBH( (HPDF_Destination) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_Destination_SetFitBV( hDestn, nTop ) -> hStatus // HB_FUNC( HPDF_DESTINATION_SETFITBV ) { - hb_retnl( (long) HPDF_Destination_SetFitBV( (HPDF_Destination) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_Destination_SetFitBV( (HPDF_Destination) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -1666,7 +1696,7 @@ HB_FUNC( HPDF_IMAGE_GETSIZE ) HPDF_Point pt; PHB_ITEM info = hb_itemArrayNew( 2 ); - pt = HPDF_Image_GetSize( (HPDF_Image) hb_parnl( 1 ) ); + pt = HPDF_Image_GetSize( (HPDF_Image) hb_parptr( 1 ) ); hb_arraySetND( info, 1, pt.x ); hb_arraySetND( info, 2, pt.y ); @@ -1678,35 +1708,35 @@ HB_FUNC( HPDF_IMAGE_GETSIZE ) // HB_FUNC( HPDF_IMAGE_GETWIDTH ) { - hb_retni( HPDF_Image_GetWidth( (HPDF_Image) hb_parnl( 1 ) ) ); + hb_retni( HPDF_Image_GetWidth( (HPDF_Image) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Image_GetHeight( hImage ) -> nHeight // HB_FUNC( HPDF_IMAGE_GETHEIGHT ) { - hb_retni( HPDF_Image_GetHeight( (HPDF_Image) hb_parnl( 1 ) ) ); + hb_retni( HPDF_Image_GetHeight( (HPDF_Image) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Image_GetBitsPerComponent( hImage ) -> nBitsPerComponent // HB_FUNC( HPDF_IMAGE_GETBITSPERCOMPONENT ) { - hb_retni( HPDF_Image_GetBitsPerComponent( (HPDF_Image) hb_parnl( 1 ) ) ); + hb_retni( HPDF_Image_GetBitsPerComponent( (HPDF_Image) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Image_GetColorSpace( hImage ) -> nColorSpace // HB_FUNC( HPDF_IMAGE_GETCOLORSPACE ) { - hb_retc( HPDF_Image_GetColorSpace( (HPDF_Image) hb_parnl( 1 ) ) ); + hb_retc( HPDF_Image_GetColorSpace( (HPDF_Image) hb_parptr( 1 ) ) ); } //----------------------------------------------------------------------// // HPDF_Image_SetColorMask( hImage, nRGB_R_Min, nRGB_R_Max, nRGB_G_Min, nRGB_G_Max, nRGB_B_Min, nRGB_B_Max ) // HB_FUNC( HPDF_IMAGE_SETCOLORMASK ) { - hb_retnl( (long) HPDF_Image_SetColorMask( (HPDF_Image) hb_parnl( 1 ), + hb_retnl( (long) HPDF_Image_SetColorMask( (HPDF_Image) hb_parptr( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), @@ -1720,7 +1750,7 @@ HB_FUNC( HPDF_IMAGE_SETCOLORMASK ) // HB_FUNC( HPDF_IMAGE_SETMASKIMAGE ) { - hb_retnl( (long) HPDF_Image_SetMaskImage( (HPDF_Image) hb_parnl( 1 ), (HPDF_Image) hb_parnl( 2 ) ) ); + hb_retnl( (long) HPDF_Image_SetMaskImage( (HPDF_Image) hb_parptr( 1 ), (HPDF_Image) hb_parptr( 2 ) ) ); } //----------------------------------------------------------------------// //----------------------------------------------------------------------// @@ -1733,14 +1763,14 @@ HB_FUNC( HPDF_IMAGE_SETMASKIMAGE ) // HB_FUNC( HPDF_EXTGSTATE_SETALPHASTROKE ) { - hb_retnl( (long) HPDF_ExtGState_SetAlphaStroke( (HPDF_ExtGState) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_ExtGState_SetAlphaStroke( (HPDF_ExtGState) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_ExtGState_SetAlphaFill( hGState, nValue ) -> hStatus // HB_FUNC( HPDF_EXTGSTATE_SETALPHAFILL ) { - hb_retnl( (long) HPDF_ExtGState_SetAlphaFill( (HPDF_ExtGState) hb_parnl( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); + hb_retnl( (long) HPDF_ExtGState_SetAlphaFill( (HPDF_ExtGState) hb_parptr( 1 ), (HPDF_REAL) hb_parnd( 2 ) ) ); } //----------------------------------------------------------------------// // HPDF_ExtGState_SetBlendMode( hGState, nBlendMode ) -> hStatus @@ -1760,6 +1790,6 @@ HB_FUNC( HPDF_EXTGSTATE_SETALPHAFILL ) // HB_FUNC( HPDF_EXTGSTATE_SETBLENDMODE ) { - hb_retnl( (long) HPDF_ExtGState_SetBlendMode( (HPDF_ExtGState) hb_parnl( 1 ), (HPDF_BlendMode) hb_parni( 2 ) ) ); + hb_retnl( (long) HPDF_ExtGState_SetBlendMode( (HPDF_ExtGState) hb_parptr( 1 ), (HPDF_BlendMode) hb_parni( 2 ) ) ); } //----------------------------------------------------------------------//