Currently my version of Acrobat 7 can only extract a single page from the current document to a new PDF — this needed to be remedied and the resulting snippet evolved:
Archive for the ‘Scripts’ Category
Adding page numbers (folios) to PDFs is a common task, this is also called corner-stamping. The following code is a bit terse, but has all the pieces to get you going to successfully adding them to your workflow.
Bookmarks, or in itext lingo: Outlines, is something every user -expects- in a PDF. You can add them to your document as you go along, or you can export them to XML, and similarily import them from XML.
I once found myself in a situation where all incoming PDFs from a vendor had a cover page as the first page – which had a very high quality logo. The increase size was only 1MB but spanned over thousands of PDFs weekly it started to become a problem. The following snippet uses itextsharp to delete a page, or range [ Read More ]
As a follow up to the Adding PDFs Passwords and Restrictions post we are going to Remove PDF Passwords and Restictions. This is NOT a password cruncher or crack, this is when you have the owner password and wish to remove it and any restrictions. Using itextsharp we can remove passwords and restrictions to an existing PDF:
A basic security is a password security – and PDFs support a two-depth password: User Password — You can call this the open password. When you try to open the PDF the user gets a password prompt and they need to enter in order to view. Owner Password — In addition, you can add an Owner password, or Edit Password. [ Read More ]
Very often I find myself needing some extra simple array functions to do mundane tasks and always end up having to re-search for that one good solution… you can download the file here.
QTip is a JQuery plugin that provides the easiest to use mouse-over, or tool-tips for elements. However, in keeping with the jQuery UI spirit it is fairly easy to have your qTips themed using Themeroller.
UniqueArray is a jQuery plugin to remove duplicate items in an array of strings/ints (not objects). JQuery has a built-in $.unique(), but that is for DOM elements not a list.