Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

superscape

macrumors 6502a
Original poster
Feb 12, 2008
937
223
East Riding of Yorkshire, UK
Hi,

I need to be able to toggle a layer on/off in a PDF - easy enough in Acrobat using JavaScript... However, the catch is that I need to be able to toggle the layer *without* opening the file.

The best I can think of is a fudge using Ghostscript to make a document level Javascript to run when the document is open but that seems scruffy. I don't see anything useful in CGPDF (Obj-C) or on the command line (pdftk)

It seems such a basic thing, but I'm drawing a blank. Does anyone have any ideas?

Thanks!

Rob
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.