Whatever message this page gives is out now! Go check it out!
image="../cfdocs/images/artgallery/raquel05.jpg" destination="output.pdf" overwrite="yes"> |
image="../cfdocs/images/artgallery/raquel05.jpg" destination="output.pdf" overwrite="yes" foreground="yes" opacity=1 showOnPrint="no" position="100,100"> |
<cfset myImage = ImageNew("",200,200,"argb","gray")> <!---adding watermark for myImage---> <cfpdf action="addwatermark" rotation="45" foreground="true" image="#myImage#" source="RemoveArts.pdf" destination="dest.pdf" overwrite="yes"> |
as a watermark. ---> <h3>Choosing a Watermark</h3> <p>Please choose the image you would like to use as a watermark.</p> <!--- Create the ColdFusion form to select an image. ---> <table> <cfform action="addWatermark2.cfm" method="post" enctype="multipart/form-data"> <tr> <td><img src="../cfdocs/images/artgallery/maxwell01.jpg"/><br/> <cfinput type="radio" name="art" value="../cfdocs/images/artgallery/maxwell01.jpg" checked="yes"> Birch Forest</td> <td><img src="../cfdocs/images/artgallery/raquel05.jpg"/><br/> <cfinput type="radio" name="art" value="../cfdocs/images/artgallery/raquel05.jpg"> Lounging Woman</td> <td><img src="../cfdocs/images/artgallery/jeff01.jpg"/><br/> <cfinput type="radio" name="art" value="../cfdocs/images/artgallery/jeff01.jpg">Celebration</td> <td><img src="../cfdocs/images/artgallery/paul01.jpg"/><br/> <cfinput type="radio" name="art" value="../cfdocs/images/artgallery/paul01.jpg">Guitarist </td> </tr> </table> <br/> <cfinput type="Submit" name="submit" value="Submit"></p> </cfform> |
by using the input variable form.art. ---> <cfpdf action="addwatermark" source="check.pdf" image="#form.art#" destination="output.pdf" foreground="yes" overwrite="true"> <p>The watermark has been added to your personalized checks.</p> |
<cfquery name="artwork" datasource="cfartgallery"> SELECT ARTID, ARTNAME, LARGEIMAGE FROM ART ORDER BY ARTNAME </cfquery> <!--- Create a form that lists the artwork titles generated by the query. Set the value to LARGEIMAGE so that the image file is passed to the processing page. ---> <cfform action="addWatermarkB.cfm" method="post"> <p>Please choose a title:</p> <cfselect name="art" query="artwork" display="ARTNAME" value="LARGEIMAGE" required="yes" multiple="no" size="8"> </cfselect> <br/> <cfinput type="submit" name="submit" value="OK"> </cfform> |
<cfif IsImageFile("../cfdocs/images/artgallery/#form.art#")> <!--- Use the cfimage tag to create a ColdFusion image from the file chosen from the list. ---> <cfimage source="../cfdocs/images/artgallery/#form.art#" action="read" name="myWatermark"> <!--- Use the ImageScaleToFit function to resize the image by using the bicubic interpolation method for better resolution. ---> <cfset ImageScaleToFit(myWatermark,450,450,"bicubic")> <!--- Use the ColdFusion image variable as the watermark in a PDF document. ---> <cfpdf action="addWatermark" source="title.pdf" image="#myWatermark#" destination="watermarkTitle.pdf" overwrite="yes"> <cfelse> <p>I'm sorry, no image exists for that title. Please click the Back button and try again.</p> </cfif> |
<cfset myImage=ImageNew("",500,500)> <!--- Set the background color for the image to white. ---> <cfset ImageSetBackgroundColor(myImage,"white")> <!---Clear the rectangle specified on myImage and apply the background color. ---> <cfset ImageClearRect(myImage,0,0,500,500)> <!--- Turn on antialiasing. ---> <cfset ImageSetAntialiasing(myImage)> <!--- Draw the text. ---> <cfset attr=StructNew()> <cfset attr.size=50> <cfset attr.style="bold"> <cfset attr.font="Verdana"> <cfset ImageSetDrawingColor(myImage,"blue")> <cfset ImageDrawText(myImage,"PROOF",100,250,attr)> <!--- Write the text image to a file. ---> <cfimage action="write" source="#myImage#" destination="text.tiff" overwrite ="yes"> <!--- Use the text image as a watermark in the PDF document. ---> <cfpdf action="addwatermark" source="c:/book/1.pdf" image="text.tiff" destination="watermarked.pdf" overwrite="yes"> |
destination="output.pdf" overwrite="yes"> |
<cfpdf action="removeWatermark" source="artBook.pdf" destination="noWatermark.pdf"> |
overwrite="yes" pages="1-2"> |
<cfpdf action = "optimize" algo = "bicubic" source = "..\myBook.pdf" name = #myBook#> |
noJavaScript noThumbnails noBookmarks noComments noMetadata noFileAttachments noLinks nofonts> |
<cfpdf action=write source="./inputFiles/Source.pdf" destination="./outputFiles/Output.pdf" encodeAll="yes"> |
<cfpdf action = "addfooter" source = "../myBook.pdf" destination = "../myBookwithfooter.pdf" image = "adobelogo.JPG" // Use this attribute to add an image in the footer align = "right"> // By default, the alignemnt is center <!---addheader---> <cfpdf action = "addheader" source = "../myBook.pdf" destination = "../myBookwithheader.pdf" text = "Adobe" align = "left"> |
<cfpdf action = "removeheaderfooter" source="..\mybook.pdf" destination = "new.pdf"> |
<cfpdf action = "extracttext" source = "../myBook.pdf" pages = "5-20, 29, 80" destination ="../adobe/textdoc.txt" |
<cfpdf action = "extractimage" source = "../myBook.pdf" pages = "1-200" destination = "..\mybookimages" imageprefix = "mybook"> |
source = "..\myBook.pdf" destination = "..\new\myBook.pdf"> hscale = ".5" vscale = ".15" position = "8, 10" rotation = "180"> |
destination="abridged.pdf" overwrite="yes"> |
destination="timesheet.pdf" overwrite="yes" permissions="AllowPrinting"> |
destination="myTimesheet.pdf"> |
source="timesheet.pdf" destination="myTimesheet.pdf" overwrite="yes" permissions="AllowPrinting> |
source="timesheet.pdf" newOwnerPassword="private" newUserPassword="openSesame" destination="myTimesheet.pdf"> |
overwrite="yes" newOwnerPassword="paSSword1" newUserPassword="openSesame" encrypt="RC4_40"> |
<cfpdf action="protect" source="confidential.pdf" encrypt="none" destination="public.pdf"> |
destination="myDocument.pdf"> |
<cfset taxKeys.keywords="Sole Proprietor,Partnership,S Corporation"> <cfpdf action="setInfo" source="taxes\p535.pdf" info="#taxKeys#" destination="taxes\p535.pdf" overwrite="yes"> |
<cfdump var="#taxInfo#"> |
<cfoutput>#taxInfo.keywords#</cfoutput> |
<cfpdf action="write" source="myBook" name=#myBook# version="1.4"> |
<cfpdf action="merge" directory="c:/BookFiles" destination="myBook.pdf" overwrite="yes"> |
<cfpdf action="merge" directory="c:/BookFiles" destination="myBook.pdf" order="name"
ascending="yes" overwrite="yes"><cfpdf action="merge" directory="c:/BookFiles" destination="myBook.pdf" order="time"
ascending="yes" overwrite="yes" stopOnError="yes">source="c:\coldfusion\wwwroot\lion\Chap1.pdf,c:\coldfusion\wwwroot\lion\Chap2.pdf" destination="twoChaps.pdf" overwrite="yes"> |
<cfdocument format="PDF" name="coverPage"> <html> <body> <h1>Cover page</h1> <p>Please review the enclosed document for technical accuracy and completeness.</p> </body> </html> </cfdocument> <!--- Use the cfpdf tag to merge the cover page generated in ColdFusion with pages from PDF files in different locations. ---> <cfpdf action="merge" destination="myBook.pdf" overwrite="yes" keepBookmark="yes"> <cfpdfparam source="coverPage"> <cfpdfparam source="title.pdf"> <cfpdfparam source="e:\legal\copyright.pdf"> <cfpdfparam source="boilerplate\intro.pdf" pages="1-5"> <cfpdfparam source="bookfiles\chap1.pdf"> <cfpdfparam source="bookfiles\chap2.pdf" pages="1,80-95"> </cfpdf> |
<cfpdf action="merge" package="yes" destination="./myBook/adobetest.pdf" overwrite="yes">
<cfpdfparam source="./inputFiles/c.zip" >
<cfpdfparam source="./inputFiles/d.jpg" >
<cfpdfparam source="./inputFiles/a.pdf" >
<cfpdfparam source="./inputFiles/z.txt" >
<cfpdfparam source="./inputFiles/MSTribute.pps" >
<cfpdfparam source="./inputFiles/Test1.docx" >
<cfpdfparam source="./inputFiles/NewMovie.mp3" >
<cfpdfparam source="./inputFiles/testserver.air" >
<cfpdfparam source="./inputFiles/123.xml" >
<cfpdfparam source="./inputFiles/New_test_case.xls" >
</cfpdf>destination="taxforms/flatForm.pdf" overwrite="yes"> <a href="http://localhost:8500/Lion/taxforms/flatForm.pdf">1040 form</a> |
overwrite="yes"> |
PDFdocumentName_page_n.JPG |
<cfpdf action="thumbnail" source="myBook.pdf"> |
myBook_page_2.jpg myBook_page_3.jpg ... myBook_page_100.jpg |
<cfpdf action="thumbnail" source="myBook.pdf" pages="1" destination="images"> |
destination="images"> |
destination="\myBook\subset" imagePrefix="abridged"> |
<cfpdf action="thumbnail" source="./WORK/myBook.pdf" destination="./WORK/Testing_CFPDF" overwrite="true" hires="yes"> |
<cfpdf action="thumbnail" source="C:\WORK\myBook.pdf" destination="C:\WORK\Testing_CFPDF" overwrite="true" hires="yes" format="tiff" compresstiffs="yes"> |
<cfpdf action="thumbnail" source="./WORK/myBook.pdf" destination="./WORK/Testing_CFPDF" overwrite="true" format="jpg" maxscale="3" maxlength="300" maxbreadth="200" hires="yes" scale="100"> |
<!--- This code reads a PDF document into a PDF variable called pdfVar1. ---> <cfpdf action="read" source="#filename#" name="pdfVar1"> <!--- This code uses the Duplicate function to create a clone of pdfVar1 called pdfVar2. ---> <cfset pdfVar2=Duplicate(pdfVar1)> <!--- This code creates a watermarked version of the source PDF document from the pdfVar1 variable. ---> <cfpdf action="addwatermark" source="pdfVar1" rotation="45" image="watermark.jpg" destination="watermark_coldfusion.pdf" overwrite="yes"> <!--- This code creates a protected version of the source PDF document from the pdfVar2 variable. ---> <cfpdf action=protect source="pdfVar2" encrypt="RC4_128" permissions="none" newownerpassword="owner1" destination="restricted_coldfusion.pdf" overwrite="yes"> |