Print arbitrary files directly #261
Replies: 5 comments 1 reply
-
check out
|
Beta Was this translation helpful? Give feedback.
-
@sajadshouli You can now print directly to PDF with |
Beta Was this translation helpful? Give feedback.
-
@basst85 it is wonderful that you can print to a pdf, but can you print to a printer? |
Beta Was this translation helpful? Give feedback.
-
@digitall-it You can also print directly to a printer: Maybe it's possible to send a generated PDF to an API for direct/cloud printing? |
Beta Was this translation helpful? Give feedback.
-
I wasn't aware of this before, but it seems that each platform has a way to print from the command line. On macOS and Linux, there's a built-in tool called You may be able to use these commands directly from your PHP code via I expect at some point we'll have a neat cross-platform wrapper for this behaviour, if someone wants to PR that... |
Beta Was this translation helpful? Give feedback.
-
I have some pdf files which must printed directly after user order food in restaurant it means this process must be automatically. We use direct print google chrome extension. We pass pdf url and printer name to the direct print functions and the extension do the print
Other ways is write a asp.net application and run it on windows to do that since in asp.net we access to printers
Is there a way to do that with native php framwork? like create a desktop application with nativephp and install it on windows with xampp and pass the pdf url and printer name to a route to print pdf
Beta Was this translation helpful? Give feedback.
All reactions