Skip to main content
Participant
April 14, 2008
Question

cfdocument color problems

  • April 14, 2008
  • 1 reply
  • 379 views
We created an application that generates several pdfs using one CFM file. We accomplished this using a loop in which a cfdocument tag is called to create the pdfs.

However, background colors only appear in the first PDF, not in subsequent ones.

Attached is a code snippet. The background color has been defined in multiple places for redundancy sake. If you run this, you should see that the background colors only appear in the first file, not in the second and third. Any suggestions? (We're running CF 8.)
    This topic has been closed for replies.

    1 reply

    Sankaram
    Adobe Employee
    Adobe Employee
    April 15, 2008
    I could reproduce the issue.Logged a bug.

    Thnx
    Sankaram.
    vadnickAuthor
    Participant
    April 15, 2008
    Thanks Sankaram. We discovered a work-around that will serve until a fix can be made. If you put the cfdocument code into a CFC and call the CFC in a loop in a separate file, all of the PDFs generate correctly.
    April 15, 2008
    Could you store the bgcolors in a table and then query them + cfoutput them inside your loop?