0

I have a Drupal site that essentially is a product display where each individual item can be viewed with an "upgrade" from a dropdown menu. Within this page the module mPDF is used to generate a pdf-version of the page with a custom print.css

Example;

Model X has the option for either specification A or B (these are selected from a dropdown menu). Everything works fine when viewed in the browser, but when generating the pdf I always get specifications for value A in the dropdown – even if I'm viewing the site with the values of B when pressing the button to download a pdf.

I'm guessing this has something to do with the fact that the page loads (reloads?) and drops my selected dropdown-value without me noticing, or perhaps I need to pass the dropdown variable to the pdf-generator in the first place somehow?

I'd rather not change the module since it works excellent apart from this issue (and chances are I might encounter the same problem even if I swap out the module), so any pointers on how to solve this would be truly appreciated.

3
  • Please see the meaning of tags before using them. modules doesn't mean "I am asking this question about a module."
    – apaderno
    Nov 17 '15 at 10:23
  • Fair enough. But mPDF is the module in question and "This tag is for questions about modules hosted on Drupal.org". Not arguing though.
    – Lenny
    Nov 17 '15 at 10:29
  • It should not be used to generally mean "this question is about a module," when the question is about a module's code, or when the question is already using a tag specific for a module (for example, "views," "cck," or "pathauto"). It means, it should be used when asking a generic question about modules hosted on drupal.org, such as "How do I enable releases on drupal.org?" We had it applied for too much questions; that is why we had to restrict its usage.
    – apaderno
    Nov 17 '15 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.