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

How to change alignment of last page of portfolio

jamiestockton
Registered: Jul 9 2010
Posts: 5

I have created a 6 page PDF portfolio on Adobe Acrobat 9 pro. I have the inital view settings set to display as two up (cover page), which displays the cover page as a centred single page, then 2 pages thereafter. However, because there are only 6 pages within my document, the last page is displayed as a single page also. The problem i have is that the last page is aligned all the way over to the left, but i would ideally like to centre the page so the first and last page are displayed as single pages, but centred, and all other pages as a 2 page style. Any suggestions?

My Product Information:
Acrobat Pro 9.0, Windows
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
I assume you're talking about a single PDF document with 6 pages, not a portfolio (which is a collection of discrete documents controlled by a Flash navigator).

The usual way to achieve the view you're looking for would be in the authoring application, by exporting pages 2-3 and 4-5 as spreads (which in the PDF means a double-width page), then you don't need to use 2-up mode. Disadvantage being that readers can't then switch to single-page views.

Another option would be to add page-level javascripts that change the layout mode for each page, using

this.layout = "TwoPageRight";

on pages 2,3,4 and 5; and

this.layout = "SinglePage";

on pages 1 and 6.

It's hacky though, as readers may want to change to something else (e.g. fit width) and the script will keep resetting them back to your choice.


To add a page script, right-click the thumbnail in the pages sidebar, choose "page properties", "actions" and for "page open" choose "run a JavaScript", press ADD and type in your code.
jamiestockton
Registered: Jul 9 2010
Posts: 5
Fantastic, thank you for the response. Using the Javascript has more or less had exactly the desired effect.

My zoom levels are a bit all over the place now though so i just need to work out how to set all pages to view at 50% zoom. For some reason my single pages are showing at 100% zoom and the double pages at 50%. I have tried playing with the page settings for 'fit width' and 'fit page' to no evail, but i am sure there must be a way to set all pages to 50% view.
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Similar JS property for the zoom:

this.zoomType = zoomtype.XXXX;

where XXXX is one of the keywords in the SDK, for example "fitP" for fit page, "fitW" for fit width, etc