Questions tagged [php-printer]

14 questions
1
vote
1 answer

Is there any way to print receipt using PHP?

I am trying this way, but its not producing proper alignment. I am trying to print using network printer "HP LaserJet Mono PCLmS Class Driver" in my LAN. Printing is works properly but alignment is not perfect. $text1 = $this->string_align("Example…
1
vote
2 answers

Printing POS (EPSON TM-U220D) Printer Using Mike42/Escpos-php PHP Library

We are working on a PHP based web application for a money exchanger. The money exchanger we are working for use POS (EPSON TM-U220D) Printer for customer receipt, So we are looking for a way to print from the web application to the POS Printer and…
G M Kibria
  • 11
  • 1
  • 2
1
vote
0 answers

PHP Error on "Warning: printer_draw_bmp(): Failed to load bitmap"

I cannot print an image file using printer_draw_bmp() function. I already installed the php printer dll and imagick on the windows 7 (32 bits). Here is my sample code. But I get "Warning: printer_draw_bmp(): Failed to load bitmap". Can anyone guide…
Ah Dii
  • 38
  • 7
0
votes
0 answers

How to set font size 12 on php printer

Good day guys, I need your help to fix my code. Im using client's printer and I need to set the font to 12 because the output is to large. please check the code below $content .= "This receipt is for inventory purpose only.**"; $printer =…
Jstin
  • 9
  • 1
0
votes
0 answers

php_printer() Not Working on Cpanel Server Side

i am doing web application based on php , while i am forcing my content to network printer the following error was happening.. Fatal error: Uncaught Error: Call to undefined function printer_open() in E:\xampp\htdocs\print\index.php:3 Stack…
0
votes
1 answer

How To Write Image On Temp File Php

I want to create an invoice print, but on the invoice there is a logo, so how can I write the logo to a Tmp File and also set the paper Size/Margin/Position on the Tmp File? I got this code from an article and it's working for print, but I don't…
0
votes
0 answers

How to print files using the php printer functions

Am using WAMP and the printer name is one on the LAN or even on a USB and is present in my devices and printers. This is working when I use "printer_draw_text" to print texts in the code. The problem is just with files. I have the following code…
emmal mbwe
  • 31
  • 7
0
votes
1 answer

Where to download and how to configure php_print.dll for PHP Version 5.5.12

I installed the wampserver 2.5 version. I need use the php extension of pinter.dll on php 5.5.12 to send infomration to thermal printer. But when I download the extension…
Jason
  • 363
  • 1
  • 8
  • 19
0
votes
0 answers

php printer_draw_text function position measurement unit

I am trying to directly print in thermal print paper, using PHP. Its printing. But I am not able to set position of the text.. In the manual http://docs.php.net/manual/da/function.printer-draw-text.php, they have mentioned void printer_draw_text (…
Dinesh Patra
  • 1,125
  • 12
  • 23
0
votes
1 answer

Call to undefined function printer_list()

I'm getting Call to undefined function printer_list() cuz my php_printer.dll isn't working and in the error log I'm getting PHP Startup: Unable to load dynamic library. c:/wamp64/bin/php/php5.6.31/ext/php_printer.dll I searched the entire web for…
Sophie Bernard
  • 197
  • 3
  • 13
0
votes
1 answer

I want to print echo inside echo code

I am trying to modifi link in this line, can you help me? /'. str_replace(' ', '+', $location).'/ code this is the fals code: /);?>/
0
votes
1 answer

PHP Print Function Escape

pee2pee
  • 3,619
  • 7
  • 52
  • 133
-1
votes
1 answer

Install compser failed, and php_printer not working in xampp php 8?

I want to install composer, and use the printer_open / php_printer feature with the aim of printing invoices without preview (direct printing) using PHP 8 (Xampp). But when installing composer there is a problem : A setting in your php.ini could be…
Usaha
  • 1
  • 3
-2
votes
2 answers

PHP PRINTER EROR

Good day everyone please help me to solved this code. I want to print all value of an array in php printer but only 1 only display. Im using php codeigniter framework 3. thank you in advance. enter image description here Output: Qty Description 1 …
Jstin
  • 9
  • 1