Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    You can read about using the Zoom values in this doc article: https://wp-pdf.com/premium-instructions/shortcodes/#zoom

    The default value can be applied on a per-shortcode/per-block level.

    Thread Starter medialps

    (@medialps)

    The default value can be applied on a per-shortcode/per-block level.

    Sorry I didn’t understand, you mean I have to edit every single shortcode and there is no default?

    Plugin Author Slava Abakumov

    (@slaffik)

    As far as I remember, you are using a paid version of the plugin.

    Here is a code snippet that you can put into the /wp-content/mu-plugins/tweak-pdfembedder.php file and that will set the default value for all shortcodes/blocks regardless of their settings:

    add_filter( 'pdfemb_premium_viewer_strings', static function( $atts ) {
    $atts['zoom'] = 'page-actual';
    $atts['fpzoom'] = 'page-actual';

    return $atts;
    } );

    You can read here or here how to do that.

    Thread Starter medialps

    (@medialps)

    It works perfectly, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.