Support » Plugin: wp-mpdf » Output custom variables

  • Resolved jpisanu


    I’m trying to append a custom variable to send the value to the pdf page.
    Something like /?output=pdf&myvariable=myvariable.

    Is there any way, article, documentation I could see in order to do this without having to alter the plugin files?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author fkrauthan


    Create a custom pdf template and put that change into the pdf template code. You have full access to all PHP and wordpress functions in your template file.

    Hi! Thanks for your quick answer!

    The issue I was having was on the origin page, not on the pdf page, I needed to send this custom url with my variable in it but couldn’t find a way.

    I created a custom form though adding the output=pdf to my variable and now everything is working as I expected.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Output custom variables’ is closed to new replies.