Schrift
[thread]5451[/thread]

Pod => Pdf, z.B. pod2hpp: hat jemand damit schon Erfahrungen?



<< >> 4 Einträge, 1 Seite
steffenw
 2005-01-31 15:33
#49159 #49159
User since
2003-08-15
692 Artikel
BenutzerIn
[Homepage] [default_avatar]
Ich habe das Modul Pod::HtmlPsPdf gerade installiert, weil ich "pod" als "pdf" ausgeben will.

Wenn ich es dann aufrufe, komme ich mit der Fehlermeldung nicht zurecht, wo ist das Problem?
Code: (dl )
1
2
3
4
5
6
7
8
9
C:\>pod2hpp.bat -d xxx.pm
$c{dir}{src} from package Pod::HtmlPsPdf::Config::Local is not
   defined
at P:/Perl/site/lib/Pod/HtmlPsPdf/Common.pm line 9
Compilation failed in require at P:/Perl/site/lib/Pod/HtmlPsPdf/Book.pm line 8.
BEGIN failed--compilation aborted at P:/Perl/site/lib/Pod/HtmlPsPdf/Book.pm line
8.
Compilation failed in require at P:\perl\bin\pod2hpp.bat line 55.
BEGIN failed--compilation aborted at P:\perl\bin\pod2hpp.bat line 55.

Vorher habe ich es mit Pod::Pdf probiert, das funktioniert, nur geht da einiges nicht korrekt: head3, usw.\n\n

<!--EDIT|steffenw|1107178535-->
$SIG{USER} = sub {love 'Perl' or die};
Crian
 2005-01-31 16:53
#49160 #49160
User since
2003-08-04
5866 Artikel
ModeratorIn
[Homepage]
user image
Anscheinend fehlt etwas, was in Pod::HtmlPsPdf::Book Zeile 8 required wird !?

Aber ich kenn mich mit dem Modul nicht aus.\n\n

<!--EDIT|Crian|1107183321-->
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
GwenDragon
 2005-01-31 17:04
#49161 #49161
User since
2005-01-17
14538 Artikel
Admin1
[Homepage]
user image
Schau mal bitte genau unter http://search.cpan.org/~stas/Pod-HtmlPsPdf-0.04/ nach.

* Es ist ein Postscript-Interpreter wie GhostScript o. ä. notwendig. Perl kann kein Postscript!

* Es sind Module bzw. Programme notwendig wie:
ps2pdf
Storable

* Konfigurationsdatei
Quote
All you have to prepare is a single config file that you then pass as an argument to pod2hpp:
Hast du auch ein config file?
Beispiel:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package Pod::HtmlPsPdf::Config::Local;

# Note that the doc builder chdir's to directory of this file, so all
# the directories can be specified relative to this directory. Of
# course you can specify the full path, but then if you moves the
# whole thing into a different location, you will have to update the
# hardcoded paths as well.

use vars qw(%c);

   # pod files in the order you want to see them in the linked html
   # (and the book)

%c =
   (

    dir => {
        
         # the source files directory
         src        => "./src",
        
         # the resulting html files directory
         rel_html   => "./rel_html",
        
         # the resulting ps and pdf files directory (and special
         # set of html files used for creating the ps and pdf
         # versions.)
         rel_ps     => "./rel_ps",
        
         # the resulting split version html files directory
         split_html => "./split_html",
        
         # the name of the directory the resulting files should be
         # packaged under
         out        => "./foo_bar",
        
        },    

    file => {
          # the source modification control    file
          last_modified => "./src/.last_modified",
          
          # the location of the toc_file
          toc_file      => "./bin/toc_file",
          
          # the file with version number e.g:
          #
          # package Foo::Bar;
          # $VERSION = '1.26';
          # 1;
          version_file  => "./src/Version.pm",
          
          # the html2ps configuration file
          html2ps_conf  => "./conf/html2ps.conf",
          
         },
   
    # the package name as declared in $c{file}{version_file}
    package_name => 'Foo::Bar',

    # an ordered list pod files relative to $c{src}
    # the order is important for a correct placing of the chapters
    ordered_pod_files => [
               qw(
                  foo.pod
                  bar.pod
                 )
              ],
    # non-pod/html files or dirs to be copied unmodified
    non_pod_files => [
               qw(
              ./style.css
            )
              ],
   
    # template files
    tmpl => {
          index_html => "./tmpl/index.tmpl",  
          index_ps   => "./tmpl/indexps.tmpl",
          page_html  => "./tmpl/page.tmpl",
          page_ps    => "./tmpl/pageps.tmpl",
          page_split_html  => "./tmpl/splitpage.tmpl",
         },
   
    # the base name of the created tar.gz file
    out_name      => "foo_bar_release",

    mode => {
          # you can override the directories creation mode
          dir      => 0755,
         },

   );


# don't forget!!!
1;


So einfach wie du es wohl gedacht hast, ist das Konvertieren in PDF nicht.\n\n

<!--EDIT|GwenDragon|1107187041-->
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

steffenw
 2005-01-31 19:48
#49162 #49162
User since
2003-08-15
692 Artikel
BenutzerIn
[Homepage] [default_avatar]
[quote=GwenDragon,31.01.2005, 16:04]So einfach wie du es wohl gedacht hast, ist das Konvertieren in PDF nicht.[/quote]
Das ist wohl wahr. Pod::Pdf hat mich da etwas leichtfüßig werden lassen. Denn das ist ja noch simpler als pod2html.
$SIG{USER} = sub {love 'Perl' or die};
<< >> 4 Einträge, 1 Seite



View all threads created 2005-01-31 15:33.