[pdftex] pdf encryption produces corrupt pdfs when including certain non-corrupt pdfs

woody at switchonline.com.au woody at switchonline.com.au
Wed May 22 15:47:24 CEST 2002


BTW, a workaround to create an encrypted pdf incuding these forms is to create an unencrypted
pdf (my first example) and then include that into the second example.

cheers,
Woody

On Wed, May 22, 2002 at 01:32:33PM +1000, woody+pdftex at switchonline.com.au wrote:
> Hi,
> 
> I have maybe found a bug in the pdfcrypt or includepdf routines:
> 
> All the pdfs I am trying to include work in acroread and xpdf and ghostview.
> 
> This produces a pdf as you'd expect.
> 
> \documentclass{article}
> \usepackage{pdfpages}
> \begin{document}
> \includepdf[pages={1}]{yp_super_investments.pdf}
> \end{document}
> 
> This produces a pdf which causes several errors in xpdf (below), ghostview (below)  and acroread (linux 4 and 5, and windows 4 and 5)
> 
> \documentclass{article}
> \usepackage{pdfcrypt}
> \usepackage{pdfpages}
> \begin{document}
> \includepdf[pages={1}]{yp_super_investments.pdf}
> \end{document}
> 
> History of the offending file:
> yp_super_investments is yp_super_rollover written over using a perl Text::PDF script yp_rollover_to_investments-percent.pl
> yp_super_rollover is a page from mtrust_6.pdf removed using pdflatex and \includepdf
> 
> Other files modified/created by Text::PDF seem to have the same issues. (e.g. test.pdf)
> 
> I'm happy to be told that the Text::PDF modified/created files are corrupt in some way, provided you tell in
> what way they are corrupt.
> 
> The mentioned pdf files and perl scripts are at: http://www.vergenet.net/~woody/pdftex/
> 
> cheers,
> Woody
> 
> ghostview errors:
> ****************Unknown operator: P
> ****************Unknown operator: <binary stuff>
> 
> xpdf errors:
> Error (583): Illegal character '>'
> Error (583): Unknown operator 'P'
> Error (583): Unknown operator '¤`46c
ÈQ˦rf¾rép"àfŸŒÂ߁ì¸'
> Error (583): Illegal character <ec> in hex string
> Error (583): Illegal character <e9> in hex string
> Error (583): Illegal character <d3> in hex string
> Error (583): Illegal character <fe> in hex string
> Error (583): Illegal character <88> in hex string
> Error (583): Illegal character <fa> in hex string
> Error (583): Illegal character <79> in hex string
> Error (583): Illegal character <a7> in hex string
> Error (583): Illegal character <a6> in hex string
> Error (583): Illegal character <aa> in hex string
> Error (583): Illegal character <2b> in hex string
> Error (583): Illegal character <18> in hex string
> Error (583): Illegal character <b6> in hex string
> Error (583): Illegal character <b1> in hex string
> Error (583): Illegal character <f5> in hex string
> Error (583): Illegal character <c3> in hex string
> Error (583): Illegal character <b6> in hex string
> Error (583): Illegal character <e0> in hex string
> Error (583): Illegal character <94> in hex string
> Error (583): Illegal character <7b> in hex string
> Error (583): Illegal character <ab> in hex string
> Error (583): Illegal character <24> in hex string
> Error (583): Illegal character <59> in hex string
> Error (583): Illegal character <ac> in hex string
> Error (583): Illegal character <93> in hex string
> Error (583): Illegal character <d6> in hex string
> Error (583): Illegal character <5f> in hex string
> Error (583): Illegal character <ea> in hex string
> Error (583): Illegal character <6f> in hex string
> Error (583): Illegal character <d4> in hex string
> Error (583): Illegal character <6c> in hex string
> Error (583): Illegal character <ca> in hex string
> Error (583): Illegal character <e3> in hex string
> Error (583): Illegal character <ea> in hex string
> Error (583): Illegal character <f9> in hex string
> Error: Unterminated hex string
> Error: Unknown operator '+ÓEkÂû˜ý¡MY©ïdèîyž•Í#ÍÒ_·„Þ!m6ùôýSþ•ö
'
> Error: Leftover args in content stream
> 
> 
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex

-- 
Anthony Wood     -     Partner Services     -     awood at switchonline.com.au
     Switch Online Pty Limited        |   Licensed Dealer in Securities
        ABN  43 090 816 354           |     (Licence Number  194 935)
               PHONE: +61 2 9299-1133   FAX: +61 2 9299-1134




More information about the pdftex mailing list