* Printing on Digital Unix (was Re: Alpha Unix acroread print problem) [not found] <7hcoa5$o5o$1@nnrp1.deja.com> @ 1999-05-21 4:00 ` n.stopak 1999-05-27 4:00 ` tjk 1999-05-28 4:00 ` Massimo Gais 0 siblings, 2 replies; 10+ messages in thread From: n.stopak @ 1999-05-21 4:00 UTC (permalink / raw) I sent the following a while back and received no replies. Is anyone using acroread to print PDF on the Digital Unix platform? In article <7hcoa5$o5o$1@nnrp1.deja.com>, stopak@orionsci.com wrote: > Hi, > > 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 :-)? > > Thanks, > > Noam Stopak > n.stopak@scienceserver.com > > --== Sent via Deja.com http://www.deja.com/ ==-- > ---Share what you know. Learn what you don't.--- > --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.--- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-21 4:00 ` Printing on Digital Unix (was Re: Alpha Unix acroread print problem) n.stopak @ 1999-05-27 4:00 ` tjk 1999-05-27 4:00 ` David T. Blake 1999-05-28 4:00 ` Louis Vosloo 1999-05-28 4:00 ` Massimo Gais 1 sibling, 2 replies; 10+ messages in thread From: tjk @ 1999-05-27 4:00 UTC (permalink / raw) To: tjk [-- 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.--- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-27 4:00 ` tjk @ 1999-05-27 4:00 ` David T. Blake 1999-05-29 4:00 ` tjk 1999-05-28 4:00 ` Louis Vosloo 1 sibling, 1 reply; 10+ messages in thread From: David T. Blake @ 1999-05-27 4:00 UTC (permalink / raw) tjk@ams.org writes: >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. I hope people are aware of xpdf, which has a pretty decent pdftops binary as part of its package. It, like all pdf software, needs to be kept up to date. I have had no problems using it to print arbitrary pdf files under True64Unix. -- Dave Blake dblake@phy.ucsf.edu ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-27 4:00 ` David T. Blake @ 1999-05-29 4:00 ` tjk 1999-05-30 4:00 ` David T. Blake 0 siblings, 1 reply; 10+ messages in thread From: tjk @ 1999-05-29 4:00 UTC (permalink / raw) Hi, > > I hope people are aware of xpdf, which has a pretty > decent pdftops binary as part of its package. It, like > all pdf software, needs to be kept up to date. > Yep, I am aware of xpdf (because pdftex uses it). It is a nice package for getting a quick preview of what is supposed to be in the PDF file. I haven't tried the pdftops part of it yet. But the problem that causes numbers to be off in AR generated PS also causes problems with viewing the file in AR. And in this case, xpdf doesn't quite cut it as a solution to the AR previewer problem because it only uses the standard 13 fonts for display (and mathematical papers use lots of other fonts than the standard thirteen). Regards, Tom > > I have had no problems using it to print arbitrary > pdf files under True64Unix. > Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-29 4:00 ` tjk @ 1999-05-30 4:00 ` David T. Blake 1999-05-30 4:00 ` tjk 1999-05-30 4:00 ` Derek B. Noonburg 0 siblings, 2 replies; 10+ messages in thread From: David T. Blake @ 1999-05-30 4:00 UTC (permalink / raw) tjk@ams.org writes: >Hi, > >> >> I hope people are aware of xpdf, which has a pretty >> decent pdftops binary as part of its package. It, like >> all pdf software, needs to be kept up to date. >> > >Yep, I am aware of xpdf (because pdftex uses it). It is >a nice package for getting a quick preview of what is supposed >to be in the PDF file. I haven't tried the pdftops part of >it yet. > >But the problem that causes numbers to be off in AR generated >PS also causes problems with viewing the file in AR. > >And in this case, xpdf doesn't quite cut it as a solution to >the AR previewer problem because it only uses the standard 13 >fonts for display (and mathematical papers use lots of other >fonts than the standard thirteen). Then, try pdftops to get the file into a ps format, and then read it with some version of ghostscript/ghostview/gv/ggv. Ghostscript does font-lookups for all fonts available on the machine (that are in the ghostscript directories). Adobe does it a little better in that it will perform somewhat intelligent substitutions for fonts that are not found. If you do lots of pdf/ps work, you are really limiting yourself if you maintain that you can only read files with Adobe software (especially since their software is not up to snuff). -- Dave Blake dblake@phy.ucsf.edu ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-30 4:00 ` David T. Blake @ 1999-05-30 4:00 ` tjk 1999-05-30 4:00 ` Derek B. Noonburg 1 sibling, 0 replies; 10+ messages in thread From: tjk @ 1999-05-30 4:00 UTC (permalink / raw) Hi, > > Then, try pdftops to get the file into a ps format, and > then read it with some version of ghostscript/ghostview/gv/ggv. > I tried that -- I had the same problem with math fonts being converted to one of the standard thirteen fonts. So, for instance, Times-Italic was being substituted for CMMI10. There were worse substitutions. I did read the man page for pdftops, and nowhere did it say how to set things up so the fonts embedded in the PDF file make it into the PS file. Perhaps I missed something during configuration and compilation, or during the install. > > Ghostscript does font-lookups for all fonts available on the > machine (that are in the ghostscript directories). Adobe does > it a little better in that it will perform somewhat intelligent > substitutions for fonts that are not found. > We have GS configured for finding fonts that aren't embedded in the PD file. AR does not substitute for the math fonts we use. I don't know how one goes about getting Adobe to add the CM fonts to their font substitution database. Probably couldn't anyway, because the default substitution fonts don't have neat the glyph complement needed to adequately substitute a math font. > > If you do lots of pdf/ps work, you are really limiting > yourself if you maintain that you can only read files with > Adobe software (especially since their software is not up to > snuff). > I wasn't trying to imply that Adobe products kick butt and make a complete toolbox for working with PDF/PS (I know better than that). I was trying to imply that in the Digital UNIX case, AR doesn't work, and xpdf is not a viable solution in this case. Tom Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-30 4:00 ` David T. Blake 1999-05-30 4:00 ` tjk @ 1999-05-30 4:00 ` Derek B. Noonburg 1999-05-30 4:00 ` tjk 1 sibling, 1 reply; 10+ messages in thread From: Derek B. Noonburg @ 1999-05-30 4:00 UTC (permalink / raw) dblake@phy.ucsf.edu (David T. Blake) writes: > tjk@ams.org writes: > > >And in this case, xpdf doesn't quite cut it as a solution to > >the AR previewer problem because it only uses the standard 13 > >fonts for display (and mathematical papers use lots of other > >fonts than the standard thirteen). The current release of xpdf (version 0.80) can't display embedded fonts, as you say. The next release will use t1lib (a free Type 1 rasterizer) to display Type 1 and Type 1C (or Type 2) fonts. The current pdftops will embed Type 1 fonts in the PostScript file (i.e., it will copy the embedded fonts from the PDF file into the PS file). The next release will convert Type 1C to Type 1 and embed those, also. Xpdf is, as far as I know, 64-bit clean. I do a little bit of testing on an Alpha system, and I know there are people using it on Alphas (both DU and OpenVMS). > Ghostscript does font-lookups for all fonts available on the > machine (that are in the ghostscript directories). Adobe does > it a little better in that it will perform somewhat intelligent > substitutions for fonts that are not found. Ghostscript will render embedded fonts. I don't know exactly how it substitutes for unavailable fonts. Acroread uses multimaster fonts; I don't think gs does. - Derek ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-30 4:00 ` Derek B. Noonburg @ 1999-05-30 4:00 ` tjk 0 siblings, 0 replies; 10+ messages in thread From: tjk @ 1999-05-30 4:00 UTC (permalink / raw) Hi, > > The current pdftops will embed Type 1 fonts in the PostScript file > (i.e., it will copy the embedded fonts from the PDF file into the PS > file). The next release will convert Type 1C to Type 1 and embed > those, also. Ahhhh! That is my problem -- the test PDF file I am using has CFF (Type 1C) fonts in it. I can't wait for the next release! Thanks for the explanation, Derek. Tom Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-27 4:00 ` tjk 1999-05-27 4:00 ` David T. Blake @ 1999-05-28 4:00 ` Louis Vosloo 1 sibling, 0 replies; 10+ messages in thread From: Louis Vosloo @ 1999-05-28 4:00 UTC (permalink / raw) tjk@ams.org wrote: > 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 Just a note: The BBox is just the tip of the iceberg, numbers in the encrypted section are wrong also. Seems to affect the arguments in "hsbw" most often... -- Y&Y, Inc. mailto:support@YandY.com http://www.YandY.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Printing on Digital Unix (was Re: Alpha Unix acroread print problem) 1999-05-21 4:00 ` Printing on Digital Unix (was Re: Alpha Unix acroread print problem) n.stopak 1999-05-27 4:00 ` tjk @ 1999-05-28 4:00 ` Massimo Gais 1 sibling, 0 replies; 10+ messages in thread From: Massimo Gais @ 1999-05-28 4:00 UTC (permalink / raw) n.stopak@scienceserver.com wrote: > > I sent the following a while back and received no > replies. Is anyone using acroread to print PDF > on the Digital Unix platform? > I'm sorry, but I never had a problem while printing from a PDF to a PS printer. I have a DU 4.0d system, and typically I print on a HP LaserJet 4M. I use both the "lpr" command and "mpage" if I want multiple pages on one sheet. Maybe could be an idiosyncrasy of your printer... :-? -- Massimo Gais <mgais@na.astro.it> ---- "True programmers never die, they just branch to an odd address..." ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1999-05-30 4:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
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 ` tjk
1999-05-30 4:00 ` Derek B. Noonburg
1999-05-30 4:00 ` tjk
1999-05-28 4:00 ` Louis Vosloo
1999-05-28 4:00 ` Massimo Gais
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox