Monday, November 21, 2005

Duplicating Pages in Acrobat

With the page icons visible in Acrobat Professional you can duplicate
pages by simply holding down the option key (Mac) or Alt key (PC) and
drag a copy of that page anywhere in the document.



Thanks to Chris Rhoadhouse for submitting this!

Sunday, November 20, 2005

JavaScript to bust up a multi-page PDF into single pages

Here's a real handy JavaScript that lots of people could use. One of the neat things about the batch processing function in Acrobat with this script is that you can also have it run the Optimizer. That affords you the ability to do all sorts of cool stuff. Never mind the fact that there are a plethora of other functions you can add as part of a sequence.

Begin JavaScript:

/* extraire */
// regular expression acquire the base name of file
var re = /.*\/|\.pdf$/ig;
var filename = this.path.replace(re,"");
try
{
for ( var i = 0; i < this.numPages; i++ )
this.extractPages
({
nStart: i,
cPath: filename+"_" + (i +1)+".pdf" // (*)
});
}
catch (e)
{
console.println("Batch Aborted: " + e )
}

End JavaScript

You can thank Jimmy Høiby for contributing this to the Enfocus User Group.

Jimmy Høiby
Graphic Designer
Silkeborg Bogtryk
Centraltrykkeriet
Stagehøjvej 27
DK-8600 Silkeborg
Denmark

Matt Beals