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

PaperSize parameter is not working #54

Closed
Roldification opened this issue Mar 29, 2022 · 1 comment
Closed

PaperSize parameter is not working #54

Roldification opened this issue Mar 29, 2022 · 1 comment

Comments

@Roldification
Copy link

Future printReceiptText(
ReceiptSectionText receiptSectionText, {
int feedCount = 0,
bool useCut = false,
bool useRaster = false,
double duration = 0,
PaperSize paperSize = PaperSize.mm58,
}) async {
final Uint8List bytes = await contentToImage(
content: receiptSectionText.content,
duration: duration,
);
final List byteBuffer = await _getBytes(
bytes,
paperSize: PaperSize.mm58,
feedCount: feedCount,
useCut: useCut,
useRaster: useRaster,
);
_printProcess(byteBuffer);
}

kindly fix the PaperSize parameter. it is statically set to PaperSize.mm58 we cannot change size because of that. Thanks!

@andriyoganp
Copy link
Owner

Solved in here #52

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

No branches or pull requests

2 participants