[OS X TeX] Acrobat Distiller
Timothy Van Zandt
tvz1 at zandtwerk.org
Mon Feb 1 18:58:20 EST 2010
Hello,
This is coming a bit late, and I'm not sure whether to reply to this thread
or the subsequent "TeXShop Engine" thread. But anyway, here is what I have
been doing for a while.
As noted by others, Distiller doesn't work directly from the command line.
But it can be invoked by an applescript, and then you can run the
applescript from the command line.
What I am going to describe is for Acrobat 8; I don't have Acrobat 9 so I
can't say if it still works the same way.
I have an applescript called "acrodist.scpt" as follows:
------------------------------------------
on run argv
with timeout of (8 * 60) seconds
tell application "Acrobat Distiller"
Distill sourcePath item 1 of argv
end tell
end timeout
end run
-------------------------------------------
Then I have an executable shell script called "acrodist"
-------------------------------------------
#! /bin/sh
osascript ~/bin/acrodist.scpt $1
-------------------------------------------
Then, in the TeXShop preferences, under "Misc", I define the following
personal script (all on one line, under "Latex Program"):
---------------------------------------------------------------
simpdftex latex --maxpfb --extradvipsopts "-j0" --distiller
(/tvz/bin/acrodist
--------------------------------------------------------------
(To be honest, I don't remember why I included the "-j0" option.)
And under the Typesetting tab, I set the Default Script to "Personal
Script".
Regards,
tim
On 20/01/2010 01:18, "David Arnold" <dwarnold45 at suddenlink.net> wrote:
> All,
>
> Does anyone know how to call Acrobat Distiller from a terminal window (i.e.
> from the command line or a script) on the Mac?
>
> And if so, has anyone set up an engine with Texshop to call acrobat distiller?
>
> David.
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
More information about the MacOSX-TeX
mailing list