cvs: php4 / NEWS /ext/pdf pdf.c

From: Date: Wed, 05 Jul 2000 14:30:51 +0000
Subject: cvs: php4 / NEWS /ext/pdf pdf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-627@lists.php.net to get a copy of this message
steinm Wed Jul 5 07:30:51 2000 EDT Modified files: /php4 NEWS /php4/ext/pdf pdf.c Log: - Support for pdflib 3.01 Index: php4/NEWS diff -u php4/NEWS:1.340 php4/NEWS:1.341 --- php4/NEWS:1.340 Wed Jul 5 01:59:19 2000 +++ php4/NEWS Wed Jul 5 07:30:50 2000 @@ -2,6 +2,7 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2000, Version 4.0.2 +- Support for pdflib 3.01 - FDF Data is handled properly and can be accessed by reading HTTP_RAW_POST_DATA - Added new 'O' format modifier that will output the GMT offset as "[+-]HHMM" (eg: Pacific time is -0700). This is useful for things such as Date: mail Index: php4/ext/pdf/pdf.c diff -u php4/ext/pdf/pdf.c:1.48 php4/ext/pdf/pdf.c:1.49 --- php4/ext/pdf/pdf.c:1.48 Wed Jun 28 04:44:29 2000 +++ php4/ext/pdf/pdf.c Wed Jul 5 07:30:50 2000 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdf.c,v 1.48 2000/06/28 11:44:29 joey Exp $ */ +/* $Id: pdf.c,v 1.49 2000/07/05 14:30:50 steinm Exp $ */ /* pdflib 2.02 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ @@ -804,7 +804,7 @@ RETURN_FALSE; } - PDF_set_leading(pdf, (float) arg2->value.dval); + PDF_set_value(pdf, "leading", (float) arg2->value.dval); RETURN_TRUE; } @@ -831,7 +831,7 @@ RETURN_FALSE; } - PDF_set_text_rendering(pdf, arg2->value.lval); + PDF_set_value(pdf, "textrendering", (float) arg2->value.lval); RETURN_TRUE; } @@ -858,7 +858,7 @@ RETURN_FALSE; } - PDF_set_horiz_scaling(pdf, (float) arg2->value.dval); + PDF_set_value(pdf, "horizscaling", (float) arg2->value.dval); RETURN_TRUE; } @@ -885,7 +885,7 @@ RETURN_FALSE; } - PDF_set_text_rise(pdf, (float) arg2->value.dval); + PDF_set_value(pdf, "textrise", (float) arg2->value.dval); RETURN_TRUE; } @@ -994,7 +994,7 @@ RETURN_FALSE; } - PDF_set_char_spacing(pdf, (float) arg2->value.dval); + PDF_set_value(pdf, "charspacing", (float) arg2->value.dval); RETURN_TRUE; } @@ -1021,7 +1021,7 @@ RETURN_FALSE; } - PDF_set_word_spacing(pdf, (float) arg2->value.dval); + PDF_set_value(pdf, "wordspacing", (float) arg2->value.dval); RETURN_TRUE; } @@ -1076,7 +1076,7 @@ RETURN_FALSE; } - width = (double) PDF_stringwidth(pdf, arg2->value.str.val, PDF_get_font(pdf), PDF_get_fontsize(pdf)); + width = (double) PDF_stringwidth(pdf, arg2->value.str.val, PDF_get_value(pdf, "font", 0), PDF_get_value(pdf, "fontsize", 0)); RETURN_DOUBLE((double)width); } @@ -2199,31 +2199,31 @@ switch(arg2->value.lval) { case 0: - PDF_set_transition(pdf, "none"); + PDF_set_parameter(pdf, "transition", "none"); break; case 1: - PDF_set_transition(pdf, "split"); + PDF_set_parameter(pdf, "transition", "split"); break; case 2: - PDF_set_transition(pdf, "blinds"); + PDF_set_parameter(pdf, "transition", "blinds"); break; case 3: - PDF_set_transition(pdf, "box"); + PDF_set_parameter(pdf, "transition", "box"); break; case 4: - PDF_set_transition(pdf, "wipe"); + PDF_set_parameter(pdf, "transition", "wipe"); break; case 5: - PDF_set_transition(pdf, "dissolve"); + PDF_set_parameter(pdf, "transition", "dissolve"); break; case 6: - PDF_set_transition(pdf, "glitter"); + PDF_set_parameter(pdf, "transition", "glitter"); break; case 7: - PDF_set_transition(pdf, "replace"); + PDF_set_parameter(pdf, "transition", "replace"); break; default: - PDF_set_transition(pdf, "none"); + PDF_set_parameter(pdf, "transition", "none"); } @@ -2252,7 +2252,7 @@ RETURN_FALSE; } - PDF_set_duration(pdf, (float) arg2->value.dval); + PDF_set_value(pdf, "duration", (float) arg2->value.dval); RETURN_TRUE; } @@ -2595,7 +2595,7 @@ RETURN_FALSE; } - width = PDF_get_image_width(pdf, pdf_image); + width = PDF_get_value(pdf, "imagewidth", pdf_image); RETURN_LONG(width); } @@ -2631,7 +2631,7 @@ RETURN_FALSE; } - height = PDF_get_image_height(pdf, pdf_image); + height = PDF_get_value(pdf, "imageheight", pdf_image); RETURN_LONG(height); }

« previous php.cvs (#627) next »