RE: CFDOCUMENT creating a PDF - ARGH!

2007-12-19 Thread Peterson, Chris
Les,

By specifying a name and a filename I'm not sure what that is doing...
name assigns the resulting PDF file to a variable, and filename writes
it to a file...  do exactly what I had in my example () and write that to a file - still
nothing?

Chris

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 6:55 PM
To: CF-Talk
Subject: Re: CFDOCUMENT creating a PDF - ARGH!

Peterson, Chris wrote:
> Change to:  





Generates a blank page...

Remove the cfdoc tag surrounding everything - perfect.

I've got maybe two or three hairs left. Anybody want to have a go at
them???



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295092
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Les Mizzell
Rob Parkhill wrote:
> Les,
> 
> I am getting the same results with your Divs.  Works fine with no
> cfdocument, and then nothing with... I would look at those divs and work
> them in one by one to find the one that is causing the problem..  Hopefully
> someone will see this and add it as a bug to cfdocument.


I can delete *everything* except the image and it still is giving a 
blank page.

Oh boy

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295081
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Rob Parkhill
Les,

I am getting the same results with your Divs.  Works fine with no
cfdocument, and then nothing with... I would look at those divs and work
them in one by one to find the one that is causing the problem..  Hopefully
someone will see this and add it as a bug to cfdocument.

Rob


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295080
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Les Mizzell
Peterson, Chris wrote:
> Change to:  





Generates a blank page...

Remove the cfdoc tag surrounding everything - perfect.

I've got maybe two or three hairs left. Anybody want to have a go at them???

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295069
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Mike Kear
I have a site where i'm using CFDOCUMENT To create PDFs too.  I find i
get gibberish if i refresh teh page to see what the PDF looks like
after i've tinkered with the code a bit.   But if i refresh a second
time it renders ok.

Any user seeing hte page sees it fine because they're not refreshing
the page with some changes.

I'm not sure it's anything you can eiher control or need to worry
about.  I fretted about it a lot on my site before i realised that it
doesnt really happen in a real world situation.

Not sure if that helps you.   does it?


Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month





On 12/19/07, Les Mizzell <[EMAIL PROTECTED]> wrote:
> If I change the tag to:
>
>  mimetype="text/html"
> name="myFILE">
>
>
> I get a blank page with nothing...
>
>

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295026
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Les Mizzell
If I change the tag to:




I get a blank page with nothing...

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295025
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Brad Wood
Sorry, I haven't been keeping up with this entire thread, but I noticed
your post below.  Beware that IE (at least) will cache the mime type on
successive refreshes of a page.  If it gets a pdf one time, it expects
it the next time as well etc...

~Brad

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 10:34 AM
To: CF-Talk
Subject: Re: CFDOCUMENT creating a PDF - ARGH!

OK, so I'm trying it like this now:

If I remove the CFDOCUMENT tag, the file renders exactly the way I want.
   Put it back in, I get a page of gibberish.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295024
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Peterson, Chris
Change to:  


Then try to open it.  Also, ensure you have the PDF reader installed as
a plugin, or you will get gibberish as well =)

Chris
-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 11:34 AM
To: CF-Talk
Subject: Re: CFDOCUMENT creating a PDF - ARGH!

OK, so I'm trying it like this now:

If I remove the CFDOCUMENT tag, the file renders exactly the way I want.
   Put it back in, I get a page of gibberish.


-- START TEMPLATE -

- - - QUERIES HERE  - - -



http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document


<!--
CSS HERE
-->








http://www.MYSITE.com/imgPDF/pdfHEADER.gif"; width="544"
height="200" />



MY OUTPUT STUFF HERE...












~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295023
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Tom Chiverton
On Tuesday 18 Dec 2007, Les Mizzell wrote:
> If I remove the CFDOCUMENT tag, the file renders exactly the way I want.
>   Put it back in, I get a page of gibberish.

I suggest setting the correct content-type before sending it then.

-- 
Tom Chiverton
Helping to ambassadorially reinvent prospective CEOs
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
& the New Year


This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295019
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Les Mizzell
OK, so I'm trying it like this now:

If I remove the CFDOCUMENT tag, the file renders exactly the way I want.
   Put it back in, I get a page of gibberish.


-- START TEMPLATE -

- - - QUERIES HERE  - - -



http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document











http://www.MYSITE.com/imgPDF/pdfHEADER.gif"; width="544"
height="200" />



MY OUTPUT STUFF HERE...










~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295021
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Rob Parkhill
Les,

You need a filename, otherwise it outputs to the page.

Rob

On Dec 18, 2007 11:13 AM, Les Mizzell <[EMAIL PROTECTED]> wrote:

> Jim Wright wrote:
> >> 
> >>
> >> 
>
> OK, so I'm trying it like this now:
>
> If I remove the CFDOCUMENT tag, the file renders exactly the way I want.
>  Put it back in, I get a page of gibberish.
>
>
>   datasource="#datasource#"
> username="#username#"
> password="#password#">
>  Select *
>  FROM tmbCOLLECTIONS
>  WHERE collection_id = '#url.pdfID#'
> 
>
> 
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> Untitled Document
>
> 
> 
> 
>
> 
>
> 
>
> 
>
>  src="http://www.MYSITE.com/imgPDF/pdfHEADER.gif"
> width="544"
> height="200" />
>
> 
> 
> 
> Pending
>  #makePDF.dsp_name#
>  #makePDF.dsp_amount# #makePDF.dsp_millthou#
>  #makePDF.deal_type#
>  #makePDF.dsp_industry#
>  
>  makePDF.showMONTH EQ "n">#dateformat(makePDF.dsp_closedate,
> '')#
>  "y">#dateformat(makePDF.dsp_closedate, ' ')#
>  "y">#dateformat(makePDF.dsp_closedate, ' dd, ')#
> 
> 
> 
> 
>
> 
> 
>
> 
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Les Mizzell
Jim Wright wrote:
>> 
>>
>> 

