deip

deip supports this item

Supported

This author's response time can be up to 2 business days.

Popular questions for this item

PDF not loading or Slow loading (no partial loading)

For better and fast experience – PDF is loaded on demand, If it is served as ‘gzip’ Whole PDF will be loaded – very bad user experience.

Also if the files are hosted in different domain name the you need to enable CORS:

For Apache Server, add following lines in .htaccess file
    Header set Access-Control-Allow-Origin "*" 
    Header add Access-Control-Allow-Headers "Range" 
    Header add Access-Control-Expose-Headers: "Accept-Ranges, Content-Encoding, Content-Length, Content-Range" 

More Info:

PHP server https://enable-cors.org/server_php.html

Other Servers: https://enable-cors.org/server.html

For partial loading. disable gzip:
<IfModule mod_headers.c>
    <FilesMatch "\.pdf$">
        RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]
    </FilesMatch>
</IfModule>
reference: https://stackoverflow.com/questions/9249243/how-to-disable-apache-gzip-compression-for-some-media-files-in-htaccess-file

Page/Website Crashes

DFlip is optimized to work with big size PDF by using and loading only 8-10 pages at a time.

Webpage may not handle big PDF when loaded fully. Make sure the WHOLE PDF is not loaded. disable ‘gzip’ for PDF and web optimize the PDF.

Disable Hotlinking for download (Apache Server)

Regarding the protected PDF feature, that is more of an edit in .htaccess file that we have refined over time. In .htaccess add this to bottom.
<filesMatch "^secured.*\.(pdf)$">
  FileETag None
  <ifModule mod_headers.c>

    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?domainname.*\.(js)$ [NC] 
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?domainname.*\.(js)\?.*$ [NC] 
    RewriteRule \.(pdf)$ - [F]

     Header unset ETag
     Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" 
     Header set Pragma "no-cache" 
     Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" 
  </ifModule>
</filesMatch>
 
  1. Instead of domainname put your domain name.
  2. The PDF files that you want to be secure should begin with “secured” and end with ”.pdf” example. “secured-book-21.pdf” Or you can change the condition to your suiting
  3. Disable “PDF Download” button, won’t work for secured files so better remove from the respective flipbook.

Creating Custom Buttons/Thumbs

You can create custom buttons provided by theme, or your own HTML – to trigger flipbooks..

[dflip id="23" type="custom"]
     [your_custom_button_shortcode]
[/dflip]
[dflip id="23" type="custom"]
    <img src="your_image.jpg" class="my-custom-class" style="width:200px;height:300px" />
[/dflip]

Show more

Contact the author

This author provides limited support for this item through this item's comments.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy

by
by
by
by
by
by