Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: [wp-mpdf] Stylesheet Filter
    Thread Starter dannywynne

    (@dannywynne)

    Appreciate your response.

    I have already implemented this customization successfully, but I’d prefer to not have to manage it as a branch. Had a recent issue where a site that had this deployed auto-updated all their plugins, which caused some havoc.

    To your point about the CSS, totally agree. The CSS we are talking about here is only for the pdf print.

    Here’s my use case, and you can see if it merits a change – the PDF CSS file is determined via a check of two logic steps:
    1) State information for the page (think query string, cookies, etc.).
    2) I am storing the physical PDF CSS files in a different location than where WP-MPDF is looking for them. I wanted these integrated into a supporting plugin for ease of management.

    I would say that the ability to move the PDF CSS elsewhere is a pretty strong argument to add a filter on the stylesheet. But that’s also because it is part of my reason to customize it, so I’m biased.

    Thanks for taking the time to consider this.

Viewing 1 replies (of 1 total)