Re: PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Dan Plesse
I think someone has a master file How-to iText for CF some place but i can't
find it. I also remember Forta's book has some examples
too.

A quick google book search shows some stuff PDF Hacks - Page
235


On 8/28/06, Kris Jones <[EMAIL PROTECTED]> wrote:
>
> I've got a handle on your posts on the forums. Thanks much for this.
> We're also interested in implementing bookmarks in the PDFs as a way
> to change the structure of the PDF that will make for less process
> intensive merging.
>
> I'm also checking out Dan's posts on his yahoo group. Great resources.
> Thanks guys.
>
> Cheers,
> Kris
>
>
> On 8/28/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
> > Kris Jones wrote:
> > > Thanks Paul. I believe that the bottleneck in the procedure I'm
> > > working on is the CFDocument call, rather than the 3rd-party
> > > split/merge program we're calling. I'm happy to look into iText, just
> > > hoping that others have some experiential knowledge about performance
> > > gains.
> >
> > pre-cf7 we used itext a bunch. these days we only use it for "special"
> > case needs such as merging pdfs, pdfForms, bookmarks, etc that
> > cfDocument doesn't yet handle or when we need an insane amount of
> > control over the pdf (usually placing stuff at exact coords like checks,
> > etc).
> >
> > we never benchmarked it to anything, just glad it worked.
> >
> >
> >
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


Re: PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Kris Jones
I've got a handle on your posts on the forums. Thanks much for this.
We're also interested in implementing bookmarks in the PDFs as a way
to change the structure of the PDF that will make for less process
intensive merging.

I'm also checking out Dan's posts on his yahoo group. Great resources.
Thanks guys.

Cheers,
Kris


On 8/28/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
> Kris Jones wrote:
> > Thanks Paul. I believe that the bottleneck in the procedure I'm
> > working on is the CFDocument call, rather than the 3rd-party
> > split/merge program we're calling. I'm happy to look into iText, just
> > hoping that others have some experiential knowledge about performance
> > gains.
>
> pre-cf7 we used itext a bunch. these days we only use it for "special"
> case needs such as merging pdfs, pdfForms, bookmarks, etc that
> cfDocument doesn't yet handle or when we need an insane amount of
> control over the pdf (usually placing stuff at exact coords like checks,
> etc).
>
> we never benchmarked it to anything, just glad it worked.
>
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


Re: PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Dan Plesse
I have a few examples on java coldfusion list on yahoo called coldfusion
java hacks. 

There is no action on that list, just takers of my hard won work with CF and
java.



