0

I am parsing a text file in my perl script and wanted to dumb my hash to a pdf file. I dont really need to do formatting of data, just some plain text going to be there in the pdf file. Using a heavy cpan module would be an overkill for this simple task I guess.

What would be the best way to do this without using any externals modules.

I am on AIX 5.3 with perl 5.8

Govind Kailas
  • 2,645
  • 5
  • 22
  • 24

2 Answers2

1

Use the PDF::API2 package - see details at the Oreilly site

user1914292
  • 1,586
  • 13
  • 38
0

Unfortunately PDF is not a simple format. For one, it is binary, and the content is stored in a tree structure. However, if you have a tool like enscript you can easily create a PS file from simple text input which you can then convert to a PDF.

Michael Wild
  • 24,977
  • 3
  • 43
  • 43