ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Enable document and PDF previews in Nextcloud

    IT Discussion
    1
    2
    3.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      manxam
      last edited by

      Seeing as how many of you use Nextcloud (thank you @scottalanmiller and @JaredBusch for your work on the deployment script), how does one get document previews to work?
      Libreoffice is installed and my config.php contains:

        'preview_libreoffice_path' => '/usr/bin/libreoffice',
        'enabledPreviewProviders' => array(
              'OC\Preview\PNG',
              'OC\Preview\JPEG',
              'OC\Preview\GIF',
              'OC\Preview\BMP',
              'OC\Preview\XBitmap',
              'OC\Preview\MP3',
              'OC\Preview\TXT',
              'OC\Preview\MarkDown',
              'OC\Preview\MSOffice2003',
              'OC\Preview\MSOffice2007',
              'OC\Preview\MSOfficeDoc',
              'OC\Preview\OpenDocument',
              'OC\Preview\PDF',
        ),
      

      Yet whenever I click on an doc/docx, xls/xlsx, or pdf I'm prompted to download instead of providing me a preview.

      The logs don't appear to contain any errors.

      Any help would be greatly appreciated!

      1 Reply Last reply Reply Quote 2
      • M
        manxam
        last edited by manxam

        Searched the interwebs and, it appears, that Nextcloud's idea of a "preview" is, in fact, a thumbnail. Only PDF files will actually display a true "preview" when using the built-in PDF viewer app.

        I guess this won't work. I was hoping for more 😞

        https://github.com/nextcloud/documentation/issues/710

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post