atend has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
It seems .pdf-files produced with pdflatex (TeX Live 2012) cannot be used directly by PDF::Reuse (v. 0.35) (at least not by me).
#!/usr/bin/env perl use strict; use warnings; use PDF::Reuse; open my $fh, '>', 'file.tex' or die $!; print $fh ' \documentclass{article} \begin{document} Nothing to see here. \end{document} ', "\n"; system "pdflatex file.tex"; prFile( 'result.pdf' ); prDoc( 'file.pdf' ); prEnd();
This gives:
An error occurred at ./pdfperl.pl line 18 Didn't find pages More information might be found in error.log at ./pdfperl.pl line 18
error.log contains:
Didn't find pages The error occurred when executing: at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/anal +ysera.al) line 5929 PDF::Reuse::analysera('file.pdf', 1, '') called at blib/lib/PDF/Re +use.pm (autosplit into blib/lib/auto/PDF/Reuse/prDoc.al) line 3562 PDF::Reuse::prDoc('file.pdf') called at ./pdfperl.pl line 18 Situation when the error occurred Bytes written to the current pdf-file, pos = 15 Object processed, not necessarily written objNr = 3 Current pdf-file, utfil = result.pdf File logging the run, runfil = undef Local time = Wed Jan 23 14:38 +:59 2013
Anyone have any advice, or a possible fix for this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDF::Reuse and pdflatex
by marto (Cardinal) on Jan 23, 2013 at 14:29 UTC | |
by atend (Acolyte) on Jan 23, 2013 at 14:55 UTC | |
|
Re: PDF::Reuse and pdflatex
by atend (Acolyte) on Jan 23, 2013 at 15:31 UTC | |
by Anonymous Monk on Jul 16, 2013 at 19:37 UTC | |
|
Re: PDF::Reuse and pdflatex
by pvaldes (Chaplain) on Jan 23, 2013 at 14:33 UTC | |
by atend (Acolyte) on Jan 23, 2013 at 14:57 UTC |