65.0.2 - No Longer Able to Prevent Printing via PHP
-
- Posts: 2
- Joined: March 7th, 2019, 12:31 pm
65.0.2 - No Longer Able to Prevent Printing via PHP
Since the update to version 65.0.2 Our company documentation map has been allowing printing of PDF documents. This is something that was previously prevented via our PHP code. The feature is still working on Chrome and Internet Explorer. I'm not entirely confident reporting it as a bug as perhaps it was an intended change or something that was never meant to function the way it did. Everything I can find about preventing people from printing, states that you cant and I am not able to find any references to the code being used. I know posting here is a long shot and I haven't provided much info to go on, but I figured it would be worth a try to see if anyone has any information about this change.
- jscher2000
- Posts: 11762
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
Re: 65.0.2 - No Longer Able to Prevent Printing via PHP
I don't understand the connection between printing a PDF document -- which I guess means a PDF you are viewing in Firefox's built-in PDF viewer -- and a PHP script. Could you explain the scenario in more detail?
-
- Posts: 2
- Joined: March 7th, 2019, 12:31 pm
Re: 65.0.2 - No Longer Able to Prevent Printing via PHP
Our documentation map is viewed via web browser.
You select the link to the particular work instructions or procedure you need to view and it opens a PDF within the browsers built in viewer.
Printing this PDF has been restricted as we do not want "uncontrolled" paper copies floating around.
If you want to be able to print it, you need to specify beforehand so that a watermark can be added.
Our PHP code which calls for the display of the PDF sets a flag to indicate if this has been done or not, and if it has not, it does not allow printing.
Since the latest Firefox update, this function has been failing and the documents are now able to be printed regardless.
You select the link to the particular work instructions or procedure you need to view and it opens a PDF within the browsers built in viewer.
Printing this PDF has been restricted as we do not want "uncontrolled" paper copies floating around.
If you want to be able to print it, you need to specify beforehand so that a watermark can be added.
Our PHP code which calls for the display of the PDF sets a flag to indicate if this has been done or not, and if it has not, it does not allow printing.
Since the latest Firefox update, this function has been failing and the documents are now able to be printed regardless.
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: 65.0.2 - No Longer Able to Prevent Printing via PHP
And if you test now in 65.0.0 or 65.0.1 it still works as you want?
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
- jscher2000
- Posts: 11762
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
Re: 65.0.2 - No Longer Able to Prevent Printing via PHP
Presumably the PHP script modifies the PDF that is served to the browser by indicating that it cannot be printed without entering a password.agoodwin86 wrote:Our PHP code which calls for the display of the PDF sets a flag to indicate if this has been done or not, and if it has not, it does not allow printing.
For example:
Unrestricted: https://www.jeffersonscher.com/temp/userChrome_css.pdf
Restricted: https://www.jeffersonscher.com/temp/use ... oprint.pdf
Adobe Acrobat enforces the print restriction. Firefox's built-in viewer does not. I don't think it ever has.