OK, so I'm trying it like this now:

If I remove the CFDOCUMENT tag, the file renders exactly the way I want. 
  Put it back in, I get a page of gibberish.


 
  Select *
  FROM tmbCOLLECTIONS
  WHERE collection_id = '#url.pdfID#'




http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document











http://www.MYSITE.com/imgPDF/pdfHEADER.gif"; width="544" 
height="200" />




Pending
  #makePDF.dsp_name#
  #makePDF.dsp_amount# #makePDF.dsp_millthou#
  #makePDF.deal_type#
  #makePDF.dsp_industry#
  
#dateformat(makePDF.dsp_closedate, '')#
#dateformat(makePDF.dsp_closedate, ' ')#
#dateformat(makePDF.dsp_closedate, ' dd, ')#










~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295014
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Peterson, Chris
I will 2nd that one, never had luck with paths to css files, I just

Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Jim Wright
> 
>
> 

Try an absolute path to your css file.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295008
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Ben Doom
I found I got better results with CSS by cfinluding the file into a 
style block, instead of doing what you did.

HTH.

--Ben Doom

Les Mizzell wrote:
> I'm trying to use CFDOCUMENT (CF 7 with updates) to create PDF files for 
> a client.
> 
> If I remove the CFDOCUMENT tags surrounding my code, the page renders 
> fine. Put the CFDOCUMENT back in and the page falls apart - CSS is ignored.
> 
> So, I've got something wrong somewhere. Is the basic format for creating 
> a PDF page below correct? Is the problem the way the CSS file is 
> referenced? How else should I try to do that?
> 
> --- START OF TEMPLATE 
> 
> - QUERIES HERE-
> 
>   mimetype="text/html" >
> 
> http://www.w3.org/1999/xhtml";>
> 
>
> 
> 
> 
> 
> - OUTPUT BLOCK - STANDARD CFOUTPUT AND STUFF -
> 
> 
> 
> 
> 
> 
> 
> -- END OF TEMPLATE -
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295007
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Rob Parkhill
Les,

Put the CSS include inside of the CFDOCUMENT tags, and then it will
reference the CSS.

Rob

On Dec 18, 2007 10:39 AM, Les Mizzell <[EMAIL PROTECTED]> wrote:

> I'm trying to use CFDOCUMENT (CF 7 with updates) to create PDF files for
> a client.
>
> If I remove the CFDOCUMENT tags surrounding my code, the page renders
> fine. Put the CFDOCUMENT back in and the page falls apart - CSS is
> ignored.
>
> So, I've got something wrong somewhere. Is the basic format for creating
> a PDF page below correct? Is the problem the way the CSS file is
> referenced? How else should I try to do that?
>
> --- START OF TEMPLATE 
>
> - QUERIES HERE-
>
>  mimetype="text/html" >
>
> http://www.w3.org/1999/xhtml";>
> 
>   
> 
>
> 
>
> - OUTPUT BLOCK - STANDARD CFOUTPUT AND STUFF -
>
> 
> 
>
> 
>
>
> -- END OF TEMPLATE -
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295005
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Todd
Put the actual css within  tags on the actual page.

On Dec 18, 2007 10:39 AM, Les Mizzell <[EMAIL PROTECTED]> wrote:

> I'm trying to use CFDOCUMENT (CF 7 with updates) to create PDF files for
> a client.
>
> If I remove the CFDOCUMENT tags surrounding my code, the page renders
> fine. Put the CFDOCUMENT back in and the page falls apart - CSS is
> ignored.
>
> So, I've got something wrong somewhere. Is the basic format for creating
> a PDF page below correct? Is the problem the way the CSS file is
> referenced? How else should I try to do that?
>
> --- START OF TEMPLATE 
>
> - QUERIES HERE-
>
>  mimetype="text/html" >
>
> http://www.w3.org/1999/xhtml";>
> 
>   
> 
>
> 
>
> - OUTPUT BLOCK - STANDARD CFOUTPUT AND STUFF -
>
> 
> 
>
> 
>


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295003
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFDOCUMENT creating a PDF - ARGH!

2007-12-18 Thread Andy Matthews
Are you using overflow: auto in your CSS anywhere? Rupesh Kumar found some
bugs in cfdocument when overflow was set to auto:

http://coldfused.blogspot.com/search/label/cfdocument

http://coldfused.blogspot.com/2007/12/missing-text-in-pdf-created-by.html

http://coldfused.blogspot.com/2007/12/images-and-cfdocument-performance.html

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 9:39 AM
To: CF-Talk
Subject: CFDOCUMENT creating a PDF - ARGH!

I'm trying to use CFDOCUMENT (CF 7 with updates) to create PDF files for a
client.

If I remove the CFDOCUMENT tags surrounding my code, the page renders fine.
Put the CFDOCUMENT back in and the page falls apart - CSS is ignored.

So, I've got something wrong somewhere. Is the basic format for creating a
PDF page below correct? Is the problem the way the CSS file is referenced?
How else should I try to do that?

--- START OF TEMPLATE 

- QUERIES HERE-



http://www.w3.org/1999/xhtml";>





- OUTPUT BLOCK - STANDARD CFOUTPUT AND STUFF -







-- END OF TEMPLATE -



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295002
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4