Skip to main content

Page-addressable PDF

Awesome tip.. thanks to Jon for the info! I'm putting this here so I don't lose it.





In yesterday's item I complained about the opaqueness of PDF files. As Mark Kunzmann pointed out (in email), the situation is less dire than I suggested. He illustrated by pointing me to page 100 of the government's energy report here. I can point you to the page describing necessary URL syntax here. This scheme is workable, for large documents like the 170-page energy report, thanks to the same HTTP 1.1 byte-range technology that I've been using for random access to MP3 audio.



Thanks for the reminder, Mark. This falls into the category of things I used to know, but forgot. Now arguably, there's a reason I forgot about it. You rarely (if ever) see PDF URLs ending with #page=6 in the wild. My feeling is that's because a PDF page is an arbitrary unit of content, and it usually won't precisely address the element you'd like to refer to.



Note that there's also the #nameddest option, which works like an HTML fragment identifier and takes you to a specific location within a page. However this seems to be used even more rarely. I suspect that's because of the manual nature of the procedure required to prepare the destinations. Courtesy of Planet PDF, here is that procedure:

First up, you'll need to create the destination. To do this from within Acrobat:

  1. Manually navigate through the PDF for the desired location, and magnification
  2. Go to View > Navigation Tabs > Destinations
  3. Under Options, choose Scan Document
  4. Once this is completed, select New Destination from the Options menu and enter an appropriate name

Now that you have created your destination, you can link to it using
a similar syntax to that used for page linking. After the name of the
PDF, append "#nameddest=" and the name of your chosen destination. So,
if your PDF has a named destination, "TOC", that points to a table of
contents, then your link code will look like this:

<a href="http://www.mydomain.com/myPDF.pdf#nameddest=TOC">Link text</a>

[Planet PDF]

Live and learn. Or in this case, relearn!




[Via Jon's Radio]

Comments

Popular posts from this blog

Happy Retirement Pat Sweeny!

In a previous life, I was an active member of the West Michigan Shores Chapter of the STC. I met a lot of really cool people there and learned a lot about what it meant to be not just a technical writer, but more about how technical writers can break out of the mold and accomplish things.

One of the people who did that was Pat Sweeny. Pat is (or was, by this point) the President and owner of The Bishop Company, a contract do-it-all house; they document, streamline and illustrate your process, and they do it damn well. Pat was one of the first people in that chapter to "get it", which is to say, he and his company understand that technical writing isn't going to be a department for very much longer, it's going to be a business.

He had the foresight to actually make it a business, but he also had something else. Pat was forever trying to better those around him. He would come to meetings (which was a big step beyond most people) and teach you things. Or he would come to …

Google Inbox: A classic Google product

My work domain (an EDU) recently had Google Inbox enabled so I had a good chance to try it out. My personal email is relatively quiet and, I believe, doesn't provide a good Inbox experience. Work is more active and requires actual management, something I've tossed many a tool at over the years. As part of my work life, I supported the Google Apps for EDU installation here and took a pretty extensive presentation to campus about how to manage large amounts of email.

Inbox is a classic Google product: the distillation of a number of excellent ideas into a set of half-complete features built for a use case most people don't meet. We've seen this in the past in products like ChromeVox, Google's Chrome extension for accessibility. ChromeVox works great on ChromeOS devices, but completely ignores the point that most users of accessibility tech (AT) don't have or want ChromeOS devices and come to services with their AT in tow. ChromeVox also ignores decades of convent…

Evernote

Evernote, for better or worse, is the best note-taking service for my needs. It works across all my devices/computers/modes. It's fairly easy to get stuff into it. Hell, they even have 2-Factor authentication. The Windows app is a little clunky and my girlfriend and I have never been able to get shared notes to work properly (conflicted note! three times in the same grocery trip!), but what service is perfect? At least they have nice socks.

Everything, in fact, is pretty good as long as you don't screw up. And screw up I did. I'm not very regular about making backups, but I do make them every month or so. Once you figure out how to create a backup, that is.

There's a helpful Export Note option (which turns into Export Notes when you select multiple notes HINT). The export process is essentially opening All Notes, selecting every note, and then choosing Export Notes. Or something like that; Evernote never tells you, you're left to figure it out on your own. The file…