18 Replies Latest reply on Mar 26, 2008 8:34 AM by BJ - CF

    CFDOCUMENT cut off last and first line in pages

    ad96004
      Hello, every:

      I am using CFDOCUMENT tag to create pdf file. This is some simple text line and images(eg. width=58 height=58). All go well,
      but the last line and first line is half cutoff. The line is half show in pages.
      I download bugfix [hf701-60212.zip], but have same probelm.

      please tell me how to set page layout?
      I use windows XP. the text is shown in <PRE> tag format , images <IMG SRC="****" width=58 height=58>.

      regards,
        • 1. Re: CFDOCUMENT cut off last and first line in pages
          ad96004 Level 1
          Hello,
          I am suffering for this probelm, please give me comment if nay.
          thanks,
          • 2. Re: CFDOCUMENT cut off last and first line in pages
            tinu8805 Level 1
            I don't know a solution right away .. but be creative: use other html tags to force the height: a table which contains the image could probably help, a <div style="height:..."> could probably help ...

            good luck

            martin
            • 3. CFDOCUMENT cut off last and first line in pages
              BJ - CF Level 1
              Does Macromedia/Adobe know that the hot fix didn't fix the problem with the text being cut off. I've adjusted the margins, I've used the scale. It cuts the line into two and prints the top half on the one page and the bottom half on the next page. I have a lot of projects where I would like to use this but if these lines are not readable then the users aren't going to sign off on this. Has anyone actually found a work around by using any and all of the different parameters. HELP.
              • 4. Re: CFDOCUMENT cut off last and first line in pages
                BJ - CF Level 1
                Is the Text Cut off still a known problem for Adobe?
                • 5. Re: CFDOCUMENT cut off last and first line in pages
                  BJ - CF Level 1
                  I got an email back from Adobe support saying that it is still a know problem, but their web site says it is fixed. bug fixes The email said it won't be fixed until the next full release of CF.
                  • 6. Re: CFDOCUMENT cut off last and first line in pages
                    caldjeff
                    I can't believe this hasn't been a big deal for more people. Must not be many using cfdocument with tables. This is a complete showstopper and really frustrating since the pdf support was one of the major reasons we upgraded to MX. Can anybody from Adobe comment on the status of this bug since it has already been listed as fixed and clearly is not??
                    • 7. Re: CFDOCUMENT cut off last and first line in pages
                      BJ - CF Level 1
                      I installed the new 7.0.2 release and Adobe said that it should have the fixes to the cfdocument text being cut off. Well it didn't. I then coughed up the money to work with a tech. They did recreate the problem I was having and let me know it was a bug in cfdocument. I'm not sure what they are going to do yet, but at least I know they know about the bug and are going to work on it.
                      • 8. Re: CFDOCUMENT cut off last and first line in pages
                        Dwight Level 1
                        Thanks for the post want-a-be. I am running into the same issue and I do not think I have time to wait for the patch (if there will ever be one). If you hear that there is a fix for this problem please post it back to this thread.

                        It would be nice if CFDocument had a setting where you could force a table to the next page if it was not completely in the printed area. There may be a lot of white space, but if we had sections separated out by tables the entire section will be on one page instead of split across two pages (for example a signature block). Maybe something like this already exists, is there a way to group content so that all of it will be on the same page?

                        Thanks
                        Dwight
                        • 9. Re: CFDOCUMENT cut off last and first line in pages
                          amy_jo Level 1
                          I found you can wrap your table in <cfdocumentsection> to fix the problem of loosing text in the middle of a <tr> Not the perfect solution, but it works.
                          • 10. Re: CFDOCUMENT cut off last and first line in pages
                            BJ - CF Level 1
                            I'll try that and see. I did hear from adobe that they are working on it and should have a hotfix for it soon.
                            • 11. Re: CFDOCUMENT cut off last and first line in pages
                              BJ - CF Level 1
                              Adobe issued a new hot fix that corrected the problem I was having with the data being cut off. hf702_62335
                              • 12. Re: CFDOCUMENT cut off last and first line in pages
                                ej_ist
                                I can still cut off text, even after hf702_62335 - here is a basic example:

                                <cfdocument format="pdf" orientation="portrait">
                                <cfdocumentsection margintop="1" marginbottom="1" marginleft=".5" marginright=".5">
                                <cfoutput>
                                <cfdocumentitem type="header">
                                <table width="100%">
                                <tr>
                                <td align="center">
                                Test Document Title<br>
                                Test Document Subtitle<br>
                                Here's more data in the header<br>
                                And more data in the header<br>
                                I'm trying to show that dynamic header<br>
                                content can cause the "cut off" issue too.
                                </td>
                                </tr>
                                </table>
                                </cfdocumentitem>
                                <cfdocumentitem type="footer">
                                <table width="100%">
                                <tr>
                                <td>#DateFormat(Now(),"dddd, mmmm dd, yyyy")#</td>
                                <td align="right">Page #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#</td>
                                </tr>
                                </table>
                                </cfdocumentitem>
                                <table width="100%">
                                <cfloop from="1" to="25" index="tr">
                                <tr>
                                <td>This is just some data to try and cut off.</td>
                                </tr>
                                </cfloop>
                                </table>
                                </cfoutput>
                                </cfdocumentsection>
                                </cfdocument>

                                It doesn't matter if I use <cfdocumentsection> or not.

                                Sure, I can adjust the margins to fix this, but what if I want to dynamically control header content? I would rather not have to try and manage "margin thresholds."

                                -EJ

                                • 13. Re: CFDOCUMENT cut off last and first line in pages
                                  BJ - CF Level 1
                                  I ran your code and see the problem. I tried it in flashpaper also with same problem. My advice would be to open a tech bug ticket. It will cost you up front, but they will refund it when they find it is a bug. Once open, I sent them my code and data and they recreated it and then worked on the fix. They came up with the fix pretty quickly after that.

                                  Good Luck!
                                  • 14. Re: CFDOCUMENT cut off last and first line in pages
                                    ksmith Level 1
                                    There are several hotfixes to resolve this issue. The newest hotfixes have just been released in the past several days. If you are running cfmx7.01 you should apply the hotfix in this technote. This hotfix should be used even if you have applied cumulative hotfix 2 for 7.01 or you have applied the individual hotfix (hf701-60212.jar) previous to 8/4/2006.

                                    If you are using 7.02 you should apply the hotfix from this technote. It applies further fixes to cfdocument then were released with 7.02.
                                    • 15. Re: CFDOCUMENT cut off last and first line in pages
                                      BJ - CF Level 1
                                      Ken, we are on 7.02 and I applied the hot fix that was just release since I'm the user the call in about the problem I was having. I ran the code that he posted with all the latest upgrades and hot fixes and the output cuts off the text on his sample when the header is very long.
                                      • 16. Re: CFDOCUMENT cut off last and first line in pages
                                        ej_ist Level 1
                                        Yes, I concur with want-a-be - we are running 7.02 (Standard) with the hot fix from 8/4 and still have the problem. I'm not sure why the margin settings should even affect the content beneath the header - it seems like, if anything, they should push the document header and all adjacent content down.

                                        -EJ
                                        • 17. Re: CFDOCUMENT cut off last and first line in pages
                                          rgurganus Level 1
                                          This is still (or again) a problem. I'm running 8,0,0,176276 with cumulative hotfix 3 applied, rebooted, and I still get the top half of a line of text at the bottom of one page, and the bottom half of the same line of text at the top of the next page. This issue is one of the reasons this server was upgraded from CF7 to CF8, in hopes that Adobe would have these issues resolved in the new release.

                                          Is there another hotfix that needs to be applied? Is there a coding workaround I can do to avoid this?
                                          • 18. Re: CFDOCUMENT cut off last and first line in pages
                                            BJ - CF Level 1
                                            Just this past month, I had to pay to open another bug fix for the cfdocument. Again, I sent them the code that produced the bug so that they could recreate it on their system. When I first approached them with the bug they said it was me but after I sent them everything and they could reproduce it then they started to work on it. The CF8 version without any hot fixes seemed fine for cfdocument when I installed it back in September. I needed to update CF8 with the hot fixes for other thins and those hotfixes I think cause the problem. Anyway one of the problems was the text getting cut off from the bottom of one page to the top of the next. Not as bad as the CF7 version. But I also had problems with the text overlaying the right and left margins. Working with adobe on this bug they had me re-install the hot fix and my problems were solved. I'm on CF 8.0.0.176276. Two things you can try: one uninstall all the hot fixes and go back to the original CF8 and see if the problem is still happening. Two open up a ticket so they work on it now. You may like me have to pay for it up front but once they see it is a bug they give the money back. You just have to be able to have them recreate it.

                                            Good Luck,

                                            BJ