This is an archived forum post. The information may be outdated. Contact us if you have any questions.

CSS 3 Media Print Queries Not Working

zeusdev1 wrote on 2015-03-10:
Hi,
We removed the javascript implementation for save to pdf as suggested by you and have implemented a save to pdf link for saving .
In order to not show the "Save as pdf " link in the downloaded pdf , we added media query as follows:


@media print {
#saveToPdf{
display:none !important;
}

}

For some reason, the query does not work and the button shows on the pdf as well.


Please advise .


Regards,
Aman Deep
zeusdev1 wrote on 2015-03-16:
Hi Team,

Any update on the above issue?Our pdf report module is down due to above issue.

Regards,
Aman Deep
support wrote on 2015-03-16:
Hello,

Could you please post a link to a web page that demonstrates the problem?
zeusdev1 wrote on 2015-03-16:
PFA the link as requested:-

http://zeus.iristrack.com/client_report/report_screen_pdf/456/558/0c6746fd7d7e2ec9e7741eb4db06f1e5


save as pdf link is present on the cover page of the report rigt below the project title.

Please let me know if you have any queries.

Regards,
Sanju
support wrote on 2015-03-16:
You need to specify that you want to use the print media css. Add "use_print_media=1" to the save as pdf link:
//pdfcrowd.com/url_to_pdf/?use_print_media=1&vmargin=...