Friday, September 21, 2007

Using DDX for PDF manipulation in ColdFusion 8

While DDX is nothing new to Adobe, it is new to ColdFusion with the latest release of Adobe ColdFusion 8. DDX is an XML document definition that was originally created for Adobe LiveCycle Assembler and is used to describe documents.  DDX elements are used to represent PDF pages, comments, bookmarks, and styled text.

ColdFusion 8 ships with a scaled-down edition of the LiveCycle Assembler that can process a subset of the total DDX definition. In this article, we will look at some of the possibilities with DDX and how its addition to ColdFusion has given developers new tools and capabilities for creating and manipulating PDF documents....

Read the complete tutorial here...

http://www.stage.adobe.com/devnet/coldfusion/articles/ddx_pdf.html

 

Monday, September 17, 2007

Simple TOC example

I am posting here a simple Table Of Contents(TOC) example using cfpdf.
 
The DDX File
==========================
<?xml version="1.0" encoding="UTF-8"?>
<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">
      <TableOfContents maxBookmarkLevel="infinite" bookmarkTitle="Table of Contents" includeInTOC="true">
      </TableOfContents>
      <PDF source="Doc1"/>
      <PDF source="Doc2"/>
   </PDF>
</DDX>
 
The CFM File
==========================
<cfset ddxfile = ExpandPath('ddxfiles/toc.ddx')>
<cfset sourcefile1 = ExpandPath('inputfiles/ddx_test1.pdf')>
<cfset sourcefile2 = ExpandPath('inputfiles/ddx_test2.pdf')>
<cfset destinationfile = ExpandPath('results/ddx_result-toc.pdf')>
 
<cfset inputStruct=StructNew()>
<cfset inputStruct.Doc1="#sourcefile1#">
<cfset inputStruct.Doc2="#sourcefile2#">
 
<cfset outputStruct=StructNew()>
<cfset outputStruct.Out1="#destinationfile#">
 
<cfpdf action="processddx" ddxfile="#ddxfile#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar">
 
<cfoutput>#ddxVar.Out1#</cfoutput>

Tuesday, September 11, 2007

CF8 Chf1 and CFMX 7.02 CHF3 are now available

 
The first hotfix for CF8 is out. 
 

CHF8000001 - http://www.adobe.com/go/kb402466

 

 

Also out is the  CFMX 7.02 CHF3

 

CHF7020003 - http://www.adobe.com/go/kb402465

 

 

Check it out...

 

Friday, September 7, 2007

JRun 4 Updater(beta)

Adobe is recruiting CF Customers for the beta program for the new JRun 4 Updater (updater 7).

Sign up here

https://prerelease.adobe.com/callout/default.html?callid=%7b046DAD6A-D2F3-47E5-A745-E1C9F38570DA%7d

This updater has

- hotfixes released since U6

- synchronizes with changes made in JRun for the ColdFusion 8 release.(updates to wsconfig to support 64-bit Solaris)

etc...