Re: QXP print to file (to create a PDF)
Re: QXP print to file (to create a PDF)
- Subject: Re: QXP print to file (to create a PDF)
- From: Shane Stanley <email@hidden>
- Date: Wed, 15 Nov 2000 08:17:04 +1100
On 15/11/00 2:46 AM +1000, Leonard Rosenthol, email@hidden, wrote:
>
> Is there a way to get a PS file out of QXP cropped to the dimensions of the
>
> document? Or am I supposed to trim the excess off in Acrobat everytime the
>
> size is different from the standard paper sizes?
>
>
>
You need to use EPS, and NOT PS.
That 's not a good idea if you ever use TrueType fonts. The solution is to
make a modified Distiller PPD that gets around the Quark bug that otherwise
stops you from setting the page width.
As Sxren Dettmer pasted it to the list recently:
>
open the ppd using a text editor e.g. BBEdit.
>
save it under a different name
>
look for the *ModelName: Keyword
>
modify the paramter e.g. Print XYZ to Printer XYZ-Mod
>
kill every line between
>
>
*OpenUI *PageSize: PickOne
>
*CloseUI: *PageSize
>
>
and
>
>
*OpenUI *PageRegion: PickOne
>
*CloseUI: *PageRegion
Assuming you use a ModelName of "Acrobat Distiller Q", you then use
something like:
tell application "QuarkXPress 4.11"
tell document 1
set y to file path
set x to page width
set properties of print setup to {paper width:x, printer type:"Acrobat
Distiller Q", ... }
print PostScript file ((y as text) & "*.ps")
end tell
end tell
--
Shane Stanley, email@hidden