Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Printer Software

PDF Writers? 94

Saqib Ali asks: "I am looking for for some OpenSource PDF Writers/Creator. I found one, here. It can basically create PDFs out of common software Like OfficeSuite, Visio, Project or any other Windows Application that uses the Windows Printers. I know OpenOffice can also export to PDF. I am working on a project (fat client) where I need to dynamically create PDF reports from data stored in MySQL DB. I know I can use PHP to create PDFs, and also Apache's Cocoon (you can find an example document, here). Of course, I would like to investigate other OpenSource PDF writers as well. Do you know of any other PDF writers, that I can utilize or learn from by looking at the source-code?"
This discussion has been archived. No new comments can be posted.

PDF Writers?

Comments Filter:
  • CUPS (Score:5, Informative)

    by benjamindees ( 441808 ) on Friday October 24, 2003 @08:47PM (#7305795) Homepage
    CUPS has an option for a virtual PDF printer in Linux, called CUPS-PDF [uni-wuerzburg.de].
    I think it's included in RedHat 9.
  • fpdf.org (Score:5, Informative)

    by Bonewalker ( 631203 ) on Friday October 24, 2003 @08:55PM (#7305837)
    I have found this site useful. The entire class is in one php file. Just move it to your web server, then use some of the tutorials to get the hang of creating pdf's on the fly.

    http://www.fpdf.org

  • OpenOffice (Score:4, Informative)

    by Drakon ( 414580 ) * on Friday October 24, 2003 @08:56PM (#7305839) Journal
    Openoffice can not only write PDFs, it can also read data from a mySQL (or other ODBC/JDBC compliant) databases.
    I don't see any reason not to use it out of the box for such a purpose... or am I missing something?
  • PDF Converters (Score:5, Informative)

    by RedPhoenix ( 124662 ) on Friday October 24, 2003 @08:56PM (#7305841)
    Some of these might be useful:

    Txt2pdf - http://www.sanface.com/txt2pdf.html
    html2pdf - http://www.geocities.com/SiliconValley/Lab/5247/
    HTMLDoc - http://www.easysw.com/htmldoc/pdf-o-matic.php
    Den ature - http://freshmeat.net/projects/denature/
    csv2pdf - http://freshmeat.net/projects/csv2pdf/
    ascii2pdf - http://freshmeat.net/projects/ascii2pdf/

    And a google directory reference: http://directory.google.com/Top/Computers/Software /Word_Processors/PDF/Converters/

    Good luck!

    Red.
  • XO? FO? (Score:2, Informative)

    by cookiepus ( 154655 ) on Friday October 24, 2003 @08:57PM (#7305846) Homepage
    This is going to be the vaguest useful answer given...

    Back in the day I needed to turn some XML files into HTML files by applying an XSL transformation. I also found out that the same process can be done for making PDF files using something called FO (or was it XO?) from the Apache people (not the Indians)

    I made XSL files with PDF-generating tags and then ran 'em through this Java library. Since out backend was made in Java anyway it was a perfect fit.

    It would be quite exciting if I was a geek and cared about this sort of thing. ;-)

  • ps2pdf (Score:4, Informative)

    by GiMP ( 10923 ) on Friday October 24, 2003 @09:16PM (#7305926)
    Practically every Unix applications output postscript when issued a print command. If the software doesn't allow you to print to file, then print to the command "cat > file.ps" to save to file.ps.

    Then, run:
    ps2pdf -r600 file.ps file.pdf

    You can change the 600 to whatever resolution you wish.

    If you're grabbing this from a database, you can simply output in text and use ascii2ps to create a pdf file.
  • Re:PDF Converters (Score:3, Informative)

    by saden1 ( 581102 ) on Saturday October 25, 2003 @01:04AM (#7306706)
    Add iText [lowagie.com] to the mix. It is a Java library capable of doing almost anything. The only down side is it is slower than native C libraries out there. If speed is a real issue, you could compile your iText Java classes using GCJ and convert them into native code. I'm thinking doing so will seed up your application. I haven't tried converting it to native code, has anyone?

The hardest part of climbing the ladder of success is getting through the crowd at the bottom.

Working...