Skip to main content
Inspiring
August 24, 2012
Question

PDF Generation CSS flaws

  • August 24, 2012
  • 1 reply
  • 666 views

When we try to generate a PDF of our existing application pages, they are not rendered the same way as a browser would, it appears that the CSS styles are not processed in a totally compatible manner.

Is there any possible fix for this and/or documentation on current limitations?

We currently use CF 9

    This topic has been closed for replies.

    1 reply

    Miguel-F
    Inspiring
    August 24, 2012

    What are you using to generate the PDF?  There are many options out there.

    If you are using cfdocument then check the ColdFusion documentation for it here (notice the section about Supported CSS styles about half-way down)  http://http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c21.html

    From that page:

    The cfdocument tag can render HTML that supports the following standards:

    • HTML 4.01
    • XML 1.0
    • DOM Level 1 and 2
    • CSS1 and CSS2 (For more information, see the “Supported CSS styles” section).

    The cfdocument tag does not support the Internet Explorer-specific HTML generated by Microsoft Word.

    If you are using some other product, then check it's documentation for limitations.