Hi Guys,
I just installed PDFLib,
Im trying to create automatic invoice system for one of my clients.
Im testing using MAMP on mac OSX10.5.
I used the PDFLib manual and installed the extension.
Im pretty sure that everything is working because i can see the
extension information in my phpinfo().
I created a php file that creates a dynamic pdf file but for some reason i can't
open it. The pdf file size is 0kb and when im trying to open it, it says that the file is damaged... but php doesnt throw any errors back...
I was wondering if some1 in the community have had any experience with PDFLib and can help me. Thanks


	$pdf = PDF_new();
	pdf_open_file($pdf, "heloworld.pdf");
	pdf_begin_page($pdf, 595, 842);
	$arial = PDF_findfont($pdf,"Arial","host",0 );
	pdf_setfont($pdf, $arial, 10);
	pdf_show_xy($pdf, "Hellow World? ",50, 750);
	pdf_show_xy($pdf, "Test 1, 2, 3, 4 working. ", 50,730);

8 Years
Discussion Span
Last Post by _Rade
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.