Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.2.005
    • Fix Version/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      I have the cfdocument extension installed, but I don't believe that this is part of the bug. You could also reproduce by using pre-existing pdfs.

      <cfset dir = GetTempdirectory() & CreateUUID() & "/">
      <cfdirectory action='create' directory='#dir#'>
      <cfset names = [ "Apple", "Carrot", "Banana", "Dog", "Fish", "Zebra", "Horse", "Test" ]>
      <cfloop from="1" to="#arrayLen(names)#" index="i" >
      	<cfdocument filename="#dir##names[i]#.pdf" format="pdf">
      		<cfoutput>#names[i]#</cfoutput>
      	</cfdocument>
      </cfloop>
      
      <cfpdf action='merge' directory="#dir#" destination='#GetTempdirectory()#/result.pdf' order="name" overwrite="yes">
      <cfheader name="Content-Disposition" value="attachment; filename=result.pdf">
      <cfcontent type="application/pdf" file="#GetTempdirectory()#/result.pdf" reset="true">
      
      Show
      I have the cfdocument extension installed, but I don't believe that this is part of the bug. You could also reproduce by using pre-existing pdfs. <cfset dir = GetTempdirectory() & CreateUUID() & "/" > <cfdirectory action= 'create' directory= '#dir#' > <cfset names = [ "Apple" , "Carrot" , "Banana" , "Dog" , "Fish" , "Zebra" , "Horse" , "Test" ]> <cfloop from= "1" to= "#arrayLen(names)#" index= "i" > <cfdocument filename= "#dir##names[i]#.pdf" format= "pdf" > <cfoutput> #names[i]# </cfoutput> </cfdocument> </cfloop> <cfpdf action= 'merge' directory= "#dir#" destination= '#GetTempdirectory()#/result.pdf' order= "name" overwrite= "yes" > <cfheader name= "Content-Disposition" value= "attachment; filename=result.pdf" > <cfcontent type= "application/pdf" file= "#GetTempdirectory()#/result.pdf" reset= "true" >
    • Workaround Description:
      Hide

      none

      Show
      none

      Description

      When using action="merge" and order="name" on the cfpdf tag the files are not merged correctly in filename order.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                scottdoc Scott O'Connell
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: