Re: cfdocument text cuts off at page break

2010-10-17 Thread denstar

On Fri, Oct 15, 2010 at 4:39 AM, James Holmes wrote:
>
> I'll +1 flying saucer. I've just implemented it using JavaLoader (the
> iText version required clashes with that on CF8) and it works well
> (better than cfdocument).

For some reason I didn't think about this until now, but I'm
relatively sure that there is a patch on the Flying Saucer site that
made it work at least with Railo's built in iText version, perhaps
CF's as well.

I'm pretty sure that these jars:

http://subversion.assembla.com/svn/cfmlprojects/trunk/src/cffspdf/lib/

Have that patch compiled in.

Might want to give it a spin, see if it negates the need of the custom
classloader.

FWIW, if any of you are running Railo, this project is available as an
Extension, installable from the Railo Admin.

:Den

-- 
The most common lie is that which one lies to himself; lying to others
is relatively an exception.
Friedrich Nietzsche

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-15 Thread denstar

This doesn't have the JavaLoader stuff, but handles some things that
might be useful:

http://subversion.assembla.com/svn/cfmlprojects/trunk/src/cffspdf/src/tag/cffspdf/cfc/fspdf.cfc

:Den

-- 
The doer alone learneth.
Friedrich Nietzsche

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338245
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocument text cuts off at page break

2010-10-15 Thread Brook Davies

Hi James,

Flying saucer looks interesting. Could you post the code you use to get it
running with CF?

Brook

-Original Message-
From: James Holmes [mailto:james.hol...@gmail.com] 
Sent: October-15-10 3:39 AM
To: cf-talk
Subject: Re: cfdocument text cuts off at page break


I'll +1 flying saucer. I've just implemented it using JavaLoader (the
iText version required clashes with that on CF8) and it works well
(better than cfdocument).

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 15 October 2010 09:37, denstar  wrote:

> But if you really must have a decent cfdocument replacement, there's
> always flying saucer (https://xhtmlrenderer.dev.java.net/).  I've got
> a custom tag for that, which probably works for ACF too (I've only
> used it in Railo)



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338230
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-15 Thread James Holmes

I'll +1 flying saucer. I've just implemented it using JavaLoader (the
iText version required clashes with that on CF8) and it works well
(better than cfdocument).

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 15 October 2010 09:37, denstar  wrote:

> But if you really must have a decent cfdocument replacement, there's
> always flying saucer (https://xhtmlrenderer.dev.java.net/).  I've got
> a custom tag for that, which probably works for ACF too (I've only
> used it in Railo)

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338229
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread denstar

On Thu, Oct 14, 2010 at 1:46 PM, Rick Root wrote:
>
> On Thu, Oct 14, 2010 at 1:03 PM, denstar wrote:
>>
>> The solution?  JasperReports.  =)
>
> Why go with jasperReports when CFREPORT does the same thing (and
> actually is jasperReports under the hood)?
>
> And there are many cases where a true report writer like cfreport (or
> jasper) doesn't suit the needs when you just need to produce a PDF
> document.  If it's not tabular reporting, you pretty much *HAVE* to
> use cfdocument.  cfdocument and cfreport do not really compete with
> each other.

Sure, there's lots of cases where all you want is a quick and dirty
PDF, but if you're going through all this effort... and the reports
can be served as HTML...  ;)

But if you really must have a decent cfdocument replacement, there's
always flying saucer (https://xhtmlrenderer.dev.java.net/).  I've got
a custom tag for that, which probably works for ACF too (I've only
used it in Railo).

Really though, JasperReports is sweet for a lot of other reasons.  You
can export the hell out of those reports.  PowerPoint y todo.

And with jasperreports, writing the report XML by hand is totally
doable, which I don't recall as being doable with cfreport (I could be
wrong tho).

Anyways, Flying Saucer is nice because you can control a lot of stuff
with special CSS.

:Den

-- 
The Christian resolution to find the world ugly and bad has made the
world ugly and bad.
Friedrich Nietz

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338221
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread Bryan Stevenson

On Thu, 2010-10-14 at 15:44 -0400, Rick Root wrote:

> On Thu, Oct 14, 2010 at 12:55 PM, Tony Bentley
>  wrote:
> >
> > Why didn't Adobe fix some of the simple needed changes in CF9 for 
> > cfdocument? I have no idea.
> >
> > Known issues that suck:
> >
> > -THEAD does not carry over on page break. The solution? Use cfreportbuilder 
> > (god help me).
> 
> A regular HTML page doesn't do this either.
> 
> all cfdocument does is render HTML into a PDF so I wouldn't really
> expect it to do anything that HTML didn't.


I humbly disagree.  CFDOCUMENT is for producing documents...not web
pages.  This is why you can define headers/footers, have page X of Y in
footers, and make section headings span pages.  Well OK...it is SUPPOSED
to do these things...it often doesn't work as advertised.  It just so
happens that you can convert HTML to PDFs using it.  The doc could be
just text...

It is based on the iText package which can do all the above and tonnes
morebut it sucks to work with in CF...trust me...built  and laid out
40 page dynamic doc using calls to the iText Java package pre-CFDOCUMENT
being introduced...not fun at all.

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338202
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread Rick Root

On Thu, Oct 14, 2010 at 1:03 PM, denstar  wrote:
>
> The solution?  JasperReports.  =)

Why go with jasperReports when CFREPORT does the same thing (and
actually is jasperReports under the hood)?

And there are many cases where a true report writer like cfreport (or
jasper) doesn't suit the needs when you just need to produce a PDF
document.  If it's not tabular reporting, you pretty much *HAVE* to
use cfdocument.  cfdocument and cfreport do not really compete with
each other.

Ri

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread Rick Root

On Thu, Oct 14, 2010 at 12:55 PM, Tony Bentley
 wrote:
>
> Why didn't Adobe fix some of the simple needed changes in CF9 for cfdocument? 
> I have no idea.
>
> Known issues that suck:
>
> -THEAD does not carry over on page break. The solution? Use cfreportbuilder 
> (god help me).

A regular HTML page doesn't do this either.

all cfdocument does is render HTML into a PDF so I wouldn't really
expect it to do anything that HTML didn't.

> - Border collapse does not work. The solution? Write some really funky inline 
> styles at the first row of the table, last row of the table and first/last td 
> of each row. (How much has this cost our company?)

Actually, if you just put cellpadding=0 on the  tag you get the
same result as CSS border-collapse, so this isn't a big deal.

> -Table breaks in the middle of a row. No solution. (Shoot me)

also something that HTML does.  A solution would be nice but might not
be that easy, since browsers do it too (I only tested this in IE)

Rick

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338198
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocument text cuts off at page break

2010-10-14 Thread Tim Do

I'm currently using CF_HTML2PDF3 and it's quite old and hangs the server pretty 
often.  Since cfdocument isn't working, what's everybody else using to convert 
to pdf?


-Original Message-
From: Bryan Stevenson [mailto:br...@electricedgesystems.com] 
Sent: Thursday, October 14, 2010 11:53 AM
To: cf-talk
Subject: RE: cfdocument text cuts off at page break


Hey Tim,

No you have fixed this one instance...trust me I know...I've battled
that same thing.  If the amount of text varies, you WILL see this again.

Cheers

On Thu, 2010-10-14 at 10:01 -0700, Tim Do wrote:

> hmmm, so I removed the marginbottom attribute and it seems to have fixed it. 



Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocument text cuts off at page break

2010-10-14 Thread Bryan Stevenson

Hey Tim,

No you have fixed this one instance...trust me I know...I've battled
that same thing.  If the amount of text varies, you WILL see this again.

Cheers

On Thu, 2010-10-14 at 10:01 -0700, Tim Do wrote:

> hmmm, so I removed the marginbottom attribute and it seems to have fixed it. 



Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338187
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocument text cuts off at page break

2010-10-14 Thread Brook Davies

I agree, CFDOCUMENT is sorely lacking, its one thing after another that does
not work correctly with CFDOCUMENT. We've had to manually track the number
of table rows and programmatically end the table and insert a page break to
work around this issue. But I guess if you had variable length/height text
that would not be possible.

Brook

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: October-14-10 9:56 AM
To: cf-talk
Subject: Re: cfdocument text cuts off at page break


Why didn't Adobe fix some of the simple needed changes in CF9 for
cfdocument? I have no idea.

Known issues that suck:

