• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compress PDF file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compress PDF file


  • Subject: Re: Compress PDF file
  • From: Philip Aker <email@hidden>
  • Date: Wed, 17 Oct 2007 06:01:46 -0700

On 2007-17-10, at 01:18, Wayne Melrose wrote:

I have a need to compress High Resolution PDF files down to smaller, web ready pdf files.

I have found that in '/Library/PDF Services/' folder there is a 'Compress PDF.workflow' package that is used by Automator to Compress pdfs..

Is there a way to access these package via Applescript/Command line, so that you can feed in a file and have it compress the file?

This is what is exposed in the binary:

.objc_class_name_AMBundleAction
.objc_class_name_CompressPDF
.objc_class_name_HasQualityTransformer
.objc_class_name_NSAppleEventDescriptor
.objc_class_name_NSArray
.objc_class_name_NSDictionary
.objc_class_name_NSNumber
.objc_class_name_NSSavePanel
.objc_class_name_NSString
.objc_class_name_NSURL
.objc_class_name_NSValueTransformer
_CFURLCreateFromFSRef
_CGContextBeginPage
_CGContextDrawPDFDocument
_CGContextEndPage
_CGContextRelease
_CGPDFContextCreateWithURL
_CGPDFDocumentCreateWithURL
_CGPDFDocumentGetMediaBox
_CGPDFDocumentGetNumberOfPages
_CGPDFDocumentRelease
_DisposeHandle
_FSNewAlias
_FSPathMakeRef
_FSResolveAlias
_GetHandleSize
_NSLog
___CFConstantStringClassReference
___error
_close
_kCFAllocatorDefault
_mkstemps
_objc_msgSend
_objc_msgSendSuper
_strerror


So it looks like a fairly straight-forward use of CoreGraphics APIs. You might be able to find a sample to work from on Apple's developer site.


Philip Aker email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Compress PDF file
      • From: Wayne Melrose <email@hidden>
References: 
 >Compress PDF file (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: iPhoto album scripting
  • Next by Date: Re: Compress PDF file
  • Previous by thread: Compress PDF file
  • Next by thread: Re: Compress PDF file
  • Index(es):
    • Date
    • Thread