Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / March 2008



Tip: Looking for answers? Try searching our database.

CFDOCUMENT cut off last and first line in pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ad96004 - 11 Jun 2006 08:56 GMT
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,
ad96004 - 11 Jun 2006 09:44 GMT
Hello,
I am suffering for this probelm, please give me comment if nay.
thanks,
tinu8805 - 19 Jun 2006 22:44 GMT
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
want-a-be - 23 Jun 2006 18:05 GMT
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 are going to sign off on this.  
Has anyone actually found a work around by using any and all of the different
parameters.  HELP.
want-a-be - 26 Jun 2006 17:10 GMT
Is the Text Cut off still a known problem for Adobe?:sad;
want-a-be - 27 Jun 2006 20:14 GMT
I got an email back from Adobe support saying that it is still a know problem,
but their web site says it is fixed.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=aae43964  The email
said it won't be fixed until the next full release of CF.
caldjeff - 13 Jul 2006 23:52 GMT
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??
want-a-be - 18 Jul 2006 15:28 GMT
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.
Dwight - 20 Jul 2006 13:47 GMT
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
ej_ist - 08 Aug 2006 15:45 GMT
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
want-a-be - 09 Aug 2006 14:19 GMT
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!
ksmith - 09 Aug 2006 21:56 GMT
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
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=ea53f6ec.  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
http://www.adobe.com/go/29bc785.  It applies further fixes to cfdocument then
were released with 7.02.
want-a-be - 09 Aug 2006 22:03 GMT
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.
rgurganus - 26 Mar 2008 15:56 GMT
This is still (or again) a problem.:frown;  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?
want-a-be - 26 Mar 2008 16:34 GMT
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
ej_ist - 10 Aug 2006 11:53 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.