Nov 8, 2009
Pages: 1, 2, 3

How To: Create PDF With Php - Create on-the-fly PDF on the web server

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > PHP

How To: Create PDF With Php - Create on-the-fly PDF on the web server

(G)Michelle
Table formatting in pdf creation
How To: Create PDF With Php

I am trying to create a pdf document using php, but I want to include a table layout with data I will type in  eg

 

                    Form Name

Tests Performed |By Whom |When

New                    |    tester   |12-01-2009 

 

I'm not seeing anything in the PDF_functions that deal with adding a table layout. Can anyone assist? 

-question by Michelle
Keywords:

Comment/Reply (w/o sign-up)

(G)Jacques
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)

(G)Hector
Thanks and congratulations
How To: Create PDF With Php

I'm currently developing an app to construct a pdf from a table, your page is amazing and with great info, very clear and simple to understand. Very good job, thanks for sharing this tutorial.

-reply by Hector

 


Comment/Reply (w/o sign-up)

(G)vinay
how to fetch data from database and print in pdf.
How To: Create PDF With Php

hello all

this is wonderfullsite.

I would like to know how we can call data from mysql and export data to pdf.

please provide code for this problem.

may be all other will also get benefited by this

thanks 

vinayg


Comment/Reply (w/o sign-up)

(G)Juan
Thanks
How To: Create PDF With Php

Hi. I thank you for posting something greatly explained with tons of steps to make it even easier.

Greetings from Mexico! 

-reply by Juan


Comment/Reply (w/o sign-up)

HannahI
That us a great tutorial you have put together.
Must be very helpful.
-Hannah

Comment/Reply (w/o sign-up)

(G)tib
PDFlibException
How To: Create PDF With Php

add, the extra parm as if for the case of using cmyk
PDF_setcolor($mypdf, "stroke", "rgb", 0, 0, 1, 2);



Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3

See Also,

*SIMILAR VIDEOS*
Searching Video's for howto, create, pdf, php, create, fly, pdf, web, server
advertisement



How To: Create PDF With Php - Create on-the-fly PDF on the web server

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com