• 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: Globally change URL path in PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Globally change URL path in PDF


  • Subject: Re: Globally change URL path in PDF
  • From: David Crowe <email@hidden>
  • Date: Tue, 22 Sep 2009 10:32:25 -0700

John;

I once wrote a script that went through a multi-hundred page PDF file, parsed every line, determined if it was a zip-code description or not, and if there was, decoded the ZIP code and the other information to create a tab-delimited file for import into a database. That was all done with Adobe's javascript to collect the data and AppleScript to do the thinking.

I agree that it's not easy, but a lot is possible if you're persistent.

- David Crowe




At 11:31 AM -0400 9/22/09, John Hawkinson wrote:
David Crowe <email@hidden> wrote on Tue, 22 Sep 2009
at 06:36:12 -0700 in <p06240832c6de822e3a5b@[192.168.1.106]>:

  Adobe Acrobat is scriptable with their version of Javascript, which can be
  initiated from AppleScript.

Unfortunately, its bindings are very limited, and it essentially cannot do anything at finer granularity than the page level. I don't think you'll be able to accomplish this sort of thing in anything with Applescript bindings.

email@hidden
  John Hawkinson

  You can access the "Doc" property "baseURL" for example. If you're
  lucky all the URLs were set up with this. If you get the
  "JavaScript for Acrobat API Reference" document from the Adobe
  website you can probably figure out how to modify individual links
  within a document and then send Acrobat on a search-and-modify
  mission.
 >

_______________________________________________ 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
References: 
 >re: Globally change URL path in PDF (From: David Crowe <email@hidden>)
 >Re: Globally change URL path in PDF (From: John Hawkinson <email@hidden>)

  • Prev by Date: Re: Obtaining real (RAW) filename in iPhoto
  • Next by Date: Re: cron/Launchd Editor
  • Previous by thread: Re: Globally change URL path in PDF
  • Next by thread: apple script and Final Cut Pro
  • Index(es):
    • Date
    • Thread