Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

/System/Library/Printers/Libraries/./quartzfilter: Command not found

Following various tips, I have found that I can reduce the size of a pdf file from the command line via the command:

/System/Library/Printers/Libraries/./quartzfilter infile filterfile outfile

I have tested this on my 10.4 system, and it works like a charm. I have folded it into a perl script which I use to batch-reduce press-quality pdfs for viewing on the web.

But in 10.6 the command seems to have disappeared? I found a thread from Dec 09

http://discussions.apple.com/thread.jspa?messageID=10712296&#10712296

wondering if it was gone, and if no, what the heck happened to it, and if yes, is there any way to get it back? The poster then didn't get any answer -- is there anyone who can give any more information about it? I know that you can still reduce files in the 10.6 version of quartz using various interactive gui-controlled tools (although the pdf reduction is unreliable, I'm tinkering with it to see if I can get it to be acceptable), but I can't seem to figure out a command-line version which I would need for the script that runs at 2am.

macbook pro, Mac OS X (10.6.5)

Posted on Mar 21, 2011 11:20 AM

Reply
7 replies

Mar 21, 2011 4:08 PM in response to cathy fasano

The direct answer to your question is that there's good news and bad news. First, the bad news: quartzfilter is indeed gone, and it's not coming back. Now the good news: you can create an Automator workflow as described above, and then run it from the shell using the automator(1) command:
NAME
automator -- Runs Automator workflow.
SYNOPSIS
automator [-v] [-i input] [-D name=value ...] workflow
DESCRIPTION
automator runs the specified workflow. To create or edit a workflow, use
the Automator application.
The following options are available:
-D name=value
Set variable name to value for this run of workflow.
-i input
Set input as the input to workflow If input is - then the con-
tents of standard input is used. The newline character ( ) is
the delimiter for multiple strings.
-v Run in verbose mode.
I didn't know about this command until today.

Mar 22, 2011 7:33 AM in response to Linc Davis

The reason I need the command-line service is that I've got about 30 lines of perl which figure out what the reduced file should be named given the name of the press-quality file. This replaced 400 lines of almost-incomprehensible applescript that does the reduce-and-rename, that takes about 45 minutes to run versus 4 minutes for the perl script. From a programmer point of view, it's mighty convenient to just create and execute the reduce command at the end of the loop in the perl script.

I guess I'll just have to keep a 10.4 machine around. Also, the reduction algorithm in 10.4 has proven itself rock-solid reliable over years of doing this, whereas the 10.6 pdf reduce file size fails spectacularly (as in the "reduced" file is 10-20 times the size of the original) about 5-10% of the time. I'll wait until all my PPC machines are on their last legs and then figure out what to do from there.

/System/Library/Printers/Libraries/./quartzfilter: Command not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.