Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6387441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:09:09+00:00 2026-05-25T03:09:09+00:00

If I use the following code in my component: <cfpdf action=merge name=tender> </cfpdf> I

  • 0

If I use the following code in my component:

<cfpdf action="merge" name="tender">
</cfpdf>

I get the following error:

Closing tag ” does not match the current parent item:
‘cffunction’

However, if i change the code to:

<cfpdf action="merge" name="tender" />

I get no errors. Note that the only way I changed my code is the way I close the tag. Can anybody explain to me why that is and even better, tell me how to get around this?

The error is shown in CFEclipse in the “problems” view, but does not occur when I run the code on the server.

System setup:
Win7, running Eclipse Indigo with CFEclipse v.1.4.3. Server runs Coldfusion 8.

Update 1:

If I simply ignore the parse error that CFEclipse shows and run the code on the server, it works as expected. I guess this suggest that it is indeed something with CFEclipse itself like Peter Boughton suggested, and not a problem in the code itself.

Just in case, here is the complete code for the function (note that this is not production code, I’m currently just testing in order to get the things I need working):

<cffunction name="GetTenderPDF" access="remote">
        <cfargument name="Info" type="String" required="true" />

        <cfset var Tender = {} />
        <cfset var InfoJson = URLDecode(Arguments.Info) />

        <cfif Not IsJSON(InfoJson)>
            <cfreturn Error(Messages.NOT_JSON) />
        </cfif>

        <cfset Tender = DeserializeJSON(InfoJson) />
        <cfset templatePath = "templates/tenderTemplate_"&Tender.GROUP&".cfm" />

        <cfheader name="Content-Disposition" value="attachment; filename=offert.pdf" />

        <cfdocument format="pdf" name="mydocument">

        <cfloop index="x" from="1" to="15">
              <p>
              lorem upsom doloras paris hilton is my hero loreum ipsom dsoio foom an to dht end of the world
              will anyone actually read this probably not but let me put more realtext in so it flows a bit nicely
                  <cfloop index="y" from="1" to="#randRange(1,9)#">This sentence will appear a random amount of time.</cfloop>
              </p>
            </cfloop>

        </cfdocument>
        <cfdocument format="pdf" name="base">
            <cfinclude template="#templatePath#" />
        </cfdocument>

        <!--- <cfpdf action="merge" name="tender" /> --->
        <cfpdf action="merge" name="tender">
            <cfpdfparam source="base" />
            <cfpdfparam source="mydocument" />
        </cfpdf>

        <cfcontent type="application/pdf" reset="true" variable="#toBinary(tender)#" /> 

    </cffunction>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:09:10+00:00Added an answer on May 25, 2026 at 3:09 am

    This sounds like a bug in the CFEclipse dictionary files.

    If you can confirm that the first code actually runs on CF8 then you can report it as a CFE bug, and someone can probably help you out with a fix.

    To fix it yourself…

    1. Locate your eclipse plugins directory (e.g. /usr/lib/eclipse/plugins or c:/program files/eclipse/plugins or wherever).

    2. Inside your plugin dir look for the org.cfeclipse.cfml directory (it probably has a timestamp after the name, which depends on your version, but there should be only one*), and inside that there is a dictionary folder, containing a bunch of XML files.
      (*if there’s multiple versions, go for the newest one – i.e. the highest number.)

    3. You want either cf8.xml or cf9.xml – depending on which one you have your project configured for (to check, in CFE navigator, right-click on project, select properties, then cfeclipse, and see what radio option is selected) – first create a backup of the file, then open it with any text/xml editor.

    4. Search for name="cfpdf" – there should be a single occurrence – and in the same tag you should see the attribute single="true" – change this to single="false" and save the file.

    5. Restart CFEclipse, and – if I haven’t screwed up these instructions – then the error message should have gone away. 🙂

    I haven’t tested any of this (don’t have CFE on this machine yet), but so long as you backup the dictionary file before editing there shouldn’t be any problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use the following code, which I have not been able
I use the following code to create countdowns in Javascript. n is the number
If I use the following code I lose the ability to right click on
With wxWidgets I use the following code: HWND main_window = ... ... wxWindow *w
I'm trying to use the following code but it's returning the wrong day of
I am trying to use the following code to write data into an excel
I'm attempting to use the following code to serialize an anonymous type to JSON:
I am trying to use the following code to export tables from access to
In a .NET 2.0 C# application I use the following code to detect the
In my app I've got certain buttons which use the following code: SystemSoundID beep;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.