Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDF 1.0.0.63, 5.2.4.17
    • Labels:
      None
    • Environment:

      Linux OS

    • Sprint:
      July 2017 Sprint, August 2017 Sprint

      Description

      I actually reported this as an issue with railo https://issues.jboss.org/browse/RAILO-3048 but the bug still happens in Lucee, so I am copying it over here. I hope that is OK.

      The documentation states that when using CFPDF with the action="merge" and a directory as source, the files when merged should be in alphabetical order, but they are not. 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">
      

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              scottdoc Scott O'Connell
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: