home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 September
/
PCWK996.iso
/
sharewar
/
95
/
narzedzi
/
ambra
/
ambr32a1.exe
/
FILE
/
ARCHIVE.Z
/
ACROBAT
/
VIEWER32.EXE
/
PSPROCSET
/
12
< prev
next >
Wrap
Text File
|
1996-02-22
|
1KB
|
39 lines
%%BeginFile: pdfasc.prc
%%Copyright: Copyright 1992-1993 Adobe Systems Incorporated. All Rights Reserved.
% Autoscale operator
% llx lly urx ury shrink? AS -
% llx lly urx ury is the bounding box for the page
% shrink? if true indicates that pages larger than the imageable area
% can be scaled down.
% always center the contents on the page if bigger than the img. area
/AS {
/shrink? xdd
/Pury xdd
/Purx xdd
/Plly xdd
/Pllx xdd
% Get BBox of device.
gsave newpath clippath pathbbox newpath grestore
/Dury xdd
/Durx xdd
/Dlly xdd
/Dllx xdd
% Calculate the scaling factors
Durx Dllx sub Dury Dlly sub
Pury Plly sub div exch Purx Pllx sub div
2 copy gt { exch } if pop dup
% Does it fit?
1.0 le {
% Offset to the center of the imageable area
Durx Dllx add 2 div Dury Dlly add 2 div translate
% Scale appropriately if necessary
shrink? { dup scale } { pop } ifelse
% Offset to center of picture.
Purx Pllx add -2 div Pury Plly add -2 div translate
} { pop } ifelse
} bd
%%EndFile