RE: Making PDF file from .ps or .eps generated by Quark
RE: Making PDF file from .ps or .eps generated by Quark
- Subject: RE: Making PDF file from .ps or .eps generated by Quark
- From: "Wadson, David" <email@hidden>
- Date: Tue, 5 Feb 2002 19:12:19 -0500
tell application "QuarkXPress(tm)"
tell front document
set paperWidth to width of bounds of page 1
-- fixes a glitch in PDFs with trapped text in Quark...
try
set automatic trap amount to "0.0"
set indeterminate trap amount to "0.0"
end try
tell print setup
set orientation to portrait
set reduce or enlarge to "100"
set printer type to "Acrobat Distiller"
set paper width to paperWidth
set page gap to "0"
set resolution to "1200"
set data format to binary data
set halftone screen to "85"
set use PDF screen values to false
set text smoothing to false
set graphics smoothing to false
set font substitution to false
set registration marks to off
set separation to false
set tiling to off
set print spreads to false
end tell
end tell
The little snippet in there with paperWidth works for any document size. I'm
not sure about Quark 4, but in Quark 3.32, the height of the PDF defaults to
the height of the Quark document so you don't have to worry about setting
it.
The problem with "Print Colors as Gray" is that color EPS files (at least
vector ones) still come out in colour in the PDF.
I've never had any luck getting Quark 3.32 to print to a Postscript file but
I think that issue was resolved in Quark 4. We manually still have to print
the document but we save a pile of time not having to set all the page setup
options manually...
>
----------
>
From: Jeremy Sellors
>
Sent: Tuesday, February 5, 2002 6:36 PM
>
To: email@hidden
>
Subject: Making PDF file from .ps or .eps generated by Quark
>
>
My problem is getting a PDF with the same custom page size as the original
>
QuarkXpress 4.11 page.
>
If I tell Quark to
>
>
print document 1 PostScript file PSFile OPI include images
>
>
After setting some print setup settings
>
tell print setup
>
--set registration marks to off
>
set printer type to "Acrobat Distiller"
>
set (print colors as grays) to true
>
--set (include blank pages) to false
>
--set orientation to portrait
>
--set page position to left position
>
set paper width to "10\""
>
--set reduce or enlarge to "100%"
>
--set resolution to 1200
>
end tell
>
This works for the width but not the height and I can't find were to set
>
the
>
height. In the Page Setup dialog you can set the height to "Automatic"
>
but I don't see were to do this in the dictionary.
>
>
Another method would be to save the file as an EPSF and Distill that
>
setting
>
the Advance options settings to "Resize Page and Center Artwork for EPS
>
file".
>
How do you save Page 1 as an EPSF or .eps file using AppleScript?
>
I have tried;
>
>
save document MyDocName in file newFilePath as "EPSF" EPS format Mac black
>
and white EPS data binary
>
>
But this results in a file that is not an .eps but appears like regular
>
Quark document
>
The dictionary has;
>
save reference -- the object to save
>
[in alias] -- the file in which to save the object
>
[as type class] -- the file type of the document in which to save
>
the data
>
>
*** What file type class would I use here to make the saved file an eps?
>
>
[template boolean] -- save this document as a template
>
[include preview boolean] -- include a preview picture with this
>
document
>
[EPS format Mac black and white/Mac color/Mac DCS/Mac DCS2/PC
>
black
>
and white/PC color/PC DCS/PC DCS2] -- EPS format for Save Page as EPS
>
[EPS data ASCII EPS/binary EPS/clean EPS] -- data format for Save
>
Page as EPS
>
[OPI omit TIFF/omit TIFF and EPS/include images] -- OPI options
>
for
>
Save Page as EPS
>
[bleed vertical measurement] -- bleed option for Save Page as EPS
>
[scale percent] -- scale option for Save Page as EPS
>
[version vers 33/vers 40/vers current/vers other] -- version to
>
save the document as
>
I am using "Acrobat Distiller 4.0
>
The "set (print colors as grays) to true" in the first method might help
>
when I go to print the re imported PDF an a spot color separated page.
>
>
Thanks Jeremy
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.