Skip to main content
Known Participant
November 3, 2009
Question

CFPDF DDX Header PageMargins

  • November 3, 2009
  • 1 reply
  • 850 views

Hi,

Does anyone know why ColdFusion does not suppoert neither PageMargins nor Background-color for headers?

I am building a function to murge a bunch of PDF documents.  I need to add a header with some info to each page to identify who the document belongs to, but it's not lettimg me specify PageMargins or background-color for the header.

I think those are very important to have added to the CF DDX for CFPDF creation/merging.  Anyone know how to get around that?  I'd like my headers to show up higher in the page.

Thanks,

-Roman

    This topic has been closed for replies.

    1 reply

    Inspiring
    November 3, 2009

    Does anyone know why ColdFusion does not suppoert neither

    PageMargins nor Background-color for headers?

    Are you seeing a message that says this is not supported or does your code just not work?

    Known Participant
    November 3, 2009

    On this help page: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7995.html

    PageMargins is listed as Restricted DDX elements (as in Excluded by ColdFusion).

    So if I try to add it, I get the DDX Parse Error.

    Addind background-color in header also breaks DDX parsing, I was only able to get whiteout="true" to work, which adds a white background, but would be nice to be able to use light gray to make it stand out.

    Thanks,

    -Roman

    Inspiring
    November 3, 2009

    It sounds like you have tried all of the right options.

    For better or worse, the cfpdf ddx options are limited. Obviously for licensing reasons. If you want access to those features you have to buy LiveCycle. The other alternative is to use iText. It would definitely work, but it is not as simple as ddx and requires createObject("java") access.