-
Notifications
You must be signed in to change notification settings - Fork 64
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
Printing On PHP #22
Comments
You can use a php script to generate a PDF file then submit that to the API with your selected printer and it will print. For multiple printers, I would suggest you setup a main server and network share all your printers so you can just install PrintNode client on the main machine and access all the available printers without a problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm so facinated with this API, I've read all about it, I just want to print from my APP WEB and I think that this can help me, but, firstly I need to know something else:
Context Software
My system basically takes the register of a person, with his personal data.
How I'm Doing The Printing For My Software
Actually my software is in production, and the printing proccess is with the preview printing from the navigator and what I need is for it to always be printed.
Why I'm here?
Label
Questions
CODE
` <?php
include 'PrintNode/Loader.php';
$credentials = new PrintNode\Credentials('xxxxx.xxxxxx',
'xxxxxxxxxxxxxxxxxxxx');
$credentials->setApiKey(PRINTNODE_APIKEY);
$request = new PrintNode\Request($credentials);
// Initialise a Child Account
$account = new PrintNode\Account();
// Set properties on the Child Account
$account->Account = array(
"firstname" => "11",
"lastname" => "111",
"password" => "111111",
"email" => "[email protected]"
);
// Post the Child Account to the API
$aNewAccount = $request->post($account);
// You can get the Child Account ID from the response object
$id = $aNewAccount->GetDecodedContent()["Account"]["id"];
?>`
RESULT
The text was updated successfully, but these errors were encountered: