http://www.perlmonks.org?node_id=796410


in reply to Re^2: read text file and create pdf and add image to each pdf page
in thread read text file and create pdf and add image to each pdf page

Perhaps you should read some of the Tutorials (for example File Input and Output and perhaps Installing Modules) from this site, http://learn.perl.org along with http://perldoc.perl.org are also great resources for learning perl. PDF::Create comes with sample code and documentation showing you how use the module.

hope this helps

Martin

  • Comment on Re^3: read text file and create pdf and add image to each pdf page

Replies are listed 'Best First'.
Re^4: read text file and create pdf and add image to each pdf page
by lorenzob (Acolyte) on Sep 20, 2009 at 19:41 UTC
    hi, again.. here is my little script.. every time i tried to run it, seems that is not able to read input file. Is there something that i missed in my script below ? thanks lorenzo alcatel@alexiim-as1:~> ./lorenzo.pl /home/alcatel/.scripts/table.dbdm1 Could not open : No such file or directory alcatel@alexiim-as1:~> #!/usr/bin/perl use PDF::Create; open(F, "<$input") or die "Could not open $input: $!\n"; while (<F>) { chomp; print "$_ \n"; #shows you what we have read } close F;
      You never define $input
        Right, thanks i was missing ARGV...