[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2023-01-08 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

Samuel Mehrbrodt (allotropia)  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |NOTABUG

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #7 from dev.lima...@icloud.com ---
(In reply to Mike Kaganski from comment #6)

Ok, now I see the whole picture. Really thank you for your help!
This is bug no more.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #6 from Mike Kaganski  ---
(In reply to dev.limarev from comment #5)
> If LibreOffice can block some printers, for example "Microsoft Print To PDF"?
> Or the only way to have desired behaviour is to turn off these Microsoft
> printers at system level?

I suppose that LibreOffice could filter some printers from the list shown here.
Yet, it's not only "these Microsoft printers" - there are many virtual printers
available: search for "printer" at the related Wikipedia article[1].
Additionally, I believe that the names of these printers on the system could
change based on the software version, localization, and number of copies of a
printer (it's possible to have several such "printers" installed, with
different settings each).

Thus, the correct approach is indeed to avoid such printers on the system
level, where exporting is restricted.

[1] https://en.wikipedia.org/wiki/List_of_PDF_software#Creators_3

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #5 from dev.lima...@icloud.com ---
(In reply to Mike Kaganski from comment #3)
> No. But your description ("3.Click the 'Print' button; 4.Prompt to save the
> document in pdf") indicate that the printer that is selected in the Print
> dialog is a virtual PDF printer installed on your system (e.g., "Microsoft
> Print To PDF"). And it's the printer that shows you the "Save As" dialog,
> not LibreOffice; and LibreOffice can't prevent a third-party printer driver
> from showing whatever that driver wants...

Thank you for detailed explanation! Yep, "Microsoft Print To PDF" was indeed
selected. Oh, now I see. If LibreOffice can block some printers, for example
"Microsoft Print To PDF"?
Or the only way to have desired behaviour is to turn off these Microsoft
printers at system level?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #4 from Mike Kaganski  ---
(In reply to dev.limarev from comment #2)
> PDF virtual printer execution always results in SaveAs dialog?

And "yes" to this one :) I should had been more specific in my previous reply:
the "No" there was to the "LibreOffice executes PDF virtual printer by design
after 'Print' button was clicked?" question.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #3 from Mike Kaganski  ---
(In reply to dev.limarev from comment #2)
> Sorry, I'm not sure what is PDF virtual printer exactly means. LibreOffice
> executes PDF virtual printer by design after 'Print' button was clicked?
> PDF virtual printer execution always results in SaveAs dialog?

No. But your description ("3.Click the 'Print' button; 4.Prompt to save the
document in pdf") indicate that the printer that is selected in the Print
dialog is a virtual PDF printer installed on your system (e.g., "Microsoft
Print To PDF"). And it's the printer that shows you the "Save As" dialog, not
LibreOffice; and LibreOffice can't prevent a third-party printer driver from
showing whatever that driver wants...

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #2 from dev.lima...@icloud.com ---
(In reply to Mike Kaganski from comment #1)
> For print, there's a separate LockPrint option [1]. A PDF virtual printer is
> just a printer - how could LibreOffice block it without blocking the whole
> printing?
> 
> [1]
> https://api.libreoffice.org/docs/idl/ref/
> servicecom_1_1sun_1_1star_1_1document_1_1MediaDescriptor.
> html#a726c7b60ea2b2c1caa2766576dcaa148

Thank you for reply!

In my case I want user to be able to print the document, but not to export.
That's why I'm not using lockPrint option. So if lockExport is set to true, I
expected SaveAs dialogs to be disabled wherever they appear.

Sorry, I'm not sure what is PDF virtual printer exactly means. LibreOffice
executes PDF virtual printer by design after 'Print' button was clicked?
PDF virtual printer execution always results in SaveAs dialog?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 152611] Can save as pdf if I open the Print dialog and click the 'Print' tab while lockExport option is set to true

2022-12-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152611

--- Comment #1 from Mike Kaganski  ---
For print, there's a separate LockPrint option [1]. A PDF virtual printer is
just a printer - how could LibreOffice block it without blocking the whole
printing?

[1]
https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1document_1_1MediaDescriptor.html#a726c7b60ea2b2c1caa2766576dcaa148

-- 
You are receiving this mail because:
You are the assignee for the bug.