Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF::Create 1

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I want to use the PDF::Create module from CPAN. I have it installed and I have been able to create two PDF pages as I would like, but the problem is I create HTML tables on the fly in my perl script and I need for the same information to go to the PDF.

It seems I have to write each line to the PDF and it doesn't handle HTML tags.

Does someone know how I can spit a block of text to the PDF::Create module and have it be in HTML?

Thanks
 
At one time, I needed to create PDFs from HTML to deliver on an intranet. Because I'm a big fan of TMTOWTDI, I did the following steps. (Keep in mind that I was more of a neonate at the time.)

1. Use my CGI Perl script to create the HTML.
2. Write the same HTML to a file.
3. Use html2ps ( to convert to PostScript.
4. Use GhostScript to convert the PS to PDF.
5. Deliver the PDF.

Of course, if you want to keep it all in Perl, use the PDF modules.

Share and enjoy!
 
Thanks. This was an idea I also was looking at. I did think it seemed like a lot of steps to get where I wanted but it seems it *may* be the best solution.

I appreciate the input.

Mindy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top