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

Implement upside-down print command #652

Merged
merged 1 commit into from
Oct 25, 2018
Merged

Implement upside-down print command #652

merged 1 commit into from
Oct 25, 2018

Conversation

mike42
Copy link
Owner

@mike42 mike42 commented Oct 25, 2018

Example snippet:

<?php
/* Demonstration of upside-down printing */
require __DIR__ . '/vendor/autoload.php';
use Mike42\Escpos\Printer;
use Mike42\Escpos\PrintConnectors\FilePrintConnector;

$connector = new FilePrintConnector("/dev/usb/lp0");
$printer = new Printer($connector);

// Most simple example
$printer -> text("Hello\n");
$printer -> setUpsideDown(true);
$printer -> text("World\n");
$printer -> cut();
$printer -> close();

Prints:

615-example

Reference:

@mike42 mike42 merged commit 7f7c02b into development Oct 25, 2018
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.

1 participant