php-windows Digest 8 Sep 2003 19:24:30 -0000 Issue 1902
Topics (messages 21328 through 21328):
PDF and FDF
21328 by: Cesar Cordovez
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi List!
I'm using the following code to open a pdf form, place a picture and
then save it. This is very new for me, and the code is giving me some
errors like (Fatal error: PDFlib error: Empty document in
c:\Inetpub\wwwroot\pdf_forms\dbtree.php on line 415
). Can somebody help? (line 415 is empty, line 414 is "pdf_close")
TIA.
Cesar
// Begin ------------------
$pdf = pdf_new();
pdf_open_file($pdf);
$pdi = pdf_open_pdi($pdf, $formfile, NULL, 0);
$page= pdf_open_pdi_page($pdf, $pdi, 1, "");
// write the commands to place the image here.
pdf_close_pdi_page($pdf, $page);
// pdf_end_page($pdf);
pdf_close($pdf);
// end ------------------
$formfile is "c:/Inetpub/wwwroot/pdfforms/aform.pdf"
--- End Message ---