Re: PDF to Tif
Re: PDF to Tif
- Subject: Re: PDF to Tif
- From: kai <email@hidden>
- Date: Wed, 14 Dec 2005 15:09:28 +0000
On 14 Dec 2005, at 02:26, some duffer wrote (of Image Events):
Resolution remains the same as the source file.
Brett queried this statement with me and, without qualification, it's
rather misleading - especially in the context of this thread. While
it may be true of a variety of file formats (JPEG, PNG, TIFF, etc.),
it's evidently not so with PDF files. Image Events (actually
Scriptable Image Processing System [SIPS]) saves at the same
resolution at which it opens a file. However, it opens PDF files at a
default resolution of 150dpi, whether the original has a resolution
of 30dpi, 300dpi - or contains only text and vector paths that
require conversion to a raster image. My apologies for any confusion.
---
And on 13 Dec 2005, at 20:41, Wayne Melrose wrote:
set f to POSIX path of (choose file) -- pdf file
do shell script "sips --setProperty format tiff " & f & " --out ~/
Desktop/test.tiff"
That works fine, Wayne - so long as the filename doesn't contain
certain characters (such as spaces, parentheses, "$", "*", etc.) It
might therefore be safer to use the quoted form:
--------------
set f to POSIX path of (choose file)
do shell script "sips -s format tiff " & quoted form of f & " --out ~/
Desktop/test.tif"
--------------
(http://developer.apple.com/technotes/tn2002/tn2065.html#TNTAG3)
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden