Thoughtful, detailed coverage of the Mac, iPhone, and iPad, plus the best-selling Take Control ebooks.

 

 

Pick an apple! 
 
Find Text Leading from Acrobat PDF

Ever have to recreate a document from an Acrobat PDF? You can find out most everything about the text by using the Object Inspector, except the leading. Well, here's a cheesy way to figure it out. Open the PDF in Illustrator (you just need one page). Release any and all clipping masks. Draw a guide at the baseline of the first line of text, and one on the line below. Now, Option-drag the first line to make a copy, and position it exactly next to the original first line at baseline. Then put a return anywhere in the copied line. Now adjust leading of the copied lines, so that the second line of copy rests on the baseline of the second line of the original. Now you know your leading.

Or you could buy expensive software to find the leading. Your choice.

Visit Mac Production Artist Tips and Scripts

Submitted by
Greg Ledger

 

 

Related Articles

 

 

AppleScript Gets a Truly Definitive Guide

Send Article to a Friend

AppleScript is Apple's system-level programming language for driving and automating applications. It was first made available as an option for the ill-fated System 7 Pro in late 1993; shortly thereafter Apple came to its senses and AppleScript has been present in every new system and on every new Mac since then. Meanwhile, the lack of proper documentation for AppleScript has been astounding. Danny Goodman made an early attempt, but it wasn't up to the standard of his brilliant HyperCard book, and Apple's own manual is often surprisingly vague, allusive, and incomplete.

<http://db.tidbits.com/article/02388>
<http://www.dannyg.com/pubs/>
<http://developer.apple.com/documentation/ AppleScript/Conceptual/ AppleScriptLangGuide/>

Which brings us to my latest book, AppleScript: The Definitive Guide, published by O'Reilly & Associates. AppleScript is a fairly small language, but I was amazed by how difficult it was to write this book! It took more than twice as long as I'd expected. My approach, as readers of my Frontier and REALbasic books know, is not to rely on documentation, but to bang away at the language itself, testing and experimenting, trying to deduce the underlying rules. Well, the underlying rules of AppleScript turn out to be really strange. As a result, my book contains a great deal of material I never knew before and have never seen documented elsewhere. And, needless to say, I present it all in my usual ruthlessly Euclidean manner - with the usual measure of hidden humor, of course.

<http://www.oreilly.com/catalog/applescpttdg/>

This book teaches AppleScript to beginners and explains it to experts; it's an assessment, a guide, and a reference. If you've been curious all these years, or want to get into AppleScript for whatever reason (perhaps to take advantage of AppleScript Studio to write your own apps), or if you're an AppleScript user but would like to put your understanding on firmer ground, I hope you'll consider asking Santa for AppleScript: The Definitive Guide. It lists for $40, but you can get it for $28 at Amazon and support TidBITS with the affiliate percentage at the same time.

<http://www.amazon.com/exec/obidos/ASIN/ 0596005571/tidbitselectro00/ref%3Dnosim/>

 

Make friends and influence people by sponsoring TidBITS!
Put your company and products in front of tens of thousands of
savvy, committed Apple users who actually buy stuff.
More information: <http://tidbits.com/advertising.html>