This is a piece of code that I find particularly useful for consumer or customer documentation -- basically, it checks the user's screen resolution. This information can then be used in a number of ways, but one would be setting a document's initial zoom level based on the user's screen resolution (e.g. If the screen resolution is 800x600 or below, set the document zoom to 65%, but if the screen resolution is above 800x600, set the zoom level to 100%.)
// get object representing the primary monitor
var monitors = app.monitors.primary();
// returns an array that represents the monitor's boundaries
var res = monitors.rect;
// check if resolution is higher than 800x600
if(res > 800 && res > 600)
// set document zoom to 100%
this.zoom = 100;
// set document zoom to 65%
this.zoom = 65;
Planet PDF talks with another Master of the PDF Universe, Eugene Y. Xiong, Founder and Chairman of the Board at Foxit Software Inc. in Fremont California. Xiong is a quiet yet astounding achiever, you (usually) won't find him talking at conferences, exhibits, or publishings, but what you will find is the result of his leadership in places you would never expect.
OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.