Questions tagged [lpr]

The Line Printer Remote protocol (or LPR) is a network protocol for submitting print jobs to a remote printer.

The Line Printer Daemon protocol/Line Printer Remote protocol (or LPD, LPR) is a network protocol for submitting print jobs to a remote printer.

The original implementation of LPD was in the Berkeley printing system in the BSD UNIX operating system; the LPRng project also supports that protocol.

The Common Unix Printing System (or CUPS), which is more common on modern Linux distributions, supports LPD as well as the Internet Printing Protocol (IPP).

The LPD Protocol Specification is documented in RFC 1179.

More information is available on Wikipedia.

76 questions
0
votes
1 answer

Command line printing of text files to fit one page on Unix / Mac OS

I need to print a bunch of text files. They are all pretty small and they fit okay on one text page if the font size is chosen adequately. How can I do this automatically? I tried (find ... -exec ... for the full call, this is one document only ) lp…
user2707001
  • 1,543
  • 12
  • 13
0
votes
1 answer

shell_exec(lpr $var) wont print

I'm trying to send a codebar to a thermal printer via shell_excec(), the variable 'a' contains the route of the desired code and the code name itself. I'm working on localhost. My problem is that this chunk of code is properly executed in GNU/Linux…
Uriel Coria
  • 92
  • 1
  • 8
0
votes
1 answer

Filling Grayscal Image C#

I'm designing an LPR application for academic purpose, and one of the steps in the detection step is to fill the holes in a dilated edge detected grayscale image, I would like to know if there's a C# code that could do that
Scarnet
  • 738
  • 2
  • 11
  • 36
0
votes
2 answers

MATLAB NN toolbox: Error using trainlm

I have a 90×8 dataset that I feature-extracted (by summing 1's in every 10×10 cell) from 90 character images i.e. digits 1-9. Every row represents an image. I am trying to use following code to train a neural network and recognize new input…
Mehdi Haghgoo
  • 3,144
  • 7
  • 46
  • 91
0
votes
1 answer

LPR with MATLAB: how to find only one rectangle?

I am using the following code in MATLAB to find the rectangle containing a car's license plate: clc clear close all %Open Image I = imread('plate_1.jpg'); figure, imshow(I); %Gray Image Ib = rgb2gray(I); figure, subplot(1,2,1),…
Mehdi Haghgoo
  • 3,144
  • 7
  • 46
  • 91
0
votes
1 answer

Processing 2: randomly pick file name from array?

I'm trying to get Processing to randomly pick a document and print it from terminal, but so far I'm not sure how to do the first part: put filenames in an array and have Processing randomly pick filenames from the array. Any help would be…
0
votes
1 answer

lpr to print files with different names and directories

I have a script witch use lpr to print the output to a PDF file. I would like to change the location or even the file name of the saved file. I read several forums about lpr and did not find anything on how to specify the name and the directory of…
Vagelism
  • 601
  • 1
  • 16
  • 27
0
votes
1 answer

decode LPR media

I'm trying to decode a SIP call like below but I don't know anything about this codec. Please help me or suggest me some documents that I should read. m=audio 49198 RTP/AVP 118 a=rtpmap:118 SIRENLPR/48000/1 a=fmtp:118 bitrate=64000 ... m=video 49200…
Ten Ho
  • 1
  • 1
  • 4
0
votes
1 answer

Issue with an LPR Command in VB

I am creating a VB app which will "move" xls reports from a directory to a ReportSafe app. I am also working in an existing VB app which does just that, so I am using it for reference. It isn't as simple as moving files from one directory to…
Ben
  • 704
  • 4
  • 10
  • 25
0
votes
2 answers

lpr on HP print truncated document

i'm new here and first of all sorry for my bad english. This is my problem: I generate a PDF document using FPDF (the rsulting document is correct, i check twice) and send it to a network printer using lpr…
Andrea
  • 1
  • 2
0
votes
2 answers

Read value from lines for printing copies in php or shell script

How can I read the value "5" in the following example to issue 5 copies of file print? For example.. My output is similar to the code below. Order: 101 Guest: Raj Phone: xxx-xxx-xxxx 5 x Bananas 5 x Grapes 5 x Apples how can I read value 5 in…
VKA
  • 209
  • 1
  • 7
  • 16
-1
votes
1 answer

lpr command - how to force black and white?

I have troubles with the LPR command. Before the printer has changed. I ran my instructions using lpr -P printer_name -o raw file_name Now I need to run print instructions on the new printer which only accepts black and white printed colors. After…
Cyril
  • 385
  • 1
  • 3
  • 11
-1
votes
1 answer

ALPR provider for Xillinx

I'm looking into doing some ALPR(Automatic License Plate Recognition) project and I see that some ALPR providers supports Raspherry Pi and Jetson devices. Does any support Xilinx
-1
votes
1 answer

Printing a A4 Booklet on A3 paper using lpr command

I would like to print a A4 Booklet on A3 paper on my mac os. For a strange reason only A5 booklet is produced. Here the command I use: lpr -o sides=two-sided-long-edge -o fit-to-page -o PageSize=A3 -o InputSlot=Tray3 -o Duplex=DuplexNoTumble -o…
olivier dadoun
  • 622
  • 6
  • 22
-1
votes
2 answers

Brother QL-720NW specifying media size seems ignored

The -o media=... is being ignored by the lpr command when printing on the Brother QL-720NW. I added custom paper sizes using: sudo brpapertoollpr_ql720nw -P QL720NW -n "62mm x 25mm" -w 62 -h 25 which works when setting the new size from within CUPS…
VH-NZZ
  • 5,248
  • 4
  • 31
  • 47