PDF is a format often used as a means to generate documents to be printed on paper of specific dimensions.

When a site serves a PDF document, the browser may open it but usually it is up to the user to tell explicitly the viewer program to print it.

This class provides a more user friendly solution for this problem by altering PDF documents in such way that they contain JavaScript code that makes the viewer program open the print dialog when the document is opened.