Jump to content


Photo

TCPDF

tcpdf

  • Please log in to reply
6 replies to this topic

#1 Roopavathy

Roopavathy

    Member

  • Members
  • PipPip
  • 27 posts

Posted 18 September 2013 - 12:33 AM

I have used TCPDF.But when i execute the first example "example_001.php",the pdf opens and displays only the header and footer.But the the HTML content doesn't get displayed.Please help.

25i64qb.jpg



#2 Guber-X

Guber-X

    Advanced Member

  • Members
  • PipPipPip
  • 127 posts
  • LocationCourtenay, BC

Posted 18 September 2013 - 12:37 AM

please provide php code for further help, other wise its just a shot in the dark to help



#3 Roopavathy

Roopavathy

    Member

  • Members
  • PipPip
  • 27 posts

Posted 18 September 2013 - 12:49 AM

Its nothing but the TCPDF link.

 

http://www.tcpdf.org...xample_001.phps

 

But,when i installed TCPDF in my localhost and execute it,the pdf opens but not the html content.



#4 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,257 posts
  • LocationMississauga, Canada

Posted 18 September 2013 - 07:01 AM

Its nothing but the TCPDF link.

 

http://www.tcpdf.org...xample_001.phps

 

But,when i installed TCPDF in my localhost and execute it,the pdf opens but not the html content.

 

But....there is no problem with those examples, right?



#5 Roopavathy

Roopavathy

    Member

  • Members
  • PipPip
  • 27 posts

Posted 18 September 2013 - 10:47 PM

Hurray.....now it works..again i installed it,now it works.

 

Thank you.



#6 Roopavathy

Roopavathy

    Member

  • Members
  • PipPip
  • 27 posts

Posted 19 September 2013 - 12:03 AM

I want to print the values from the database dynamically.How can i?

 

Here in TCPDF example_011

 

http://www.tcpdf.org...example_011.pdf   they used static table.How can i output the data dynamically.Please help

 

Thanks in advance.



#7 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,257 posts
  • LocationMississauga, Canada

Posted 19 September 2013 - 08:25 AM

Fetch the data from the database dynamically and push the content in an array. Then, just foreach that array as in the example above. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com