[pdftex] hypertext and merged pdf

Reinhard Kotucha reinhard.kotucha at web.de
Tue May 16 00:09:05 CEST 2006


>>>>> "Victor" == Victor Ivrii <vivrii at gmail.com> writes:

  > P.S. I discovered that one of my papers
  > http://www.math.toronto.edu/ivrii/Research/preprints/IRO6.pdf

  > is not appreciated by gs (while could be merged using Acrobat
  > 7.07):

It depends on the version of ghostscript.  There is probably a bug in
gs-8.53.

Very old versions (4.03 5.50 6.01 6.21 6.22 6.30 6.31 6.32 6.50) crash
with the error message:

   Error: /undefined in --get--

These versions are very old and I hope that nobody is using them
today.  However, I used them to process pdf files produced by pdfTeX
some years ago when they had been new and I never had big problems.

Had some features been added to pdfTeX which require a recent version?

BTW., 'get' is a PostScript primitive, hence I assume that the message
'/undefined in --get--' means that something nasty happened before
which confused ghostscript completely.

The following versions of ghostscript are able to process your file:

   6.51 6.52 6.53 6.61 7.00 7.03 7.04 7.05 7.06 7.07 7.20 7.22 8.00
   8.01 8.10 8.11 8.12 8.13 8.14 8.15 8.30 8.31 8.32 8.33 8.50 8.51

Version 8.53 aborts with the error message you mentioned in your mail.

It seems that the problem occurs while processing a font.  F1.1 looks
like a PDF font descriptor and the FontInfo dictionary is on the
operand stack.

Error: /invalidaccess in --put--
Operand stack:
   --dict:6/6(L)--   1   2   F1.1   1   --dict:9/14(L)--   --dict:9/14(L)--   --dict:11/14(ro)(L)--   --nostringval--   --dict:9/14(L)--   --dict:11/14(ro)(L)--   --nostringval--   --dict:0/5(L)--   --dict:11/14(ro)(L)--   FontInfo   --dict:0/5(L)--

'pdffonts IRO6.pdf' lists many instances of Helvetica TrueType fonts.

NBMHDV+Helvetica                     TrueType     yes yes yes    333  0
XWZFIN+Helvetica                     TrueType     yes yes yes    334  0
HKHBNG+Helvetica                     TrueType     yes yes yes    357  0
HOPEPJ+Helvetica                     TrueType     yes yes yes    358  0
HYYZMG+Helvetica                     TrueType     yes yes yes    381  0
FHTPKR+Helvetica                     TrueType     yes yes yes    382  0
TEBQID+Helvetica                     TrueType     yes yes yes    476  0

I converted the PDF file to PostScript using pdftops (part of xpdf).
The TrueType fonts are then converted to Type42.

Here is an extract from such a font:

/Encoding 256 array
dup 0 /c00 put
dup 1 /c01 put
dup 2 /c02 put
[...stuff omitted...]
dup 253 /cfd put
dup 254 /cfe put
dup 255 /cff put
readonly def
^^^^^^^^

Making an encoding array readonly is pure nonsense, of course.  If you
try to re-encode the font, which is unavoidable, you'll get the error
message '/invalidaccess in --put--'.

I don't know why gs-8.53 doesn't ignore the 'readonly' keyword.  If gs
supports hinting, it has even to ignore 'noaccess'.  And obviously all
the other programs ignore 'readonly' as well.

Maybe it's best if you file a bug report.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------




More information about the pdftex mailing list