Jump to content

Problem with PDFlib / lineto function, PHP5


jdackus

Recommended Posts

I'm attempting to get horizontal line drawing working in a pdf-generator script I've written.
All the documentation I seem to find refers to this method:

PDF_lineto($pdf, x, y);

I'm unable to get any functions to work this way in my script, so I've been using (successfully till now):

$p->whatever(whatever);

the line  $p->lineto(20,200);  for example, produces the following error:

PDFlib exception occurred in View Proof: [2100] : Function must not be called in 'path' scope

i've tried this about a dozen different ways to no avail.

Any suggestions?
Link to comment
https://forums.phpfreaks.com/topic/23683-problem-with-pdflib-lineto-function-php5/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.