Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hey Aussie_Coder, did you fix this problem?
I'm using CF7 and its not indexing any PDFs created using 'Acrobat PDFMaker 9.0 for Word' and giving me the 'Stream error (-140) - SKIPPING' error like what you're getting. PDFs created in previous versions of 'Acrobat PDFMaker for Word' are being indexed fine.
The company is planning on upgrading everyone to v9 so this could be a huge issue for me soon.
Any hints or tips from anyone would be greatly appreciated.
Thanks
Copy link to clipboard
Copied
I have figured it out....
Adobe Acrobat v8 saves PDFs in v5 (1.4) format by default. Adobe Acrobat v9 saves PDFs in v7 (1.6) format by default.
ColdFusions CFINDEX doesn't like PFDs saved in v6 (1.5) or higher. So if you upgrade to Adobe Acrobat v9 and want to use the PDFs in a CF verity search you need to configure Distiller to save in v5 (or earlier) format so they can be indexed. (Or just resave the files to be optimised for v5 after they have been created.)
My solution was to configure the application to do a CFFILE READ on the PDF when a user uploads the document into the system. The first 8 characters of the file contents indicate the PDF version. v4 and v5 will work. v6+ won't work.
<cfif Mid(fileContents, 6, 3) lte 1.4>
<!--- This is PRE version 6 - it will be fine in the search --->
<cfelseif Mid(fileContents, 6, 3) gt 1.4>
<!--- This is version 6-9 or higher - it won't work in the search - ABORT --->
</cfif>
Hope this comes in handy for someone one day!
Copy link to clipboard
Copied
I have the same problem with one collecction yet all of the documents are PDF version 1.4 and worked prior to converting to CF8.
This problem is only on one collection. I have deleted and rebuilt the collection several times but it simply will not index the files.