Parameter too short
How To: Create PDF With Php
Hi
I got really excited when I saw the php file creating my first pdf. Really cool
The only thing is that when I got o the image backround section I got an error
Fatal error: Uncaught exception 'PDFlibException' with message
'pdf_open_image_file() expects exactly 5 parameters, 3 given' in
C:\wamp_new\www\pdf_create\newpdf.Php:7
Stack trace:
#0 C:\wamp_new\www\pdf_create\newpdf.Php(7):
Pdf_open_image_file(Resource id #2, 'jpeg', 'matrix.Jpg')
#1 {main} thrown in C:\wamp_new\www\pdf_create\newpdf.Php on line 7
I've put my jpeg in the same folder as the php file and copied your code as is.
And another error Where you draw only the Triangles
Fatal error: Uncaught exception 'PDFlibException' with message
'pdf_setcolor() expects exactly 7 parameters, 6 given' in
C:\wamp_new\www\pdf_create\newpdf.Php:9
Stack trace:
#0 C:\wamp_new\www\pdf_create\newpdf.Php(9): pdf_setcolor(Resource id
#2, 'fill', 'rgb', 1, 1, 0)
#1 {main} thrown in C:\wamp_new\www\pdf_create\newpdf.Php on line 9
Maybe you can give me some advise so I can get this working. I'm using WAMP2 for PC
-reply by Jacques
Comment/Reply (w/o sign-up)