Re: cvs: php4 /ext/pdf pdf.c
| From: | Jani Taskinen | Date: | Wed, 03 Jan 2001 15:06:43 +0000 |
| Subject: | Re: cvs: php4 /ext/pdf pdf.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-3343@lists.php.net to get a copy of this message | ||
On Wed, 3 Jan 2001, Daniel Beulshausen wrote:
This propably works with windows, but if VIRTUAL_DIR isn't defined..not
in any system. image will be empty.
I have made a kinda big patch for this extension which is
included. It fixes this prob and brings this extension a bit
more up to date. Patch included. Please try it out.
--Jani
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "gif", image, "", 0);
>
>@@ -2376,7 +2378,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "jpeg", image, "", 0);
>
>@@ -2413,7 +2417,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "png", image, "", 0);
>
>@@ -2450,7 +2456,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "tiff", image, "", 0);
>
>@@ -2488,7 +2496,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg3)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, (*arg2)->value.str.val, image, "", 0);
>
>
>
>
>