These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Named Destination Just Don't Work

lucaso
Registered: Feb 5 2008
Posts: 49

Finally Got My Webserver up.
Now I want to use the 'Open Parameters'
http://146.50.208.28/416_1__b-test.pdf#page=2
and
http://146.50.208.28/416_1__b-test.pdf#page=2&viewrect=150,180,200,200
work fine. No problem so far.
BUT
"http://146.50.208.28/416_1__b-test.pdf#nameddest=416 1.54"
or
http://146.50.208.28/416_1__b-test.pdf#nameddest=416%20%201.54
DOESN'T!
Thought it possibly due to the period, so I made a dest without the period.
http://146.50.208.28/416_1__b-test.pdf#nameddest=Maatlat
THIS DOESN'T WORK EITHER.....
Tried Acrobat Pro 8.1 and Acrobat Reader 9, just no go...
Please help

although pushing towards senior age, still want to keep up the pace

My Product Information:
Acrobat Pro 8.1, Windows
StevenD
Registered: Oct 6 2006
Posts: 368
I have only used the page parameter and haven't used the open parameter for opening a PDF and have it go to a named destination. I checked the documentation "Parameters for Opening PDF Files" and the example given is this.

http://example.org/doc.pdf#Chapter6

It looks like form this example that the name of the destination goes right after the hash mark with out anything else.

StevenD

lucaso
Registered: Feb 5 2008
Posts: 49
I think I do understand what you mean: don't use 'nameddest=" but just the nameddest by itself.
I'll give it a try.

PDF Open Parameters:
The following table describes the parameters. Italics indicate user-specified variables.
Syntax
Description
nameddest='destination' (ie =416__1.51)
Specifies a named destination in the PDF document.
page='pagenum' (ie =3)
Specifies a numbered page in the document, using an integer value. The document’s first page has a pagenum value of 1.

There are more...pagenum works as well as viewrect
viewrect=left,top,wd,ht
Sets the view rectangle using float or integer values in a coordinate system where 0,0 represents the top left corner of the visible page, regardless of document rotation.
Use the page command before this command.

They all work except the namedest.....
problem with viewrect is that pdf-coordinates are internally from leftbottom to upperright, so those have to be recalculated. within the pdf named destinations work fine

although pushing towards senior age, still want to keep up the pace

lucaso
Registered: Feb 5 2008
Posts: 49
Why Thank You StevenD!!! I was reading a bit too literal.... should have known....

although pushing towards senior age, still want to keep up the pace

StevenD
Registered: Oct 6 2006
Posts: 368
Yeah I do the same thing now and then. Glad you got it working. It certainly has got me thinking about named destinations again. I haven't done much with using them.

StevenD

lucaso
Registered: Feb 5 2008
Posts: 49
well. the great thing about them is you can use it to couple data from a main db to a pdf, in the example it are roomnumbers, stored as well in an Oracle db and in Cad-drawings, of which I make pdf's. Every room, it can ofcourse be anything like switches, outlets, pumps, doors with locks, name it, which are registered in a db, you can show where they are by just providing the same 'key' to a pdf-reader.

although pushing towards senior age, still want to keep up the pace

lucaso
Registered: Feb 5 2008
Posts: 49
to my disappointment, there's still a great problem: I need to flush the cache!! what happens: it opens great, but the next time with another key, it opens on the previous one...
Is there a way to do something about that?
I've tried first a #viewrect=0,0,0,0 and afterwards another #416 3.01, that works, but is akward,
there's got to be another way....
I've tried #page1&416 1.10, it takes about 2 seconds to work it out, this nameddest is NOT on that page, and then proceeds to execute the right view!! A real hickup. #page0 doesn't work. My quess is that the process with it's cache is still in memory, I can't think of a way to kill a process with Javascript...I'm opening the pdf with the IE-plugin, to change to another 'key' I have to hit the 'enter' twice on the new adress, the I don't need the page=1 option. That option only worked once...

although pushing towards senior age, still want to keep up the pace

StevenD
Registered: Oct 6 2006
Posts: 368
You are going beyond my experience with opening a document from a web link. As I said earlier I have really only worked with the page parameter to open a PDF to a specific page. Maybe someone else out there who is following this thread will have more to say. What you have going sounds interesting.

StevenD