Never mind.  I found the error.

thanks

"Micah Montoy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I did my research.  We'll, searched the net anyway without a solution.  I
am
> getting the error:
>
> Fatal error: PDFlib error: function 'PDF_set_info' must not be called in
> 'object' scope in
> c:\inetpub\wwwroot\webpage10\example\utilities\pdf_maker\act_p_makePDF.php
> on line 4
>
> I read that this is because file write permissions are not set on the
> directory where the file is to be written, so I set write permissions and
> still the exact same thing. I even set write permissions for the whole
> directory and restarted IIS with the same results.  Now when I use the
exact
> same script in a completely different directory on the webserver, it
creates
> the PDF just fine.  The permissions are the same, just a different
> directory.  Here is the PDF script I'm testing out:
>
> <?php
> $pdf = pdf_new();
> pdf_open_file($pdf, "test.pdf");
> pdf_set_info($pdf, "Author", "Uwe Steinmann");  //line 4
> pdf_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0");
> pdf_set_info($pdf, "Creator", "See Author");
> pdf_set_info($pdf, "Subject", "Testing");
> pdf_begin_page($pdf, 595, 842);
> pdf_add_outline($pdf, "Page 5");
> $font = pdf_findfont($pdf, "Times New Roman", "winansi", 1);
> pdf_setfont($pdf, $font, 10);
> pdf_set_value($pdf, "textrendering", 1);
> pdf_show_xy($pdf, "Times Roman outlined", 50, 750);
> pdf_moveto($pdf, 50, 740);
> pdf_lineto($pdf, 530, 740);
> pdf_stroke($pdf);
> pdf_end_page($pdf);
> pdf_close($pdf);
> pdf_delete($pdf);
> echo "<A HREF=getitem.php>finished</A>";
> ?>
>
> Anyone encounter such a thing and have a possible solution for this?
>
> thanks
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to