Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

pod2pdf print blank page

by Anonymous Monk
on Sep 10, 2012 at 15:55 UTC ( #992789=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I installed App::pod2pdf from CPAN to a local library ~/mylib/lib/perl5 and tried to use it from the command line like:

 perldoc -f each | pod2pdf > each.pdf

and bash returns that it can't find the pod2pdf package...

Then I installed pod2pdf from Ubuntu's software center, and tried the same command line input, this time it created a each.pdf file. But when I open it I only saw a blank page with 'STDIN' on the right upper corner and 'Page 1' on the bottom.

Could someone please tell me how to make it work?

Thank you very much!!

Replies are listed 'Best First'.
Re: pod2pdf print blank page
by aitap (Curate) on Sep 10, 2012 at 16:15 UTC
    This is because text returned by perldoc is no more POD, but is just plain text. For example:
    $ head /usr/share/perl/5.14/pod/perldoc.pod =head1 NAME perldoc - Look up Perl documentation in Pod format. =head1 SYNOPSIS B<perldoc> [B<-h>] [B<-D>] [B<-t>] [B<-u>] [B<-m>] [B<-l>] [B<-F>] [B<-i>] [B<-V>] [B<-T>] [B<-r>] [B<-dI<destination_file>>] $ perldoc perldoc | head PERLDOC(1) User Contributed Perl Documentation PE +RLDOC(1) NAME perldoc - Look up Perl documentation in Pod format. SYNOPSIS perldoc [-h] [-D] [-t] [-u] [-m] [-l] [-F] [-i] [-V] [-T] [-r] [-ddestination_file] [-oformatname] [-MFormatterClassName]
    Try perldoc -u <whatever> | pod2pdf instead (option -u makes perldoc show just raw Pod source).
    Sorry if my advice was wrong.

      I do not have pod2pdf, but I can confirm that the following variant seems to work nicely on my Windoze system:

      perldoc -u -f each | pod2html > junque\each.html
      Thank you very much, aitap! It worked this time =D

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://992789]
Front-paged by Arunbear
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-02-24 13:01 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (310 votes). Check out past polls.