Govind Kailas
Govind Kailas

Reputation: 2934

Create a simple PDF file using perl

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

Upvotes: 0

Views: 1142

Answers (2)

user1914292
user1914292

Reputation: 1556

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

Upvotes: 1

Michael Wild
Michael Wild

Reputation: 26341

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.

Upvotes: 0

Related Questions