# # advertise.txt - a more complex control file for PDFModify # This file was shipped with PDFModify. # PDFModify - Copyright (c) 2003 by SANFACE Software, http://www.sanface.com # configure -font Helvetica-Oblique -fontsize 9 1@235,650:The following text and the two white boxes where generated by PDFModify. 1@235,640:You can find the source for this example inside the PDFModify distribution. configure -font Helvetica-Bold -fontsize 15 1@72,550:PDFModify is our new and innovative tool for PDF customization. 1@72,530:You can take an existing PDF and add some text or graphics. 1@72,510:It is possible to fill out forms or to stamp pages. configure -font Helvetica -fontsize 12 1@72,475:PDFModify is a powerful Perl5 program. Contact us if you need the sources. 1@72,455:The syntax to control PDFModify is very simple. We've designed it to be easily created 1@72,440:by server apps. 1@72,420:You can use the 14 base fonts of PDF: configure -font Courier -fontsize 10 1@80,400:Courier configure -font Courier-Bold 1@80,390:Courier-Bold configure -font Courier-BoldOblique 1@80,380:Courier-BoldOblique configure -font Courier-Oblique 1@80,370:Courier-Oblique configure -font Helvetica 1@80,360:Helvetica configure -font Helvetica-Bold 1@80,350:Helvetica-Bold configure -font Helvetica-BoldOblique 1@80,340:Helvetica-BoldOblique configure -font Helvetica-Oblique 1@280,400:Helvetica-Oblique configure -font Times-Roman 1@280,390:Times-Roman configure -font Times-Bold 1@280,380:Times-Bold configure -font Times-Italic 1@280,370:Times-Italic configure -font Times-BoldItalic 1@280,360:Times-BoldItalic configure -font Symbol 1@280,350:Symbol configure -font ZapfDingbats 1@280,340:ZapfDingbats configure -font Helvetica -fontsize 7 1@380,350:(Symbol) 1@380,340:(ZapfDingbats) configure -fontsize 12 1@72,310:You can use PDF page description syntax to add graphical elements to a page. configure -color .8_0_0_rg -fontsize 11.85 1@72,290:PDFModify supports PDF colors - you can use Greyscale, RGB or CMYK color space. configure -color 0_g configure -font Helvetica-BoldOblique -fontsize 12 1@72,270:Simple example: configure -font Helvetica -fontsize 7 1@72,255:The command: # a white box 1:q 1:1 g 1:72 235 350 15 re 1:f* 1:Q configure -font Courier -fontsize 8 1@80,240:pdfmodify -input control.txt -template background.pdf -output new.pdf configure -font Helvetica -fontsize 7 1@72,215:The file "control.txt": # a white box 1:q 1:1 g 1:72 175 350 35 re 1:f* 1:Q configure -font Courier -fontsize 8 1@80,200:# This is the file "control.txt". 1@80,190:configure -font Times-Roman -fontsize 50 1@80,180:1@22,222:Hello World! configure -font Helvetica -fontsize 7 1@72,160:As you can see: it's simple. "new.pdf" will have a big "Hello World!" on page 1. 1@72,150:In all other respects "new.pdf" looks like "background.pdf"! configure -font Helvetica-Bold -fontsize 13.5 1@72,110:Learn more about this tool at http://www.sanface.com/pdfmodify.html