-THEAD does not carry over on page break. The solution? Use cfreportbuilder
(god help me).
- Border collapse does not work. The solution? Write some really funky
inline styles at the first row of the table, last row of the table and
first/last td of each row. (How much has this cost our company?)
-Table breaks in the middle of a row. No solution. (Shoot me)



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338184
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread denstar

The solution?  JasperReports.  =)

:Den

-- 
The best author will be the one who is ashamed to become a writer.
Friedrich Nietzsche

On Thu, Oct 14, 2010 at 10:55 AM, Tony Bentley wrote:
>
> Why didn't Adobe fix some of the simple needed changes in CF9 for cfdocument? 
> I have no idea.
>
> Known issues that suck:
>
> -THEAD does not carry over on page break. The solution? Use cfreportbuilder 
> (god help me).
> - Border collapse does not work. The solution? Write some really funky inline 
> styles at the first row of the table, last row of the table and first/last td 
> of each row. (How much has this cost our company?)
> -Table breaks in the middle of a row. No solution. (Shoot me)
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338183
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocument text cuts off at page break

2010-10-14 Thread Tim Do

hmmm, so I removed the marginbottom attribute and it seems to have fixed it.  

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Thursday, October 14, 2010 9:56 AM
To: cf-talk
Subject: Re: cfdocument text cuts off at page break


Why didn't Adobe fix some of the simple needed changes in CF9 for cfdocument? I 
have no idea.

Known issues that suck:

-THEAD does not carry over on page break. The solution? Use cfreportbuilder 
(god help me).
- Border collapse does not work. The solution? Write some really funky inline 
styles at the first row of the table, last row of the table and first/last td 
of each row. (How much has this cost our company?)
-Table breaks in the middle of a row. No solution. (Shoot me)



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread Tony Bentley

Why didn't Adobe fix some of the simple needed changes in CF9 for cfdocument? I 
have no idea.

Known issues that suck:

-THEAD does not carry over on page break. The solution? Use cfreportbuilder 
(god help me).
- Border collapse does not work. The solution? Write some really funky inline 
styles at the first row of the table, last row of the table and first/last td 
of each row. (How much has this cost our company?)
-Table breaks in the middle of a row. No solution. (Shoot me)

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338181
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread Rick Root

On Thu, Oct 14, 2010 at 12:40 PM, Tim Do  wrote:
>
> Yes, all text are inside table w/ complete html tags.

Alas then, I'm not aware of any solutions for the problem you're experiencing.

cfdocument just doesn't seem to handle breaking within tables very well.

Rick

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338180
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocument text cuts off at page break

2010-10-14 Thread Tim Do

Yes, all text are inside table w/ complete html tags.

-Original Message-
From: Rick Root [mailto:rick.r...@gmail.com] 
Sent: Thursday, October 14, 2010 9:37 AM
To: cf-talk
Subject: Re: cfdocument text cuts off at page break


On Thu, Oct 14, 2010 at 11:24 AM, Tim Do  wrote:
>
> I see quite a few posts on this bug but there seems to be only hot fixes for 
> mx7 and 8, I'm on 9 so I figured it should've/would've been applied...  The 
> last line of the page gets cut off and the next page has the other half.  I'm 
> using cfsavecontent, building html and putting inside of cfdocument.  Has 
> anybody figured out how to fix this??

Is your text inside a table ce



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338179
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument text cuts off at page break

2010-10-14 Thread Rick Root

On Thu, Oct 14, 2010 at 11:24 AM, Tim Do  wrote:
>
> I see quite a few posts on this bug but there seems to be only hot fixes for 
> mx7 and 8, I'm on 9 so I figured it should've/would've been applied...  The 
> last line of the page gets cut off and the next page has the other half.  I'm 
> using cfsavecontent, building html and putting inside of cfdocument.  Has 
> anybody figured out how to fix this??

Is your text inside a table ce

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfdocument text cuts off at page break

2010-10-14 Thread Tim Do

I see quite a few posts on this bug but there seems to be only hot fixes for 
mx7 and 8, I'm on 9 so I figured it should've/would've been applied...  The 
last line of the page gets cut off and the next page has the other half.  I'm 
using cfsavecontent, building html and putting inside of cfdocument.  Has 
anybody figured out how to fix this??

Thanks!
Tim




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338175
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm