if(outline) efree(outline);
}
-#if PDFLIB_MAJORVERSION > 1 & PDFLIB_MINORVERSION > 0
static void custom_errorhandler(PDF *p, int type, const char*shortmsg) {
switch (type){
case PDF_NonfatalError:
static void pdf_efree(PDF *p, void *mem) {
return(efree(mem));
}
-#endif
#if PDFLIB_MAJORVERSION >= 3 | (PDFLIB_MAJORVERSION >= 2 & PDFLIB_MINORVERSION >= 10)
static size_t pdf_flushwrite(PDF *p, void *data, size_t size){
php_printf("Support for in memory pdf creation.");
#endif
-#if PDFLIB_MINORVERSION > 0
+#if PDFLIB_MAJORVERSION >= 3 | PDFLIB_MINORVERSION > 0
php_printf("The function pdf_put_image() and pdf_execute_image() are <B>not</B> available");
#else
php_printf("The function pdf_put_image() and pdf_execute_image() are available");
int argc;
PDF_TLS_VARS;
-#if PDFLIB_MAJORVERSION >= 2 & PDFLIB_MINORVERSION >= 10
+#if PDFLIB_MAJORVERSION >= 3 | (PDFLIB_MAJORVERSION >= 2 & PDFLIB_MINORVERSION >= 10)
argc = ARG_COUNT(ht);
if(argc > 1)
WRONG_PARAM_COUNT;
/* XXX should do anzend_list_addref for <fp> here! */
#endif
-#if PDFLIB_MAJORVERSION > 1 & PDFLIB_MINORVERSION > 0
pdf = PDF_new2(custom_errorhandler, pdf_emalloc, pdf_realloc, pdf_efree, NULL);
-#else
- pdf = PDF_new();
-#endif
#if PDFLIB_MAJORVERSION >= 2 & PDFLIB_MINORVERSION >= 10 & defined PDF_OPEN_MEM_SUPPORTED
if(fp) {