Menu

problem with pdf-output

2017-10-04
2017-10-04
  • Christian Frey

    Christian Frey - 2017-10-04

    Hi,

    I'm running 5.1.3 for the first time and uploaded some docs to test the dms.
    The docs are uploaded and thumbnails have been created, but I'm not able to view the docs in the browser:

    PDF.js Version 1.5.188 (build: 0e2d50f)
    Nachricht: Unexpected server response (0) while retrieving PDF "http://xxx/op/op.ViewOnline.php?documentid=10&version=1".

    I can't see any errors, neither in the apache- nor the seeddms-logs.

    My seeddms is located under /var/www/seedms51x/www/ and my content is located under /var/dms/docs/

    I don't know where to fix this :(

    Edit:
    Downloading the document works.
    It must be a problem with http://xxx/op/op.ViewOnline.php?documentid=14&version=1, because if I try to open this URL directly, I receive an "error while loading the pdf document".

    With best regards,
    Christian.

     

    Last edit: Christian Frey 2017-10-05
  • Christian Frey

    Christian Frey - 2017-10-17

    Problem fixed:

    I needed to disable zlib.output_compression in php, because pdf.js is not able to deccode gzipped pdf-files.
    Create a .htaccess file in your seeddms/www root with the following content to disable gzip:

    php_value zlib.output_compression Off
    

    And your done. ;)

     

Log in to post a comment.

MongoDB Logo MongoDB