Reading a PDF
Any of you know how to automatically read the contents of a PDF using CF? ~| 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. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attributes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/pdfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attributes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/pdfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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: Reading a PDF
And how big is your file? -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:51 To: CF-Talk Subject: RE: Reading a PDF we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
This particular file is 76kb -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:53 To: CF-Talk Subject: RE: Reading a PDF And how big is your file? -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:51 To: CF-Talk Subject: RE: Reading a PDF we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reading a PDF
My server can do a 4 MB file in under 10 seconds. Is it a 256K bits leased line? How many other people are using the connection? Blah blah blah. What's surfing the internet from the server like? Lots of reasons why. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:59 To: CF-Talk Subject: RE: Reading a PDF This particular file is 76kb -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:53 To: CF-Talk Subject: RE: Reading a PDF And how big is your file? -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:51 To: CF-Talk Subject: RE: Reading a PDF we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:14 To: CF-Talk Subject: Reading a PDF Any of you know how to automatically read the contents of a PDF using CF? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists
RE: Reading a PDF
yeh I thought that what I was getting seemed a bit poor. I think that there are some router problems at the mo which may be affecting stuff but it should affect the time it takes for CF to process the page - which it is saying is almost 2 minutes. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:46 To: CF-Talk Subject: RE: Reading a PDF My server can do a 4 MB file in under 10 seconds. Is it a 256K bits leased line? How many other people are using the connection? Blah blah blah. What's surfing the internet from the server like? Lots of reasons why. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:59 To: CF-Talk Subject: RE: Reading a PDF This particular file is 76kb -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:53 To: CF-Talk Subject: RE: Reading a PDF And how big is your file? -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:51 To: CF-Talk Subject: RE: Reading a PDF we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use ReadBinary in the action attribute of the tag. Is the solution you suggest an automatic one? -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:27 To: CF-Talk Subject: RE: Reading a PDF What do you want to do with it? Suggestion: Load up your document to a web accessible directory, point Adobes PDF to HTML conversion system at the document, save away the content. Bingo! Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED
RE: Reading a PDF
Err, Of course it will effect the performance, part of what the page is doing is posting a file to the Adobe siter and waiting for the response... -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:52 To: CF-Talk Subject: RE: Reading a PDF yeh I thought that what I was getting seemed a bit poor. I think that there are some router problems at the mo which may be affecting stuff but it should affect the time it takes for CF to process the page - which it is saying is almost 2 minutes. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:46 To: CF-Talk Subject: RE: Reading a PDF My server can do a 4 MB file in under 10 seconds. Is it a 256K bits leased line? How many other people are using the connection? Blah blah blah. What's surfing the internet from the server like? Lots of reasons why. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:59 To: CF-Talk Subject: RE: Reading a PDF This particular file is 76kb -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:53 To: CF-Talk Subject: RE: Reading a PDF And how big is your file? -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:51 To: CF-Talk Subject: RE: Reading a PDF we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF-Talk Subject: RE: Reading a PDF I want to automatically read the contents and look for words and report back to CF if they are found. Don't want to use verity) as this is on a document by document basis. what happens if I use
RE: Reading a PDF
doh! - sorry, being a bit think at the mo. Thanks for all your help - I'll try again when things are back up and working properly -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:55 To: CF-Talk Subject: RE: Reading a PDF Err, Of course it will effect the performance, part of what the page is doing is posting a file to the Adobe siter and waiting for the response... -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:52 To: CF-Talk Subject: RE: Reading a PDF yeh I thought that what I was getting seemed a bit poor. I think that there are some router problems at the mo which may be affecting stuff but it should affect the time it takes for CF to process the page - which it is saying is almost 2 minutes. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:46 To: CF-Talk Subject: RE: Reading a PDF My server can do a 4 MB file in under 10 seconds. Is it a 256K bits leased line? How many other people are using the connection? Blah blah blah. What's surfing the internet from the server like? Lots of reasons why. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:59 To: CF-Talk Subject: RE: Reading a PDF This particular file is 76kb -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:53 To: CF-Talk Subject: RE: Reading a PDF And how big is your file? -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:51 To: CF-Talk Subject: RE: Reading a PDF we have a 256k leased line. I think there may be problems saying that but CF is saying the page is taking about 100,000ms to execute -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:46 To: CF-Talk Subject: RE: Reading a PDF Well, If you think about it you are asking your server to submit the file to the adobe site. What't the connection like from your server to the net? As to the converter being always available. Ask them! We put a proviso in our contract that stated specifically that this was an external service and was not under our control. Adam -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:37 To: CF-Talk Subject: RE: Reading a PDF yup just seen that on the adobe site, tried and worked - thanks a lot. Do you think that this url is reliable long term? - i.e. will that converter always be available. Seems to take a while to execute too. -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 11:20 To: CF-Talk Subject: RE: Reading a PDF Here's the code from one of my fusebox applications. !---@ Upload File --- cfif len(attributes.FILE_NAME) !---@ Pages with secure items must use the offline storage area. --- cffile action=UPLOAD filefield=FILE_NAME destination=#getdirectoryfrompath(getcurrenttemplatepath())#/documents nameconflict=MAKEUNIQUE cfset attributes.FILE_NAME = cffile.ServerFile cfset attributes.FILE_SIZE = cffile.FileSize !--- Determine filetype. --- cfset attributes.SUFFIX = listlast(attributes.FILE_NAME,.) cfinclude template=queries/qry_file_type_select.cfm cfif qry_file_type_select.recordcount EQ 0 cfset attributes.FILE_TYPE = application/unkown cfelse cfset attributes.FILE_TYPE = qry_file_type_select.FILE_TYPE /cfif !--- PDF files are converted to HTML --- cfif listlast(attributes.FILE_NAME,.) eq pdf cfhttp url=http://access.adobe.com/perl/convertPDF.pl; method=post resolveurl=no cfhttpparam type=formfield name=url value=#request.site.webRoot#/contentmanagement/documents/#attribu tes.file_n ame# /cfhttp !--- Now write the content away. --- cfset attributes.pdfhtmlfile = #createuuid()#.html cffile action=append file=#getdirectoryfrompath(getcurrenttemplatepath())#/documents/p dfhtmlfile s/#attributes.pdfhtmlfile# output=#cfhttp.FileContent# /cfif /cfif Hope this helps. You don't need to do the last write away. You can just use the contents of the check for the words you are looking for. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 10:49 To: CF
RE: Reading in PDF Files
Hi James, If I'm understanding your message correctly, you just want the PDF to appear in the browser window. If that's correct, then all you have to do is link directly to the PDF. Anyone with Reader on their computer will have the PDF appear in the browser window... Ian Lurie http://www.portentinteractive.com -Original Message- From: James Taavon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 07, 2000 5:16 AM To: [EMAIL PROTECTED] Subject: Reading in PDF Files How do I read in a PDF file into my browser? Let me explain. I have a list of numbers associated with documents in a database. Each document has four different links associated with it (Summary of Document, Original Document, Reponses, History). What I want to do is when a user clicks "Original Document" is to have the scanned PDF file of the document appear in the browser window. I tried using CFFILE action="READ"..., but that only works with text files. Have any ideas on how I could do this? James -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Reading in PDF Files
How do I read in a PDF file into my browser? Let me explain. I have a list of numbers associated with documents in a database. Each document has four different links associated with it (Summary of Document, Original Document, Reponses, History). What I want to do is when a user clicks "Original Document" is to have the scanned PDF file of the document appear in the browser window. I tried using CFFILE action="READ"..., but that only works with text files. Have any ideas on how I could do this? Why not use Acrobat's natural display functionality? If you provide a direct link to a PDF, it is naturally displayed within the browser (assuming the user has Acrobat Reader installed) - rather like linking to a Word document. If you want to hide the url of the file, then use CFContent to display the PDF HTH Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Reading in PDF Files
How do I read in a PDF file into my browser? Let me explain. I have a list of numbers associated with documents in a database. Each document has four different links associated with it (Summary of Document, Original Document, Reponses, History). What I want to do is when a user clicks "Original Document" is to have the scanned PDF file of the document appear in the browser window. I tried using CFFILE action="READ"..., but that only works with text files. Have any ideas on how I could do this? James -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.