Thats a great start. I'm on CF 7 so didn't install iText but was able to get
your code to work fine and display the number of pages.

I then created an object to the concat_pdf class and get it to return
methods. I can call all methods except main which is the one I want. Error
says The selected method main was not found.But a cfdump of the object lists
the method main...

Here's the code:

<cfscript>
pdfObject = createObject("java","com.lowagie.tools.concat_pdf");
pdfObject.main("1.pdf 2.pdf result.pdf");
</cfscript>

<cfdump var="#pdfObject#">

Cheers,

Sam

On 11/18/05, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]>
wrote:
>
> Well, I did a CFC to do all the work of a PDF; it isn't that hard.
>
> First, you need to get the iText jar 2installed"
>
> An example of say, get the number of pages within a PDF is below...
>
> pdfObject = createObject("java","com.lowagie.text.pdf.PdfReader");
> vcPDFfile= vcPDFfile; // full path to the PDF
> pdfObject.init(vcPDFfile);
> iNumberOfPages = pdfObject.getNumberOfPages();
>
> if you dump iNumberOfPages you will get the number of pages in vcPDFfile.
>
> Obviously iText is far far more advanced but you get the idea...
>
> Any more help, let me know.
>
> N
>
>
>
>
>
>
> -----Original Message-----
> From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]
> Sent: 18 November 2005 00:43
> To: CF-Talk
> Subject: Re: PDF Question
>
> Wow, iText looks to be far more powerful than what cfdocument has
> implemented. Has anyone created a friendlier "translation layer" for
> those of us without Java experience?
>
> Pete
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224616
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to