Uploaded image for project: 'Lucee Development'
  1. LDEV-852

cfpdfparam source as dynamic variable fails

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 4.5.2.018
    • Fix Version/s: PDF 1.0.0.54, 5.1.1.11
    • Labels:
    • Environment:

      Description

      cfpdfparam source pdf variable is behaving differently in Lucee to ACF.
      Source is defined as http://docs.lucee.org/reference/tags/pdfparam.html

      "
      Source PDF file to merge. You can specify a PDF variable, a cfdocument variable, or the pathname to a file.

      "

      Example below works in ACF

      <cfset x = 1>
      <cfdocument format="pdf" pagetype="A4" name="myVar">
      <cfdocumentsection>
      Hi there
      </cfdocumentsection>
      </cfdocument>
      
      <cfpdf action="merge" destination="RAM:///myPDF.pdf" overwrite="yes">
      <cfpdfparam source="myVar" /> 
      </cfpdf>
      
      <cfcontent file="RAM:///myPDF.pdf" type="application/pdf">
      
      

      The cfpdfparam source is required to be changed to work in Lucee to as follows;

      
      	<cfpdfparam source="#myVar#" />
      
      

      Things get worse if myVar is dynamic like "myVar#x#", then in ACF;

      
      <cfpdfparam source="myVar#x#" /> 
      
      

      yet in Lucee this is required

      
      <cfpdfparam source="#evaluate("myVar#x#")#"" />
      
      

      Ref http://dagrek.blogspot.com.au/2016/05/lucee-cfpdfparam-difference-with-adobe.html

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              lucee99 np99
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: