Skip to main content
Known Participant
March 6, 2009
Question

cfdocument w/columns

  • March 6, 2009
  • 2 replies
  • 1501 views
I have a requirement to generate pdfs that have two columns. I have done so using both div tags (good html) and tables (bad html) and both of the options have the same problem. Both times i have simply generated a page, i'm not currently forcing pagebreaks, it seemed to me like it oughtn't be necessary. Yet.

Sometimes when you reach the bottom of the page and the cfdocument has to break the page, it chooses to do so in the middle of a line in one column or another. (the lines are not currently alingned in the two columns as i've no clue how i'd do that.

Is there a trick or a setting or an element that forces cfdocument to look very closely at where it's breaking or do i need to find some way to align the text in the columns or force pagebreaks?

Thanks for any help.

If you need to see a sample, just email me and ill send you one.
    This topic has been closed for replies.

    2 replies

    Inspiring
    October 14, 2009

    Hi miki,

    The code below should give you an example of how to align data within a

    column. The code below creates an area 600px wide with two columns

    set at 50% each and column content aligned to the left side.

    <div style="clear: both; padding: 15px 0px 0px 0px; width: 600px">
        <!--- Left Column  --->
        <div style="clear: both; float: left; width: 50%" align="left">
            Left content here
        </div>
        <!--- Right Column --->
        <div style="float: left; width: 50%" align="left">
            Right content here
        </div>
    </div>

    As for the page break / content splitting, take a look at the post below.

    Perhaps that will address the situation you are having with the splitting

    up of data.

    http://forums.adobe.com/thread/506421?tstart=0

    Leonard B

    Participant
    October 14, 2009

    Did you ever resolve this issue?  I am also strggling with this one.

    Many thanks....