The Wayback Machine - https://web.archive.org/web/20210201212140/https://github.com/topics/printer
Skip to content
#

printer

Here are 453 public repositories matching this topic...

jomarlubrido
jomarlubrido commented Nov 24, 2017

I am trying to print on shared printer, but I don't understand why I get Permission denied when using
$connector = new WindowsPrintConnector("smb://Windows10-pc/".$printer_name);

but when I tried this code at the bottom it simply works, and i never added a Guest permission.

$printer = "\\".'Windows10-pc'."\".$printer_name;
if($ph = printer_open($printer)){
printer_set_option($p

davidsyoung
davidsyoung commented Jan 4, 2021

Describe the bug
On windows platform, when there is a printer with a space in it's name, and you pass a printer, the command fails to run as it's not escaped with quotes.

To Reproduce
Steps to reproduce the behavior:

  1. Rename printer with a space in it
  2. Pass that printer name as returned by getPrinters()
  3. Command that is produced doesn't run as there's a space.

**Expected b

Improve this page

Add a description, image, and links to the printer topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the printer topic, visit your repo's landing page and select "manage topics."

Learn more