Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

PDF File Creation

by LostS (Friar)
on Oct 05, 2001 at 19:09 UTC ( [id://117011]=perlquestion: print w/replies, xml ) Need Help??

LostS has asked for the wisdom of the Perl Monks concerning the following question:

Hey Everyone,

Here is my fun chore for today... Take this data and make it a PDF. I have a flat file database system. Now I need to take that data format into this format:

(ID) TITLE
Explanation: LONG DESCRIPTION
Record Copy: RECORD COPY INFO
Retention: RETENTION INFO
Citation or Reference: CITATION AND/ORG REFERENCE INFO

Well it is easy to put it in HTML format... But attempting to make it PDF is a little tricky and these PDF Modules are extremely hard to understand for me. Now this is where it gets funny... Yes I have that data needing to be printed... HOWEVER... I have 12 Differant Catagories... Each Catagory has it's own set of Title's... For example. Catagory A has 125 differant title's with explinations and everything... Catagory B has 14... and so forth... How can I create this system that will create Sections for each Catagory. Then under those page(s) it will list all the entries. Now some sections will have multiple pages which is what I think is hosing me up some how and having to worry about the X and Y coordinates... So.. Can anyone help me??


-----------------------
Billy S.
Slinar Hardtail - Guildless
Datal Ephialtes - Guildless
RallosZek.Net Admin/WebMaster
Aerynth.Net Admin/WebMaster

perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat! +\n"; } else { print "Thats a dog\n"; } print "\n";'

Replies are listed 'Best First'.
Re: PDF File Creation
by Fletch (Bishop) on Oct 05, 2001 at 19:21 UTC
Re: PDF File Creation
by jj808 (Hermit) on Oct 05, 2001 at 19:20 UTC
    Have a look at html2ps, then if you have Ghostscript installed, read the man page for ps2pdf.

    Cheers,

    JJ

Re: PDF File Creation
by Jouke (Curate) on Oct 06, 2001 at 19:20 UTC
    If you take a look at this node you can see how simple it is to create PDF's using PDFLib.

    Jouke Visser, Perl 'Adept'
    Using Perl to help the disabled: pVoice and pStory
Re: PDF File Creation
by Anonymous Monk on Oct 05, 2001 at 23:05 UTC

    Well, as usual someone has already done the work for you. Below is a link to a library/program you can download that will convert text into a PDF.

    http://www.sanface.com/ (see txt2pdf)

    Hope this helps
    Syrkres

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://117011]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found