Whatever message this page gives is out now! Go check it out!
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <PDF source="Doc1"/> <PDF source="Doc2"/> </PDF> </DDX> |
valid. ---> <cfif IsDDX("merge.ddx")> |
<cfset inputStruct=StructNew()> <cfset inputStruct.Doc1="Chap1.pdf"> <cfset inputStruct.Doc2="Chap2.pdf"> |
<cfset outputStruct=StructNew()> <cfset outputStruct.Out1="twoChaps.pdf"> |
outputfiles="#outputStruct#" name="myBook"> |
<cfdump var="#myBook#"> |
<cfpdfparam source="Chap1.pdf"> <cfpdfparam source="Chap2.pdf"> </cfpdf> </cfif> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <PDF source="DocumentTitle"/> <TableOfContents/> <PDF source="Doc1"/> <PDF source="Doc2"/> </PDF> </DDX> |
valid. ---> <cfif IsDDX("makeBook.ddx")> <!--- This code creates a structure for the input files. ---> <cfset inputStruct=StructNew()> <cfset inputStruct.Title="Title.pdf"> <cfset inputStruct.Doc1="Chap1.pdf"> <cfset inputStruct.Doc2="Chap2.pdf"> <!--- This code creates a structure for the output file. ---> <cfset outputStruct=StructNew()> <cfset outputStruct.Out1="Book.pdf"> <!--- This code processes the DDX instructions and generates the book. ---> <cfpdf action="processddx" ddxfile="makeBook.ddx" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="myBook"> </cfif> |
includeInTOC="false"/> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <PDF source="Title"/> <TableOfContents/> <PDF source="Doc2" > <Header> <Right> <StyledText><p>Right-justified header text</p></StyledText> </Right> <Left> <StyledText><p>Left-justified header text</p></StyledText> </Left> </Header> <Footer> <Center> <StyledText><p>Centered Footer</p></StyledText> </Center> </Footer> </PDF> </PDF> </DDX> |
<Right> <StyledText> <p>Page <_PageNumber/> of <_LastPageNumber/></p> </StyledText> </Right> </Footer> |
<Header> <Center> <StyledText> <p> color="red" font-weight="bold" font="Arial">Table of Contents</p> </StyledText> </Center> </Header> </StyleProfile> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <PDF source="Title"/> <TableOfContents> <Header styleReference="TOCheaderStyle"/> </TableOfContents> <PDF source="Doc1"/> <PDF source="Doc2"/> <PDF source="Doc3"/> <PDF source="Doc4"/> </PDF> <StyleProfile name="TOCheaderStyle"> <Header> <Center> <StyledText> <p> color="red" font-weight="bold" font="Arial">Table of Contents</p> </StyledText> </Center> </Header> </StyleProfile> </DDX> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <PageLabel prefix="page " format="Decimal"/> <PDF source="Title"/> <TableOfContents> ... </TableOfContents> <PDFGroup> <Footer styleReference="FooterStyle" /> <PDF source="Doc1"/> <PDF source="Doc2"/> <PDF source="Doc3"/> <PDF source="Doc4"/> </PDFGroup> </PDF> <StyleProfile name="FooterStyle"> <Footer> <Left> <StyledText> <p font-size="9pt"><i>CFML Reference</i></p> </StyledText> </Left> <Right> <StyledText> <p font-size="9pt">Page <_PageNumber/> of <_LastPageNumber/></p> </StyledText> </Right> </Footer> </StyleProfile> </DDX> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1" initialView="firstView"> ... <InitialViewProfile name="firstView" show="BookmarksPanel" magnification="FitPage" openToPage="2"/> ... </DDX> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <Watermark rotation="30" opacity="65%"> <StyledText><p font-size="50pt" font-weight="bold" color="lightgray" font="Arial">DRAFT</p></StyledText> </Watermark> ... </PDF> </DDX> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <Background alternation="EvenPages" verticalAnchor="Top"> <StyledText><p font-size="20pt" font-weight="bold" color="gray" font="Arial">DRAFT</p></StyledText> </Background> <Background alternation="OddPages" verticalAnchor="Top"> <StyledText><p font-size="20pt" font-weight="bold" color="gray" font="Arial"><i>Beta 1</i></p></StyledText> </Background> ... </PDF> </DDX> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="Out1"> <PDF source="Doc1"> <Background> <StyledText><p font-size="20pt" font-weight="bold" color="lightgray" font="Arial">CHAPTER 1</p></StyledText> </Background> </PDF> <PDF source="Doc2"> <Background> <StyledText><p font-size="20pt" font-weight="bold" color="lightgray" font="Arial">CHAPTER 2</p></StyledText> </Background> </PDF> <PDF source="Doc3"> <Background> <StyledText><p font-size="20pt" font-weight="bold" color="lightgray" font="Arial">CHAPTER 3</p></StyledText> </Background> </PDF> <PDF source="Doc4"/> </PDF> </DDX> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <DocumentText result="Out1"> <PDF source="doc1"/> </DocumentText> </DDX> |
<cfset ddxfile = ExpandPath("documentText.ddx")> <cfset sourcefile1 = ExpandPath("book1.pdf")> <cfset destinationfile = ExpandPath("textDoc.xml")> <cffile action="read" variable="myVar" file="#ddxfile#"/> <cfset inputStruct=StructNew()> <cfset inputStruct.Doc1="#sourcefile1#"> <cfset outputStruct=StructNew()> <cfset outputStruct.Out1="#destinationfile#"> <cfpdf action="processddx" ddxfile="#myVar#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar"> <!--- Use the cfdump tag to verify that the PDF files processed successfully. ---> <cfdump var="#ddxVar#"> </cfif> |
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <DocumentText result="Out1"> <PDF source="doc1" pages="1-10"/> <PDF source="doc2" pages="3-5"/> </DocumentText> </DDX> |