RE: PDF Question
Go on, post the trackback - I would love to know how (not that I am on CF7 yet) -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: 18 November 2005 17:22 To: CF-Talk Subject: Re: PDF Question To note, if you are on CF7 you cannot upgrade or use the iText jar as it is already included and seems to be restricted in some way. N A...but there is a wayand a link to the way is in the archives (and it was a thread I started...so search for my e-mail and iText and all will be well) ;-) 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 ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224789 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=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: PDF Question
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:224604 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
Re: PDF Question
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
Re: PDF Question
Yeah, I'm familiar with both createObject and Java. It looks like com.lowagie.tools is the package needed for concatenating. I'll see what I can do. Cheers, Sam F Good stuffshould just be a little trial and error then and yer on your way ;-) 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 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224637 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
Re: PDF Question
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... Could be a method called main does not exist that accepts the number of arguments or the types of args you passed (see that all the timeand JavaCast() is your friend) ;-) 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 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224638 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
RE: PDF Question
To note, if you are on CF7 you cannot upgrade or use the iText jar as it is already included and seems to be restricted in some way. N -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: 18 November 2005 16:40 To: CF-Talk Subject: Re: PDF Question Yeah, I'm familiar with both createObject and Java. It looks like com.lowagie.tools is the package needed for concatenating. I'll see what I can do. Cheers, Sam F Good stuffshould just be a little trial and error then and yer on your way ;-) 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 ~| 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:224642 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
Re: PDF Question
Bryan Stevenson wrote: Could be a method called main does not exist that accepts the number of arguments or the types of args you passed (see that all the timeand JavaCast() is your friend) ;-) it's expecting command line args. maybe just a bit of re-writing to make it more cf-friendly. btw it looks there's one protected class (PdfWriter.getImportedPage()) that's important for concatenating PDFs that cf7 doesn't like talking too. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224643 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
Re: PDF Question
To note, if you are on CF7 you cannot upgrade or use the iText jar as it is already included and seems to be restricted in some way. N A...but there is a wayand a link to the way is in the archives (and it was a thread I started...so search for my e-mail and iText and all will be well) ;-) 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 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224646 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
RE: PDF Question
Very possible, we do just that using CF (MX) and iText. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 November 2005 08:37 To: CF-Talk Subject: PDF Question We are creating PDFs using CF. One issue we are having is that we need to import an existing PDF file to stitch on to the end of the ones we have created before delivering it to the user. Is this possible within CF - or do we need to use third party tools? Thanks David [EMAIL PROTECTED] ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224472 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=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: PDF Question
iText from SourceForge will do thatand iText is installed as part of CF 7 (behind CFDOCUMENT)...so if yer on 7 you have it already. 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 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224514 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
Re: PDF Question
Bryan and Neil, Is there any chance you could post some code showing how you did this? I'm about to start a project where I will need to do exactly this. Thanks, Sam On 11/17/05, Bryan Stevenson [EMAIL PROTECTED] wrote: iText from SourceForge will do thatand iText is installed as part of CF 7 (behind CFDOCUMENT)...so if yer on 7 you have it already. 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 http://www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224531 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
Re: PDF Question
I haven't done itbut I've seen the docs on SourceForge (and have use iText to generate complex PDFs on the fly pre MX 7) ;-) Perhaps you should let us know if you are familiar with CreatObject() and using Java in CF.if so...go read the iText tutorials on concantenating PDFs and you'll see it's not that tough. If CreateObject() and the use of Java in CF is new...then we can show you the basics to get ya heading in the right direction. 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: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224532 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
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 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224580 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=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: PDF Question
Yeah, I'm familiar with both createObject and Java. It looks like com.lowagie.tools is the package needed for concatenating. I'll see what I can do. Cheers, Sam F On 11/17/05, Bryan Stevenson [EMAIL PROTECTED] wrote: I haven't done itbut I've seen the docs on SourceForge (and have use iText to generate complex PDFs on the fly pre MX 7) ;-) Perhaps you should let us know if you are familiar with CreatObject() and using Java in CF.if so...go read the iText tutorials on concantenating PDFs and you'll see it's not that tough. If CreateObject() and the use of Java in CF is new...then we can show you the basics to get ya heading in the right direction. 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: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224581 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=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: PDF Question
On Tuesday, August 5, 2003, at 03:43 PM, Mark Stewart wrote: If there is another product other than ActivePDF, I would be open to that. Thanks in advance for any help. I've got no experience with ActivePDF but I would highly recommend checking out Big FaceLess Report Generator: http://big.faceless.org/products/report/examples.jsp The documentation is fantastic. In an afternoon you can be doing dynamic PDF generation with only your imagination as the limit. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PDF Question
Interesting. Are you using CF and generating the XML to feed the report generator? Dan === Previous Message Below === -Original Message- From: Sean Daniels [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 4:20 PM To: CF-Talk Subject: Re: PDF Question On Tuesday, August 5, 2003, at 03:43 PM, Mark Stewart wrote: If there is another product other than ActivePDF, I would be open to that. Thanks in advance for any help. I've got no experience with ActivePDF but I would highly recommend checking out Big FaceLess Report Generator: http://big.faceless.org/products/report/examples.jsp The documentation is fantastic. In an afternoon you can be doing dynamic PDF generation with only your imagination as the limit. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PDF Question
Mark, What I did with something similar was to add them together for the ouput and set a character return between each paragraph.(in fact yours sounds a bit simpler since you have 3 distinct paragraphs- I had a multitude of various paragraphs with variable length! So do this: CFSET ParagraphAll=#Paragraph1# #chr(10)##Paragraph2##chr(10)##Paragraph3# CFSET ParagraphAll =Tlkt.SetFormFieldData(ParagraphAll, #ParagraphAll#, 0) i think chr(10) is what works for carriage return... hope this helps. j -Original Message- From: Mark Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 3:43 PM To: CF-Talk Subject: PDF Question I currently use ActivePDF and It's been working great except for one problem... Example: I have a pdf with 3 paragraphs in it, the second paragraph being variable text that a user would enter through a textarea. The second paragraph in the pdf is a form field that I will populate through the ActivePDF api. So, the first paragraph is fixed height, the second is variable and the third is also fixed height. How would I make it so the area for the second paragraph would shrink, or grow, depending upon the amount of text in the second paragraph. I'm trying to eliminate the large gap between paragraph 2 and 3 if the user happened to enter something like, Hello World!, for the second paragraph. If there is another product other than ActivePDF, I would be open to that. Thanks in advance for any help. Mark ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PDF Question
Janine, Thanks for the response, that's exactly what I was looking for! Thanks again. Mark -Original Message- From: Janine Jakim [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 4:03 PM To: CF-Talk Subject: RE: PDF Question Mark, What I did with something similar was to add them together for the ouput and set a character return between each paragraph.(in fact yours sounds a bit simpler since you have 3 distinct paragraphs- I had a multitude of various paragraphs with variable length! So do this: CFSET ParagraphAll=#Paragraph1# #chr(10)##Paragraph2##chr(10)##Paragraph3# CFSET ParagraphAll =Tlkt.SetFormFieldData(ParagraphAll, #ParagraphAll#, 0) i think chr(10) is what works for carriage return... hope this helps. j -Original Message- From: Mark Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 3:43 PM To: CF-Talk Subject: PDF Question I currently use ActivePDF and It's been working great except for one problem... Example: I have a pdf with 3 paragraphs in it, the second paragraph being variable text that a user would enter through a textarea. The second paragraph in the pdf is a form field that I will populate through the ActivePDF api. So, the first paragraph is fixed height, the second is variable and the third is also fixed height. How would I make it so the area for the second paragraph would shrink, or grow, depending upon the amount of text in the second paragraph. I'm trying to eliminate the large gap between paragraph 2 and 3 if the user happened to enter something like, Hello World!, for the second paragraph. If there is another product other than ActivePDF, I would be open to that. Thanks in advance for any help. Mark ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4