[ Teach ] in KIDS 글 쓴 이(By): jacob (swlee) 날 짜 (Date): 1995년03월07일(화) 09시56분17초 KST 제 목(Title): RE: letter를 A4로 변환하기 다음 글을 읽어 보세요. 도움이 될 겁니다. We distribute our technical notes in electronic "print" or "final" form. This means that you can take our PostScript langauge file and print it on, hopefully, any PostScript printing (or previewing) device. However, since this is a "final" form medium, there are commands in the files to select a page size, i.e. "Letter", because these documents are formatted in the U.S. Sometimes, you may have problems printing these documents in other areas where "Letter" is NOT the standard paper size. ;-) Below are a couple of messages providing more information on this and the solutions that these folks used. *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* Article 1497 of comp.fonts: Path: adobe!decwrl!uunet!mcsun!hp4nl!charon!piring.cwi.nl!jansteen From: jansteen@cwi.nl (Jan van der Steen) Newsgroups: comp.fonts Subject: Re: trouble with AFMformat3.0.ps Message-ID: <jansteen.665263660@piring.cwi.nl> Date: 30 Jan 91 19:27:40 GMT References: <1991Jan30.133821.5116@ioe.lon.ac.uk> Sender: news@cwi.nl Lines: 83 teexdwu@ioe.lon.ac.uk (DOMINIK WUJASTYK) writes: >I have fetched the files AFMformat3.0.ps and AFMformat2.0.ps >from the Adobe file server, but I don't seem to be able to print >them. I have had success with other documents from the fileserver, >so I feel reasonably confident that I'm not doing anything completely >off the wall (as the actress said to the Bishop). >I have tried AFMformat3.0.ps on a QMS Jetscript board, running PS 47.2, >and all the pages came out stretched vertically by a factor of about >eight. I tried the same document on a LJ III with the Adobe PS >cartridge (PS version 52.2) and the printer has been "Processing Data" >for about an hour, with nary a page to show for it. (The same happened >with AFMformat2.0.ps.) >I have written a query to ps-file-person@adobe.com, with no reply >yet. >Has anyone had more success than me with these documents? If so, how? Yes, but it took me some time to figure out what was happening... The AFMformat[23].0.ps documents are made with Frame-2.0. The problem of the used PostScript prologue is that it is trying to be too smart by switching the printer to manualfeed if the requested papersize is not in one of its paper bins. And if the "manualfeed" timeout of your printer is set to infinite (not unlikely) it will wait for you forever... Therefore, at our side I've taken two measurements: First, I've slightly changed the piece of Prologue code which decides the papertype to use by overruling Letter (the requested papersize in almost all Frame-2.0 documents I've seen) with A4: /setpapername { /papersizedict 14 dict def papersizedict begin /papername /unknown def /Letter 8.5 inch 11.0 inch pagedimen /LetterSmall 7.68 inch 10.16 inch pagedimen /Tabloid 11.0 inch 17.0 inch pagedimen /Ledger 17.0 inch 11.0 inch pagedimen /Legal 8.5 inch 14.0 inch pagedimen /Statement 5.5 inch 8.5 inch pagedimen /Executive 7.5 inch 10.0 inch pagedimen /A3 11.69 inch 16.5 inch pagedimen % % Overrule Letter with A4 papertype % /A4 8.5 inch 11.0 inch pagedimen /A4 8.26 inch 11.69 inch pagedimen /A4Small 7.47 inch 10.85 inch pagedimen /B4 10.125 inch 14.33 inch pagedimen /B5 7.16 inch 10.125 inch pagedimen end } def Next, to avoid *imported* Frame-2.0 documents hanging up the printer the manualfeed timeouts of our main printers are set to one minute by sending the following PostScript code: %! % Set the time out for manualfeed to 1 minute. % We assume people using the manualfeed feature are close to the printer. % serverdict begin 0 exitserver statusdict begin defaulttimeouts % leaves job manualfeed wait exch pop 60 exch % set manualfeed to 60 seconds setdefaulttimeouts end I hope this was of some help to you and maybe other users too. Jan van der Steen -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jan van der Steen jansteen@cwi.nl Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* To: ps-file-person@adobe.com Subject: Re: here is "Documents/GenericText.ps.A Documents/GenericText.ps.B ..." In-Reply-To: Your message of "Fri, 15 Nov 91 20:22:06 PST." <9111160422.AA08188@adobe.com> Date: Mon, 18 Nov 91 15:27:35 JST From: Kazuhiro Kazama <kazama@expert-sun.ntt.jp> Hello. I was not able to print out "GenericText.ps" document by QMS PS-2000. This reason was that we don't use letter size. Japanease people usually use a4 papers insted of letter papers. I tried "Print_to_A4.txt", but it didn't work well. So I wrote the small program that redefine the definitions in relation to letter paper.It is copyrighted, but can be distributed freely. If you have some suggestions, please teach me. Kazuhiro Kazama (kazama@expert-sun.ntt.jp) NTT Software Laboratories --- cut here --- cut here --- cut here --- cut here --- cut here --- %! %%Title: letter2a4.ps -- emulate some operators in relation to letter paper. % This file emulate some operators in relation to letter paper -- % "letter", "lettersmall", "lettertray". % usage: % cat letter2a4.ps foo.ps | % sed -e 's/^%%PaperSize: Letter/%%PaperSize: A4/' % -e 's/^%%BeginPaperSize: Letter/%%BeginPaperSize: A4/' % -e 's/^%%DocumentPaperSizes: Letter/%%DocumentPaperSizes: A4/' % -e 's/^%%BeginFeature: *PageSize Letter/%%BeginFeature: *PageSize A4/' % -e 's/^%%BeginFeature: *PageSize LetterSmall/%%BeginFeature: *PageSize A4Small/' % -e 's/^%%BeginFeature: *PaperTray Letter/%%BeginFeature: *PaperTray A4/' % % | lpr % %%BeginProcSet: letter2a4 1 0 % version 1.0 18/11/1991 % Copyrights (C) 1991 % Kazuhiro Kazama (kazama@expert-sun.ntt.jp) % NTT Software Laboratories % All rights reserved. % If "letter" is defined, it is substituted by "a4". /letter where { pop /letter /a4 load def } if % If "lettersmall" is defined, it is substituted by "a4small". /lettersmall where { pop /a4small where { pop /lettersmall /a4small load def }{ /lettersmall /a4 load def } ifelse } if % If "lettertray" is defined, it is substituted by "a4tray". /lettertray where { pop /lettertray /a4tray load def } if % If "lettertray" is defined in the "statusdict", % it is substituted by "a4tray". /statusdict where { pop statusdict /lettertray known { statusdict dup begin dup maxlength dict begin { 1 index /lettertray eq { pop /a4tray load def }{ 1 index /letter eq { pop /a4 load def }{ 1 index /lettersmall eq { pop /a4small where { pop /a4small load def }{ /a4 load def } ifelse }{ def } ifelse } ifelse } ifelse } forall currentdict end end /statusdict exch def } if } if %%EndProcSet --- cut here --- cut here --- cut here --- cut here --- cut here --- *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* ~ |