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

opening documents to first page

don_zielke
Registered: Oct 19 2007
Posts: 4

We have a legal confidentiality notice as the first page of every document and want that to be the first viewed page every time a PDF is opened.
 
Some of our PDF documents are opening to last-viewed page instead of the first page of the document (the legal notice). How do I over-ride this setting? This seems to happen with every version of reader we have (varies from 5.1 to latest).
 
Most of the documents are scanned to PDF via a MFD (printer/scanner/copier), but sometimes the legal disclaimer is added manually using the Adobe Acrobat software. We have not been able to determine how the affected documents were created yet... (running the tests now). Any help is appreciated.

My Product Information:
Reader 5, Windows
carrimak
Team
Registered: Dec 13 2006
Posts: 165
Assuming that you have Adobe 7 or 8, or maybe even 6 (full version, not reader), open the file that's giving you problems, go to Properties (under File), and there you will see a tab for "initial view" where you can set the page number that you want to be the initial view...should be page 1.

Hope this helps...

Acrobat is probably the program I use most often and I'm learning more every day.

pddesigner
Registered: Jul 9 2006
Posts: 858
Her is another option that may help.

Set a page open action.

Page Actions are triggered by the opening and closing events on a PDF page in the viewer. They are set as Document or Page level JavaScript.

Example 1

This example sets the base URL, creates a link to go to a page relative to the base URL.

console.println("Base URL was " + this.baseURL);
this.baseURL = "http://www.adobe.com/products/";
console.println("Base URL is " + this.baseURL);
// add a link to the first page
var link = this.addLink(0, [200,200, 400, 300])
// set action that goes to the Acrobat page on the Adobe website.
link.setAction("this.getURL('acrobat',false)")

Example 2

This example goes to the first page of the document.
this.pageNum = 0;

This example advances the document to the next page.
this.pageNum++;

This example causes the application to beep when the first page is opened.

this.setPageAction(0, "Open", "app.beep(0);");

LiveCycle

Specifies a numbered page in the document, using an integer value. The document’s first page has a pagenum value of 1.

page=1

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

dthanna
ExpertTeam
Registered: Sep 28 2005
Posts: 248
We are running into the exact same issue on our end - with reports we generate for our clients.

We have attempted Carrie's suggestion, however have found it to not work as anticipated. Not Carrie's fault - her suggestion, by reading your post, I am guessing has been attempted.

We've traced it back to the Acrobat/Reader setting 'Reopen Documents to Last Viewed Page:' found under the Startup section. The PDF file properties are set to open on first page, however Acrobat opens it to last page viewed - but only when the PDF is opened off of a web site.

Due to the prevalence of this I would suggest that Adobe add a 'None' to this preferences setting and make it the default installation setting. Or at least allow PDF settings to override this - which is not occuring.

In short, there isn't much you can do about it, other than to attempt a doc level javascript - this.pageNum = 0; will goto the first page (page numbering is zero-based - not one-based (like the real world)).

Hope this helps to understand why, whom else is having issues and a possible solution (untested).

Thanks.

Douglas Hanna is a member of the Production Print Technology team at Aon.
www.aonhewitt.com

don_zielke
Registered: Oct 19 2007
Posts: 4
Thank you all for your responses!

Not sure what version of Acrobat are being used to add the disclaimers, but I'll recommend they upgrade to Acrobat 7 or 8.

In response to the comment made by Mr. Hanna - These PDFs are stored in a SharePoint web site. The odd thing is that the behavior is inconsistent, some documents open to page one, others do not. Although it does look like it's related to the manual edit step...

Thanks again, everyone!
pddesigner
Registered: Jul 9 2006
Posts: 858
Here's an option that may help with the timing and page transition.

This JavaScript code can be used as a document level function or a button action event.
Test it as a mouse down event and add a page link to a mouse up event. If it works, change the timeDelay to a higher value for extended viewing.


this.pageNum = 0;
// full screen
app.fs.cursor = cursor.visible;
app.fs.defaultTransition = "WipeDown"; // BoxIn, BoxOut
app.fs.timeDelay = 2; // delay 2 seconds
app.fs.useTimer = true; // activate automatic page turning
app.fs.usePageTiming = true; // allow page override
app.fs.clickAdvances = true;
app.fs.escapeExits = true;
app.fs.loop = true;
app.fs.backgroundColor = color.ltGray;


// go
app.fs.isFullScreen = true;

It's a common rule to press Esc to quit full screen mode. You can modify this JavaScript code and then execute it.

Add a Reset button to restore the default code.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

dthanna
ExpertTeam
Registered: Sep 28 2005
Posts: 248
Excellent question - sometimes we have a hard time determining the knowledge level of the questioner. I try to shoot for middle ground - moderate experience, but may not know everything.

So, don't hesitate to ask if more detail is needed.

Tools - Acrobat Pro (this will work in 6, 7, 8) - however the location of setting the Document level JS may be different in different versions. My explanation will be for A7.
From the menus
Advanced | JavaScript --> Document JavaScriptsEnter a script name, such as "PDFOPEN" - the name doesn't matter, but you do want it to be professional.

Click Add

An editor will launch allowing you to edit the JS - the first lines will look like this:

function PDFOPEN()
{
}


Delete all of that 'stuff'

Enter in

this.pageNum = 0;

The above line will appear all by itself -as the only thing in the editor.

Close the editor (acepting any 'saves' along the way)

Close the Document level JS dialog box.

Done.

Whenever this document opens it will do it's darndest to move to page 1 after it finishes opening. So, from a user experience, it may try to open to a particular page (the cashed page location) then appear to jump to page one.

All I can say is to give it a shot and see if this fixes things.

Hope this helps.

Holler if you have any additional questions.

Thanks.

Douglas Hanna is a member of the Production Print Technology team at Aon.
www.aonhewitt.com

ruggero
Registered: Oct 25 2007
Posts: 1
Hi - I have an allmost similar situation as don_zielke.

Maybe some of you experts can help me on this, I would surely appreciate it:

My company also want the reader to view a legal paper (terms etc.) as the first page whenever the document is opened.

BUT - we also are faced with a request, that the reader always should open at the last viewed page.

Preferrable the legal paper will disappear after a fixed period of time and then automatically jump to "last viewed page" (some kind of time-label or transition?).

Does anyone have an idea of how to make this work (or if it's possible at all)?

I'm not a 'scripter' or 'coding expert' so I have to ask about the former answers in this thread: Where do I put the ActionScript or Action Set you mentioned? Can it be done directly in AcroPro 8 or do I need some special software?

Again any help is highly appreciated.;-)