Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printer support #103

Merged
merged 2 commits into from
Aug 1, 2023
Merged

Printer support #103

merged 2 commits into from
Aug 1, 2023

Conversation

mpociot
Copy link
Member

@mpociot mpociot commented Aug 1, 2023

This PR works in combination with NativePHP/electron-plugin#11 and adds support to retrieve information about the available printers, as well as silently (without user interaction) print HTML documents.

$printers = System::printers();

System::print('<h1>Hello World</h1>', $printers[0]);

@mpociot mpociot merged commit a4605f0 into main Aug 1, 2023
@StefanNeuser
Copy link

@mpociot thank you very much! Any idea why System::printers(); returns nothing on my MacOS 14 with Herd? Maybe missing permissions within MacOS security settings during developing (php artisan native:serve)

@ormelflores
Copy link

Hi, @StefanNeuser, have you resolved this issue? I'm facing the same problem with Mac.

@StefanNeuser
Copy link

@ormelflores unfortunately not. Today i want to try electron without nativephp to get in touch with printer capabilities. Maybe @mpociot has a tip for us. I guess it's a issue with the security policies within macOs but actually i don't really now.

@elfeffe
Copy link

elfeffe commented Oct 28, 2023

Same problem with Mac here, there are no printers

@StefanNeuser
Copy link

StefanNeuser commented Oct 28, 2023 via email

@elfeffe
Copy link

elfeffe commented Oct 29, 2023

electron-vite.org

No NativePHP anymore?

@StefanNeuser
Copy link

StefanNeuser commented Oct 29, 2023 via email

@CodeTechNL
Copy link

Is there any update about this? Running into the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants