int id, type;
int pdf_image;
PDF *pdf;
+ char *image;
PDF_TLS_VARS;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
RETURN_FALSE;
}
- pdf_image = PDF_open_image_file(pdf, "gif", (*arg2)->value.str.val, "", 0);
+ virtual_filepath((*arg2)->value.str.val, &image);
+
+ pdf_image = PDF_open_image_file(pdf, "gif", image, "", 0);
if(pdf_image < 0) {
php_error(E_WARNING, "Could not open image");
int id, type;
int pdf_image;
PDF *pdf;
+ char *image;
PDF_TLS_VARS;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
RETURN_FALSE;
}
- pdf_image = PDF_open_image_file(pdf, "jpeg", (*arg2)->value.str.val, "", 0);
+ virtual_filepath((*arg2)->value.str.val, &image);
+
+ pdf_image = PDF_open_image_file(pdf, "jpeg", image, "", 0);
if(pdf_image < 0) {
php_error(E_WARNING, "Could not open image");
int id, type;
int pdf_image;
PDF *pdf;
+ char *image;
PDF_TLS_VARS;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
RETURN_FALSE;
}
- pdf_image = PDF_open_image_file(pdf, "png", (*arg2)->value.str.val, "", 0);
+ virtual_filepath((*arg2)->value.str.val, &image);
+
+ pdf_image = PDF_open_image_file(pdf, "png", image, "", 0);
if(pdf_image < 0) {
php_error(E_WARNING, "Could not open image");
int id, type;
int pdf_image;
PDF *pdf;
+ char *image;
PDF_TLS_VARS;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
RETURN_FALSE;
}
- pdf_image = PDF_open_image_file(pdf, "tiff", (*arg2)->value.str.val, "", 0);
+ virtual_filepath((*arg2)->value.str.val, &image);
+
+ pdf_image = PDF_open_image_file(pdf, "tiff", image, "", 0);
if(pdf_image < 0) {
php_error(E_WARNING, "Could not open image");
int id, type;
int pdf_image;
PDF *pdf;
+ char *image;
PDF_TLS_VARS;
if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
RETURN_FALSE;
}
- pdf_image = PDF_open_image_file(pdf, (*arg2)->value.str.val, (*arg3)->value.str.val, "", 0);
+ virtual_filepath((*arg3)->value.str.val, &image);
+
+ pdf_image = PDF_open_image_file(pdf, (*arg2)->value.str.val, image, "", 0);
if(pdf_image < 0) {
php_error(E_WARNING, "Could not open image");