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 / October 2007



Tip: Looking for answers? Try searching our database.

question about cfdocument when using a header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aredovian - 19 Sep 2007 14:44 GMT
When using cfdocument and cfdocumentitem type header, there is about and inch
of white space between the header and the body.  If I make the topmargin
smaller the header is scaled to fit and still leaves the inch of white space.  
I've tried many different padding and margin attributes for the body and tables
but it doesn't change the space between the header and the body.

Does anyone know how to remove the white space?  

Thanks in advance for any help!
GArlington - 19 Sep 2007 16:21 GMT
> When using cfdocument and cfdocumentitem type header, there is about and inch
> of white space between the header and the body.  If I make the topmargin
[quoted text clipped - 5 lines]
>
>  Thanks in advance for any help!

<cfsilent>around your not outputting</cfsilent>
<cfsetting enablecfoutputonly="true" />
rupesh_kumar - 20 Sep 2007 06:55 GMT
can you post your example code?
aredovian - 20 Sep 2007 15:17 GMT
Rupesh, thank you for your response.  I have included a very simple example.

Also, here is some information about my server...
Windows 2000 Server
ColdFusion 7.0.2.142559 Standard

<cfdocument format="pdf" orientation="landscape" marginbottom=".6"
margintop="1" marginleft=".5" marginright=".5">
<cfdocumentitem type="header">
    <table width="100%" cellspacing="0" cellpadding="0" border="0"
style="border-bottom:2px solid black">
    <tr><td style="font-size:18pt" width="100%">This is the header.  I would like
the body to begin right below this without white space.</td></tr>
    </table>
</cfdocumentitem>
<body style="padding: 0px;margin-top: 0px;">
<table width="100%" cellspacing="0" cellpadding="0" border="0"
style="border-top:2px solid black">
<tr><td style="font-size:12px">This is the body. It should be right below the
header without any whitespace. If I adjust the margin top to less than 1 inch
the header is scaled and the white space remains.</td></tr>
</table>
</body>
</cfdocument>
cepsJane - 15 Oct 2007 18:37 GMT
Hi aredivian,

I am experiencing the same problem as yours. There is always about an inch of
white space between the header and the body. Have you found out the solution
for this? Would you please share? Thanks a lot.
aredovian - 15 Oct 2007 18:56 GMT
Hey cepsJane, unfortunately, I have not found a solution to the problem.  
Apparently these forums are pretty useless if you have a question that would
require someone from Adobe to contribute.  Not just blaming Adobe since this
has been a problem with ColdFusion forever.

It's unfortunate that creating a PDF from ColdFusion has never been a complete
feature in any version of 7.  Doesn't give me much confidence for CF 8.  

Which version of ColdFusion are you using?
ToBeNamedLater - 15 Oct 2007 19:57 GMT
I've never been able to use anything but <P> in a header or footer. Everything
else messes up in some way. Haven't tried anything but <p> in cf8, but I've got
another big CF8 CFDocument problem to contend with first.
cepsJane - 15 Oct 2007 20:53 GMT
I am using CF8.  aredovian, do you want me run your sample code under CF 8 to see if it will give the result you want?
aredovian - 15 Oct 2007 21:46 GMT
cepsJane, I am guessing it's going to still have the white space between the
header and body...sounds like you are having the exact same issue and are
already using CF 8.

I tried just using the <p> tage like ToBeNamedLater suggested but still had
the white space.  I think it's programmed in to the cfdocument tag by mistake.  
It would be nice to get some confirmation from Adobe even if it is a bug so we
don't waste anymore time trying to find a solution.

I also wish that the cf developers would include us in the troubleshooting
process of first generation features.  We have now gone through a few hotfixes
and a whole new version of CF and it STILL doesn't work right.
Azadi - 18 Oct 2007 12:36 GMT
> Apparently these forums are pretty useless if you have a question that would
> require someone from Adobe to contribute.  

these are not Adobe support forums, fyi.
these are peer-to-peer discussion forums, which some of Adobe staff do
visit sometimes.
but Adobe does not monitor these forums for support requests/bugs or
anything like that.

if you believe you have found a bug - submit it through appropriate
channels.
if you need support from Adobe - contact their support directly.

> Doesn't give me much confidence for CF 8.  

you know, it's not like you have to buy it to try it...

Signature

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

aredovian - 18 Oct 2007 16:51 GMT
[Q]these are not Adobe support forums, fyi.
these are peer-to-peer discussion forums, which some of Adobe staff do
visit sometimes.
but Adobe does not monitor these forums for support requests/bugs or
anything like that.
[Q]

I believe that is exactly what I said....they are useless if you need someone
from Adobe to contribute.

I am not saying they have to answer every problem on here.  However, I do
expect them to have a free method of communication for bugs and undocumented
issues.  I am not asking a programming question, I am asking for clearification
on a tag that has almost zero documentation.  I don't think it is unreasonable
for me to have expected some help from Adobe considering...
1. I am on the support section for ColdFusion on Adobe's website.
2. I have already had a response from someone at Adobe to post sample code.
3. I posted the sample code for review.
4. Others are having the same problem.

If we are wrong about this, then a simple post that says there is a solution
to your problem if you just read the documentation which can be found here or
by contacting support and paying the support fee.

[Q]you know, it's not like you have to buy it to try it...
[Q]

no but time is money.  I was burnt on the upgrade to 7 and from just reading
these posts I see there are still many problems with this tag on version 8.  

I love ColdFusion but I hate the methods of communication between it's
developers and it's users.
rupesh_kumar - 30 Oct 2007 07:55 GMT
Hi Aredovian,
Its a bug in header/footer scaling which many people have reported. It has been fixed and hotfix for this should be release very soon. Stay tuned.

Thanks & Regards,
Rupesh
aredovian - 30 Oct 2007 14:25 GMT
Thank you Rupesh.  I do appreciate the time you spend on here.
 
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.