Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Perl module to convert pod file to pdf file

by Corion (Patriarch)
on Nov 28, 2003 at 11:40 UTC ( [id://310699]=note: print w/replies, xml ) Need Help??


in reply to Perl module to convert pod file to pdf file

Your (lack of) formatting makes your questions really hard to read. I draw three questions out of your posting:

  1. Is there a Perl module that converts pod files to the PDF format?
  2. How can I convert PDF files to files in HTML format?
  3. If I want to convert PDF files into the HTML format, do I have to read the PDF file and decrypt the PDF file and then put it into HTML format?
It is customary to end questions with a question mark "?", that makes it easier for the readers to find out questions in your postings.

Now for some answers to your questions:

  1. Looking on http://search.cpan.org for pod pdf, I find Pod::Pdf, which is old but claims to create PDF output from Pod. Another approach would be to use Pod::Simple to extract valuable information from files containing Pod formatting and using one of the Pdf generating modules to create PDF format files from that.
  2. The question was answered in another node. You don't tell in which way the provided solutions were not satisfactory, and it is customary to post follow up questions or clarifications in the original thread instead of creating new threads without linking back.
  3. As detailed previously, yes, you will have to decode the PDF and then output it into HTML format, as the HTML format has no provisions for directly embedding PDF format files within HTML format files. The use of the word "decrypt" is misleading here, as PDF format files are more or less PostScript format files, which is a programming language, so I would rather use "decode" or "interpret" instead of "decrypt". The word "decrypt" hints more at encryption, which is also possible for PDF files, but not central to the problem. The words "decode" or "interpret" hint more at the nature of PDF files, namely, that they are actually programs in a specialized page description language.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-26 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found