############################################################################## PRINT ON PDF STATIONERY, Version 1.0 (2008-01-22) A Mac OS X PDF service Copyright (C) 2008 Christoph Studer This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ############################################################################## CONTENTS ======== 1. Requirements 2. Installation 3. Usage 4. Configuration 5. History 1. REQUIREMENTS =============== - Mac OS X 10.5.x (Leopard) - Stationery file in PDF format 2. INSTALLATION =============== 1. Copy the "Print on PDF stationery" file to "~/Library/PDF Services" 2. Rename the copied file to whatever you like (appears in the printer dialog "PDF" menu) 3. Adjust `output_folder' (line 115) to point to the folder where generated PDF files should be stored. 4. Adjust `stationery_file' (line 116) to point to the PDF template that you want to print on. Repeat steps 1-3 for every stationery you want to print on. 3. USAGE ======== After installation of the PDF service you are able to print any contents onto your PDF stationery. Choose "File" -> "Print..." in any application which uses the default Mac OS X printing dialog. Then, select "PDF" (lower left button) and choose the service you just installed. The output PDF should now be stored in the `output_folder'. 4. CONFIGURATION ================ Apart from the stationery file and the output folder you want to use, there are three configuration switches to specify how the stationery and the printed contents should be merged: repeat (line 117) ------ Only affects multi page documents. Consider a 10 page document printed on a 3 page stationery. The stationery's pages are repeated as follows: REPEAT_LAST: 1233333333 REPEAT_MODULO: 1231231231 scale (line 118) ----- Defines how the stationery should be scaled to fit the content page size. SCALE_NOSCALE: Do not scale stationery. SCALE_FIT: Make stationery exactly fit content page size. Aspect ratio of stationery might be changed. SCALE_UNIWIDTH: Fit stationery to content width and keep aspect ratio. SCALE_UNIHEIGHT: Fit stationery to content height and keep aspect ratio. overlay (line 119) ------- Defines whether stationery should be above or underneath printed contents. OVERLAY_ABOVE: Stationery is overlaid above contents. OVERLAY_BELOW: Contents are overlaid above stationery. (default) 5. HISTORY ========== 2008-01-22 1.0.0 Initial release