Viewing 2 replies - 1 through 2 (of 2 total)
  • GDE is a document viewer by nature so there’s no normal option to display just a link. You may be able to achieve the same effect by setting your maximum file size in GDE Settings to something ridiculously low, but that’s not how it was intended to be used. This would affect all the instances of GDE on your site, so you could not pick and choose.

    Another option (which also applies to all the PDFs on your site globally) is to edit your .htaccess file to force downloads of all PDF file types. This isn’t a GDE function either but may fit your needs. The sample code is below for convenience but is not supported by this plugin:

    <FilesMatch "\.(?i:pdf)$">
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </FilesMatch>
    Thread Starter kellynguyen404

    (@kellynguyen404)

    Thank you for your response k3davis. In my current htaccess file, where do I paste this, and do I need to use a shortcode to wrap around the link to the file I want downloaded by users? Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Anyway to disable the viewer and only use download link?’ is closed to new replies.