Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: tjk@ams.org
To: tjk@ams.org
Subject: Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem)
Date: 1999/05/27	[thread overview]
Message-ID: <7ijlgm$nut$1@nnrp1.deja.com> (raw)
In-Reply-To: 7i3h74$leu$1@nnrp1.deja.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3117 bytes --]

Hi,

I see the same problem with Acrobat Reader 3.02 on out
Alphas running DU 4.0B.

It does indeed look like Adobe bungled the port to
the 64 bit architecture of the Alphas.

Well, that might not be the case.  It depends on how the
BBox numbers are stored in the embedded font.  If the font
is embedded as a CFF (/Type1C) font, then numbers between
-32,768 and 32,767 are stored as three bytes (one of which
is an escape byte) in a big endian fashion, and numbers in
the range �(2^31) � +(2^31�1) are stored as five bytes (one
of which is an escape byte) in a big endian fashion.  So it
depends on how the number -2954 is stored.

If it is stored as a 3 byte value (b0 b1 b2), the calculation
to get the desired number is (b1 << 8) | b2.  If this result
(a short int on most UNIX boxen) is stored in an int or a long,
the result is going to be treated as an unsigned short.

If it is stored as a 5 byte value (b0 b1 b2 b3 b4), the calculation
to get the desired number is:

   (b1 << 24) | (b2 << 16) | (b3 << 8) | b4

If this result (an int on most UNIX boxen) is stored in a long
(8 bytes on DU), the result will be treated as an unsigned int.

I am not sure if Adobe cast the bytes to ints, shorts, or longs
before bit shifting (if they used a bit shifting technique).
Perhaps they did, and it is a problem with promotion of types.

As for the font differences, I believe you are getting the
same fonts, they just are written out in a different order
on different platforms.

One can only hope that eventually, AR 4.0 for DU will
be released, and that this release will fix the problems.

Tom

> I sent the following a while back and received no
> replies.  Is anyone using acroread to print PDF
> on the Digital Unix platform?
>
> >
> > We are using "acroread -toPostScript -level2" to
> > generate postscript to print pdf documents.
> >   In some documents which contain renderings of
> > equations we see problems when generationg the
> > postscript on our Digital Unix system.  The same
> > document is fine when we generate the postscript
> > on our Solaris system.
> >
> > Along with some differences in some image data
> > I'm seeing differences such as:
> >
> > < /FontBBox { -20 -2954 1456 766 } readonly def
> > ---
> > > /FontBBox { -20 62582 1456 766 } readonly def
> >
> > which appear to indicate a 32 vs 64 bit issue.
> >
> > There also appear to be some platform related
> > font differences:
> >
> > 11,12d10
> > < %%+ font CCJNAG+AdvPi2
> > < %%+ font CCJNAA+AdvMT_SY
> > 14c12,13
> > < %%+ font CCJMPM+AdvPi1
> > ---
> > > %%+ font CCJJAO+AdvTimes-i
> > > %%+ font CCJNAA+AdvMT_SY
> > 16d14
> > < %%+ font CCJJAM+AdvTimes
> > 18c16,17
> > < %%+ font CCJJBC+AdvPi3
> > ---
> > > %%+ font CCJNAG+AdvPi2
> > > %%+ font CCJJAM+AdvTimes
> > 20d18
> > < %%+ font CCJJAO+AdvTimes-i
> > 21a20,21
> > > %%+ font CCJMPM+AdvPi1
> > > %%+ font CCJJBC+AdvPi3
> >
> > Does this ring any bells?  Is it a known problem?
> > Is there a workaround (no, ditching the alpha is
> > not an option :-)?
> >
>


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---



  reply	other threads:[~1999-05-27  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7hcoa5$o5o$1@nnrp1.deja.com>
1999-05-21  4:00 ` Printing on Digital Unix (was Re: Alpha Unix acroread print problem) n.stopak
1999-05-27  4:00   ` tjk [this message]
1999-05-27  4:00     ` David T. Blake
1999-05-29  4:00       ` tjk
1999-05-30  4:00         ` David T. Blake
1999-05-30  4:00           ` Derek B. Noonburg
1999-05-30  4:00             ` tjk
1999-05-30  4:00           ` tjk
1999-05-28  4:00     ` Louis Vosloo
1999-05-28  4:00   ` Massimo Gais
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox