Flatten Comments / “TypeWriter” text in Acrobat Pro 9 on Mac OS X

It’s harder than it sounds.

This page shows how to add a JavaScript file to teach Acrobat to expose this supported functionality to the user. The provided example is for Windows, however. I put the file in /Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app/Contents/MacOS/JavaScripts on my system, restarted Acrobat, and the new entries appeared in the Documents menu. They seem to work*! The contents of flatten.js are as follows:

app.addMenuItem({ cName: "Flatten page", cParent: "Document", cExec: "flattenPages(this.pageNum)",cEnable: 1, nPos: 16});
app.addMenuItem({ cName: "Flatten document", cParent: "Document", cExec: "flattenPages()",cEnable: 1, nPos: 17});

* I define “work” as the resulting PDF, after File : Save, does not cause an error when using the ‘pdfjoin’ command in Linux, and that the joined PDF can be opened in xpdf on Linux with all of the “TypeWriter” text intact.

No idea why this is not something standard with the full version of Acrobat.


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s