Tuesday, July 31, 2007
Wednesday, July 25, 2007
Now Adobe.com on CF8
I am happy to share that Adobe.com now runs on ColdFusion 8 Enterprise.
Posted by Ahamad on Wednesday, July 25, 2007 8 comments
Tuesday, July 24, 2007
Adobe User Group To Host ColdFusion 8 Launch Event.
The Adobe User Group is hosting an official ColdFusion 8 launch event on July 31, 2007 in Washington, DC.
In case you were wondering, the official ColdFusion 8 release date is not July 31st, 2007.
Posted by Ahamad on Tuesday, July 24, 2007 0 comments
Thursday, July 5, 2007
Split a pdf file into multiple pdf docs
Hi,
Now suppose, you need to split a huge pdf file into multiple pdf docs.
Here is how you can acheive this using ddx.
===============================
===============================
<cfset sourcefile1 = ExpandPath('test.pdf')>
<cfset inputStruct=StructNew()>
<cfset inputStruct.Doc1="#sourcefile1#">
<cfset inputStruct.Doc1="#sourcefile1#">
<cfpdf action="getinfo" source="#sourcefile1#" name="fullPdf">
<cfoutput>TotalPages is #fullPdf.TotalPages#</cfoutput><br>
<cfoutput>TotalPages is #fullPdf.TotalPages#</cfoutput><br>
<cfset totalpages = "#fullPdf.TotalPages#">
<cfset outputStruct=StructNew()>
<cfloop index="i" from="1" to="#totalpages#">
<cfset fileStr = 'test_part' & '#i#' & '.pdf'>
<cfset "destinationfile#i#" = ExpandPath('#fileStr#')>
<cfset "outputStruct.OUT#i#" = "#Evaluate('destinationfile#i#')#">
</cfloop>
<cfset fileStr = 'test_part' & '#i#' & '.pdf'>
<cfset "destinationfile#i#" = ExpandPath('#fileStr#')>
<cfset "outputStruct.OUT#i#" = "#Evaluate('destinationfile#i#')#">
</cfloop>
<cfset ddx_part1 = '<?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">'>
<cfset ddx_part2 = "">
<cfloop index="i" from="1" to="#totalpages#">
<cfset ddx_part2 = ddx_part2 & '<PDF result="Out#i#"><PDF source="Doc1" pages="#i#"/></PDF>'>
</cfloop>
<cfset ddx_part2 = ddx_part2 & '<PDF result="Out#i#"><PDF source="Doc1" pages="#i#"/></PDF>'>
</cfloop>
<cfset ddx_part3 = '</DDX>'>
<cfset myVar = ddx_part1 & ddx_part2 & ddx_part3>
<cfpdf action="processddx" ddxfile="#myVar#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar">
<cfoutput>#ddxVar.Out1#</cfoutput>
<br><br>
===============================
<br><br>
===============================
Posted by Ahamad on Thursday, July 05, 2007 6 comments
Subscribe to:
Posts (Atom)