On 8/28/06, Kris Jones <[EMAIL PROTECTED]> wrote:
>
> Thanks Paul. I believe that the bottleneck in the procedure I'm
> working on is the CFDocument call, rather than the 3rd-party
> split/merge program we're calling. I'm happy to look into iText, just
> hoping that others have some experiential knowledge about performance
> gains.
>
> Cheers,
> Kris
>
>
> On 8/28/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
> > Kris Jones wrote:
> > > Since I know nothing about iText, I don't really want to go down that
> > > road unless I know that it will be worth it (performance-wise). I know
> > > there are few iText gurus on the list, maybe someone has some
> > > experience with this?
> >
> > the only way you can *know* which one is faster is by testing. search
> > the cf forums, i posted code there to merge PDFs using itext (i'm at
> > home & don't have access to the dev server). it's fairly simple.
> >
> >
> >
> >
> >
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


Re: PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Paul Hastings
Kris Jones wrote:
> Thanks Paul. I believe that the bottleneck in the procedure I'm
> working on is the CFDocument call, rather than the 3rd-party
> split/merge program we're calling. I'm happy to look into iText, just
> hoping that others have some experiential knowledge about performance
> gains.

pre-cf7 we used itext a bunch. these days we only use it for "special" 
case needs such as merging pdfs, pdfForms, bookmarks, etc that 
cfDocument doesn't yet handle or when we need an insane amount of 
control over the pdf (usually placing stuff at exact coords like checks, 
etc).

we never benchmarked it to anything, just glad it worked.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


Re: PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Kris Jones
Thanks Paul. I believe that the bottleneck in the procedure I'm
working on is the CFDocument call, rather than the 3rd-party
split/merge program we're calling. I'm happy to look into iText, just
hoping that others have some experiential knowledge about performance
gains.

Cheers,
Kris


On 8/28/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
> Kris Jones wrote:
> > Since I know nothing about iText, I don't really want to go down that
> > road unless I know that it will be worth it (performance-wise). I know
> > there are few iText gurus on the list, maybe someone has some
> > experience with this?
>
> the only way you can *know* which one is faster is by testing. search
> the cf forums, i posted code there to merge PDFs using itext (i'm at
> home & don't have access to the dev server). it's fairly simple.
>
>
>
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


Re: PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Paul Hastings
Kris Jones wrote:
> Since I know nothing about iText, I don't really want to go down that
> road unless I know that it will be worth it (performance-wise). I know
> there are few iText gurus on the list, maybe someone has some
> experience with this?

the only way you can *know* which one is faster is by testing. search 
the cf forums, i posted code there to merge PDFs using itext (i'm at 
home & don't have access to the dev server). it's fairly simple.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


PDF creation: CFDocument, iText; CF or Java libs?

2006-08-28 Thread Kris Jones
Hi folks,

I've been trying to refactor a long-running procedure that creates
PDFs using CFDocument, then a 3rd-party tool (via CFExecute) to merge
the PDFs to a single file in a specific order.

After seeing discussion on this list regarding string manipulation
being so much faster using direct calls to the java string lib, I'm
wondering if I would see a parallel improvement in performance if I
used iText directly rather than the CFDocument call.

Since I know nothing about iText, I don't really want to go down that
road unless I know that it will be worth it (performance-wise). I know
there are few iText gurus on the list, maybe someone has some
experience with this?

Thanks,
Kris

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251267
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 + iText

2006-08-03 Thread Casey Dougall
couldn't you do some type of floating div tag with the image in that?

On 8/3/06, Tom Donovan <[EMAIL PROTECTED]> wrote:
>
> >I would like to see some type of form implementation, as well as the
> >possibility of different output types (ie png, Tiff, etc)
> >
> >By form, I mean some way to take a template image / document and overlay
> >structured text on top of it at specific locations (ie mass produced
> >invoices, statements, etc).  I ended up writing my own using iText
> >directly to output to Tiff's.  Maybe someone can correct me if I'm
> >missing a current feature that could do it, but I didn't see one =)
> >
> >Chris Peterson
>
>


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248715
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 + iText

2006-08-03 Thread Tom Donovan
>I would like to see some type of form implementation, as well as the
>possibility of different output types (ie png, Tiff, etc)
>
>By form, I mean some way to take a template image / document and overlay
>structured text on top of it at specific locations (ie mass produced
>invoices, statements, etc).  I ended up writing my own using iText
>directly to output to Tiff's.  Maybe someone can correct me if I'm
>missing a current feature that could do it, but I didn't see one =)
>
>Chris Peterson
>
>-Original Message-
>From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, July 20, 2006 2:52 PM
>To: CF-Talk
>Subject: Re: cfdocument + iText
>
>multi-columns!!! Multi-Columns MULTI COLUMNS!!
>
>(Sorry, but I am having to write an iText implementation now just for
>the ability to flow text from col 1 to col 2 to col 3 to col 1 on page
>2.)
>
>Everything else I need to do I can do easily from CFDOCUMENT.
>
>Jerry Johnson
>
>
>On 7/20/06, Rupesh Kumar <[EMAIL PROTECTED]> wrote:
>> Hi Jose,
>> Though the watermark capability is not there in cfdocument, it should
>be doable using background images of the html. I understand it is easily
>said than done as you will have to size your images carefully so that
>they come properly and only once on all the pages. We will try to have
>it in the scorpio release.
>>
>> Any other itext feature that you think are missing and should be there
>in cfdocument?

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248707
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 + iText

2006-07-20 Thread Bryan Stevenson
> By form, I mean some way to take a template image / document and overlay
> structured text on top of it at specific locations (ie mass produced
> invoices, statements, etc).

I think that would be simple  with CFDOCUMENTwrite a template CFM page with 
variable place holders for the "structured text"tehn output and procude the 
PDFs.  or have I completely missed your point?

  I ended up writing my own using iText
> directly to output to Tiff's.  Maybe someone can correct me if I'm
> missing a current feature that could do it, but I didn't see one =)

Yes...the TIFF stuff is beyond CFDOCUMENT (but VERY easy with iText..as I guess 
you found)

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: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247242
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfdocument + iText

2006-07-20 Thread Peterson, Chris
I would like to see some type of form implementation, as well as the
possibility of different output types (ie png, Tiff, etc)

By form, I mean some way to take a template image / document and overlay
structured text on top of it at specific locations (ie mass produced
invoices, statements, etc).  I ended up writing my own using iText
directly to output to Tiff's.  Maybe someone can correct me if I'm
missing a current feature that could do it, but I didn't see one =)

Chris Peterson

-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 2:52 PM
To: CF-Talk
Subject: Re: cfdocument + iText

multi-columns!!! Multi-Columns MULTI COLUMNS!!

(Sorry, but I am having to write an iText implementation now just for
the ability to flow text from col 1 to col 2 to col 3 to col 1 on page
2.)

Everything else I need to do I can do easily from CFDOCUMENT.

Jerry Johnson


On 7/20/06, Rupesh Kumar <[EMAIL PROTECTED]> wrote:
> Hi Jose,
> Though the watermark capability is not there in cfdocument, it should
be doable using background images of the html. I understand it is easily
said than done as you will have to size your images carefully so that
they come properly and only once on all the pages. We will try to have
it in the scorpio release.
>
> Any other itext feature that you think are missing and should be there
in cfdocument?



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247239
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfdocument + iText

2006-07-20 Thread Jerry Johnson
multi-columns!!! Multi-Columns MULTI COLUMNS!!

(Sorry, but I am having to write an iText implementation now just for
the ability to flow text from col 1 to col 2 to col 3 to col 1 on page
2.)

Everything else I need to do I can do easily from CFDOCUMENT.

Jerry Johnson


On 7/20/06, Rupesh Kumar <[EMAIL PROTECTED]> wrote:
> Hi Jose,
> Though the watermark capability is not there in cfdocument, it should be 
> doable using background images of the html. I understand it is easily said 
> than done as you will have to size your images carefully so that they come 
> properly and only once on all the pages. We will try to have it in the 
> scorpio release.
>
> Any other itext feature that you think are missing and should be there in 
> cfdocument?

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247231
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfdocument + iText

2006-07-20 Thread Rupesh Kumar
Hi Jose,
Though the watermark capability is not there in cfdocument, it should be doable 
using background images of the html. I understand it is easily said than done 
as you will have to size your images carefully so that they come properly and 
only once on all the pages. We will try to have it in the scorpio release.

Any other itext feature that you think are missing and should be there in 
cfdocument?

Thanks,
Rupesh

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247227
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfdocument + iText

2006-07-18 Thread Paul Hastings
Jose Diaz wrote:
> I am aware that MX7 utilises the iText library, is there a way to leverage
> the other options offered in the iText library bar the following listed for
> the cfdocument tag.

yes. simply follow the examples from the itext site but be aware that 
the version shipped w/cf7 & used by cfdocument isn't the very latest. if 
you want the latest itext version, you can use mark mandel's nifty 
javaLoader CFC to load these up from off the server classpath. i should 
also point out that cfdocument simplifies things enormously. the cf team 
did a pretty good job w/it.

> success. Does anyone know why the options within the cfdocument tag had been
> restricted not to use all the iText functionality.

as far as i know, none are "restricted".

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246938
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfdocument + iText

2006-07-18 Thread Jose Diaz
Hello All,

I have a query regarding 'cfdocument', as has been mentioned earlier in
posts people are attempting to watermark pdfs and trying various options
such as background images etc.

I am aware that MX7 utilises the iText library, is there a way to leverage
the other options offered in the iText library bar the following listed for
the cfdocument tag.

cfdocument currently provides the following functionality:


   src = "url or path relative to web root"
   srcfile = "absolute path of file"
   unit = "in" or "cm"
   userpassword = "password"

   *HTML and CFML code*


I use the watermark as an example as this is an often used option when using
iText - I have tried using the 'CreateObject' option directly but with no
success. Does anyone know why the options within the cfdocument tag had been
restricted not to use all the iText functionality.

Many thanks

Jose Diaz


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246930
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4