PDF_continue_text(p, "(says C)");
PDF_end_page_ext(p, "");
PDF_end_document(p, "");
}
PDF_CATCH(p) {
printf("PDFlib exception occurred in hello sample:\n");
printf("[%d] %s: %s\n",
PDF_get_errnum(p), PDF_get_apiname(p), PDF_get_errmsg(p));
PDF_delete(p);
return(2);
}
PDF_delete(p);
return 0;
}
2.4.3
DLL
PDFlib
> pdflib.h
pdflibdl.h
> PDF_new( ) PDF_delete( )
PDF_new_dl( ) PDF_delete_dl( )
> PDF_TRY( ) PDF_CATCH( )
PDF_TRY_DL( ) PDF_CATCH_DL( )
>
> PDF_get_opaque( )
>
pdflibdl.c
PDFlib DLL
#include
#include
#include "pdflibdl.h"
int
main(void)
{
PDF *p;
int font;
PDFlib_api *PDFlib;
/* PDFlib
PDFlib
*/
if ((PDFlib = PDF_new_dl(&p)) == (PDFlib_api *) NULL)
{
2.4 C
27
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved