Hi Peter.
An automation idea we are exploring is to take image-only pdf files, translate them into a searchable text + images pdf files, and have those files searchable via DMX.
The scenario we anticipate is:
- A user uploads an image-only pdf via "New Item" into an "Upload Area" collection in DMX
- DMX renames the file, stores it in the repository location for the portal, and updates the necessary tables in the database (DMX_Entries, etc.)
- A script takes the file as it is stored in the DMX folder (with the new filename) and translates it into a text + images pdf file
- The script copies the filename of the file that DMX stored on the server and then deletes it
- The script then renames the translated file (text + images) to that filename
- A user uses the text search feature (in concert with MS Indexing Server) to return the translated pdf file
- The user clicks on the link to the pdf and views the contents
We manually performed the steps above, but we get an error that there is something wrong with the file. However, we can open it fine directly and even search it successfully, since it was translated to text + images. We even typed in the full path to the file in the IE address field and the Acrobat Plugin successfully opened the file within the browser window.
Prior to translating the image-only pdf file, we tried text-searching DMX for it and, of course, we got no results. After the translation into text + images, the DMX text-search produced the expected result, but when we click on the original filename link, we get the error.
We noticed that when we hover over the link to the document from within DMX that it points to: http://server/myportal/do...lt.aspx?EntryId=505. We then checked the "File Types" listing in the "Service" tab of the DMX module "Options" for the pdf entry and the control that is used is "bring2mind/dmx/viewdetails.ascx".
Since we know the translated file is okay, what might be happening when we click on the original filename link? As I said, we used the filename that DMX assigned to the originally uploaded file and renamed the translated file to that filename, so the file contents (timestamp, size, etc.) are different, but the filename is the same.
Thanks,
Dan