Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06/01/2006 3:34 PM by  Peter Donker
DMX ViewDetails Control: Does it perform some sort of integrity check on PDF files?
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Dan Peerenboom
New Member
New Member
Posts:14


--
05/17/2006 9:32 PM

    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:

    1. A user uploads an image-only pdf via "New Item" into an "Upload Area" collection in DMX
    2. DMX renames the file, stores it in the repository location for the portal, and updates the necessary tables in the database (DMX_Entries, etc.)
    3. 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
    4. The script copies the filename of the file that DMX stored on the server and then deletes it
    5. The script then renames the translated file (text + images) to that filename
    6. A user uses the text search feature (in concert with MS Indexing Server) to return the translated pdf file
    7. 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

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    05/19/2006 9:43 AM
    Dan,
    Did you try setting the size as well for the file in DMX_Entries. It is used during the streaming of the file.
    Peter
    Dan Peerenboom
    New Member
    New Member
    Posts:14


    --
    05/25/2006 2:58 PM
    Hi Peter.

    Yes, we changed the file size, too. However, there are two sizes: size and size on disk. Size on disk is larger. I am fairly certain we set it to the size, not size on disk. Is the file size the only item that could be causing the problem? Does the viewdetails control do any integrity checking?

    Thanks,
    Dan
    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    06/01/2006 3:34 PM
    Dan,
    ViewDetails does nothing with the file itself, it's Download.aspx that does the streaming. That uses the file size to end transmission. In an earlier version there have been issues with download of certain file types where IIS added some text at the end of the transmission. This has been solved in later versions.
    Peter
    You are not authorized to post a reply.