Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Get PDF Doc object from exportDataObject() method

Avatar

Level 8

Hello all,

I've been attempting to write a function to open an attachment (Data Object), which is a PDF AND have the newly opened PDF go to a specified bookmark (which would be a parameter of the function). Now, I've written most of the function already except I need the Doc object of the PDF that was opened with the exportDataObject() method.

Is there an easy way of doing this? It's too bad that the exportDataObject() method doesn't return the Doc of the PDF being opened. I'd rather not use the app.activeDocs() method. Or maybe I don't need the Doc and there's a totally different way of performing the function I require.

Any input at all would be greatly appreciated.

Thank You.

Kyle

1 Reply

Avatar

Level 8

I found a way of opening attachments to a specific bookmark. It ain't pretty but it works. If anybody needs the script, let me know.

Kyle