Link to home
Create AccountLog in
Avatar of trta911
trta911Flag for Czechia

asked on

How to send command to printer with PHP

I have multi-page pdf (which is generated by mpdf and codeigniter) and I want to print on reciept printer (OKprint 085) I want after every page on this pdf activate cutter on printer and cut page. On manual I inspected, there is a command "GS V m / GS V m n" (select cut mode and cut paper).
How can I send this command by php to pdf /printer for cutting every page on pdf?

Very thanks!
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

sorry it might sound stupid but what do u mean by activate cutter on printer.
isn't it printing one page at a time?
do u need to explicitly 'ask' to cut the page?
Avatar of trta911

ASKER

I meant that on this printer is knife that cut pages after printing. I generating some pdf bulk reports that I wish print on this printer and after every page on pdf i need to cut it from printer. I using this printer: http://www.barcode-manufacturer.com/pdf/PRP-085.pdf

And yes, I need explicitly cut pages, because at now printer cut printer paper roll after last page.
ASKER CERTIFIED SOLUTION
Avatar of Abhishek Chakravarty
Abhishek Chakravarty
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer