• kenniswong1977

    (@kenniswong1977)


    Hi, I’m using the PDF Lite Ink plugin with Woocommerce on WordPress.

    With the plugin in, the watermark is added to the bottom of the page as described, but the layers of the PDF are lost.

    Additionally, my PDF is set to “Single Page Continuous” under Document Properties (the “Initial View” tab). The setting allows the PDF to scroll smoothly without jumping from one page to the next sharply.

    With the PDF Lite Ink plugin and the watermark added, that setting becomes “Single Page”.

    I’ve tested it without the plugin. Without the plugin, the PDF behaves normally, and the setting remains “Single Page Continuous”.

    Could you help? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Carrie

    (@1ittlepackage)

    Hello @kenniswong1977

    Yes, the plugin uses the TCPDF defaults for SetDisplayMode(). You could try using one of the hooks included in the free plugin to SetDisplayMode(), like so:

    function try_to_set_display_mode( $pdf ) {
    $pdf->SetDisplayMode('default', 'OneColumn');
    }
    add_action( 'wwpdf_before_output', 'try_to_set_display_mode', 15, 1 );

    We offer no guarantee this free code will work for your issue; please use your resources to review and edit it accordingly. If you don’t know how to add this code to your WP website, use the Code Snippets plugin. Also, this action hook is deprecated so it will spit warnings if your debugging is turned on.

    If you wish to do this with the paid version of PDF Ink, it would work like this:

    add_filter( 'pdfink_filter_layout_mode', function(){return 'continuous';} );

    Thread Starter kenniswong1977

    (@kenniswong1977)

    Thank you very much, Carrie. You answered one part of my question regarding the continuous mode. Could you also shed some light on the other part of my answer, which is the loss of the layers?

    Plugin Support Carrie

    (@1ittlepackage)

    PDF Layers are an advanced PDF feature which TCPDI/TCPDF (used in free PDF Ink Lite) do not support. Learn more about what you can do here: https://pdfink.com/pre-purchase-faq/#advanced-pdf-support

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.