Re: GNU Barcodes

2015-01-03 Thread Darac Marjal
On Wed, Dec 24, 2014 at 01:22:25AM -0500, Ethan Rosenberg wrote:
 On 12/11/2014 04:59 AM, Darac Marjal wrote:
 On Thu, Dec 11, 2014 at 01:54:08AM -0500, Ethan Rosenberg wrote:
 Dear List -
 
 I wish to be able to print a barcode .5 inches from top of the page and 
 centered.
 
 I generate the barcode -
 
 yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39  test.ps;
 
 First of all, try viewing 'test.ps' using ghostview or some other
 postscript viewer. As the saying goes: Garbage In, Garbage Out. If the
 postscript file isn't right, then you'll end up printing correct
 garbage.
 
 
 and print -
 
 lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o
 page-bottom=44 -o page-left=60 -o page-right=80
 
 Perhaps a matter of preference here, but personally I'd endeavour to get
 the margins, page size etc correct in the post script and then just pass
 a whole page to the printer. In that case, use the '-g' option to
 barcode to size and position the barcode, then use '-p letter' to place
 the barcode on a full sheet. You could then just say lpr -P LJ1012
 /var/www/test.ps.
 
 
 The barcode is
 upside down
 not centered
 at the very top and truncated
 and multiple copies are printed.
 
 TIA
 
 Ethan
 ---
 I've tried the following and they all give the barcode on the bottom of the 
 page -
 
 lpr -o media=Custom.5x5cm   -P LJ1012 /var/www/test.ps
 root@meow:/var/www# lpr -o media=leter   -P LJ1012 /var/www/test.ps
 root@meow:/var/www# lpr -o media=leter   -P LJ1012 /var/www/test.ps
 root@meow:/var/www# lpr -o media=leter -o position=top  -P LJ1012 
 /var/www/test.ps
 root@meow:/var/www# lpr -o media=leter -o position=bottom  -P LJ1012 
 /var/www/test.ps
 root@meow:/var/www# lpr -o media=leter -o position=bottom  -P LJ1012 
 /var/www/test.ps
 root@meow:/var/www# lpr -o media=Custom.5x5cm -o position=bottom  -P LJ1012 
 /var/www/test.ps
 
 I might have an error in my ps file.  Here it is
 
 %!PS-Adobe-2.0
 %%Creator: barcode, libbarcode sample frontend
 %%DocumentPaperSizes: 8.5x11.0in

Yes. Your Postscript says to use an 8.5x11 page and then to draw the
barcode at the bottom left of that. If you save this to a file and view
it with evince, ghostview or whatever, you'll see that.

So, what you're trying to do is place an 8.5x11 page at the bottom/top
of a letter sheet. That's not really going to move the contents of the
page.

So, either print the barcode to a smaller sheet (so your postscript page
is smaller) and then locate that on your sheet of letter paper, or keep
the postscript page the same as your target, and locate the barcode
elsewhere in that.

 %%Pages: 1
 %%EndComments
 %%EndProlog
 
 %%Page: 1 1
 
 % Printing barcode for 12345, scaled  1.00, encoded using code 39
 % The space/bar succession is represented by the following widths (space 
 first):
 % 
 01311313111311331113331313313311131311331113133131131311
 [
 %  height  xpos   ypos  width   height  xpos   ypos  width
[75.00  10.50  50.00  0.85]  [75.00  14.50  15.00  0.85]
[75.00  17.50  15.00  2.85]  [75.00  21.50  15.00  2.85]
[75.00  24.50  15.00  0.85]  [70.00  27.50  20.00  2.85]
[70.00  30.50  20.00  0.85]  [70.00  34.50  20.00  0.85]
[70.00  36.50  20.00  0.85]  [70.00  39.50  20.00  2.85]
[70.00  42.50  20.00  0.85]  [70.00  45.50  20.00  2.85]
[70.00  50.50  20.00  0.85]  [70.00  52.50  20.00  0.85]
[70.00  55.50  20.00  2.85]  [70.00  59.50  20.00  2.85]
[70.00  63.50  20.00  2.85]  [70.00  68.50  20.00  0.85]
[70.00  70.50  20.00  0.85]  [70.00  72.50  20.00  0.85]
[70.00  74.50  20.00  0.85]  [70.00  76.50  20.00  0.85]
[70.00  81.50  20.00  2.85]  [70.00  84.50  20.00  0.85]
[70.00  87.50  20.00  2.85]  [70.00  91.50  20.00  2.85]
[70.00  94.50  20.00  0.85]  [70.00  99.50  20.00  2.85]
[70.00 102.50  20.00  0.85]  [70.00 104.50  20.00  0.85]
[70.00 106.50  20.00  0.85]  [70.00 109.50  20.00  2.85]
[70.00 113.50  20.00  2.85]  [70.00 118.50  20.00  0.85]
[70.00 120.50  20.00  0.85]  [75.00 122.50  15.00  0.85]
[75.00 126.50  15.00  0.85]  [75.00 129.50  15.00  2.85]
[75.00 133.50  15.00  2.85]  [75.00 136.50  15.00  0.85]
 
 ] { {} forall setlinewidth moveto 0 exch rlineto stroke} bind forall
 [
 %   charxpos   ypos fontsize
 [(1)   32.00  10.00 12.00]
 [(2)   48.00  10.00  0.00]
 [(3)   64.00  10.00  0.00]
 [(4)   80.00  10.00  0.00]
 [(5)   96.00  10.00  0.00]
 ]   { {} forall dup 0.00 ne {
   /Helvetica findfont exch scalefont setfont
 } {pop} ifelse
 moveto show} bind forall
 % End barcode for 12345
 showpage
 
 
 TIA
 
 Ethan
 
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: https://lists.debian.org/549a5ba1.8020...@hygeiabiomedical.com
 


signature.asc
Description: Digital 

Re: GNU Barcodes

2014-12-23 Thread Ethan Rosenberg

On 12/11/2014 04:59 AM, Darac Marjal wrote:

On Thu, Dec 11, 2014 at 01:54:08AM -0500, Ethan Rosenberg wrote:

Dear List -

I wish to be able to print a barcode .5 inches from top of the page and 
centered.

I generate the barcode -

yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39  test.ps;


First of all, try viewing 'test.ps' using ghostview or some other
postscript viewer. As the saying goes: Garbage In, Garbage Out. If the
postscript file isn't right, then you'll end up printing correct
garbage.



and print -

lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o
page-bottom=44 -o page-left=60 -o page-right=80


Perhaps a matter of preference here, but personally I'd endeavour to get
the margins, page size etc correct in the post script and then just pass
a whole page to the printer. In that case, use the '-g' option to
barcode to size and position the barcode, then use '-p letter' to place
the barcode on a full sheet. You could then just say lpr -P LJ1012
/var/www/test.ps.



The barcode is
upside down
not centered
at the very top and truncated
and multiple copies are printed.

TIA

Ethan

---
I've tried the following and they all give the barcode on the bottom of the 
page -

lpr -o media=Custom.5x5cm   -P LJ1012 /var/www/test.ps
root@meow:/var/www# lpr -o media=leter   -P LJ1012 /var/www/test.ps
root@meow:/var/www# lpr -o media=leter   -P LJ1012 /var/www/test.ps
root@meow:/var/www# lpr -o media=leter -o position=top  -P LJ1012 
/var/www/test.ps
root@meow:/var/www# lpr -o media=leter -o position=bottom  -P LJ1012 
/var/www/test.ps
root@meow:/var/www# lpr -o media=leter -o position=bottom  -P LJ1012 
/var/www/test.ps
root@meow:/var/www# lpr -o media=Custom.5x5cm -o position=bottom  -P LJ1012 
/var/www/test.ps

I might have an error in my ps file.  Here it is

%!PS-Adobe-2.0
%%Creator: barcode, libbarcode sample frontend
%%DocumentPaperSizes: 8.5x11.0in
%%Pages: 1
%%EndComments
%%EndProlog

%%Page: 1 1

% Printing barcode for 12345, scaled  1.00, encoded using code 39
% The space/bar succession is represented by the following widths (space first):
% 
01311313111311331113331313313311131311331113133131131311
[
%  height  xpos   ypos  width   height  xpos   ypos  width
   [75.00  10.50  50.00  0.85]  [75.00  14.50  15.00  0.85]
   [75.00  17.50  15.00  2.85]  [75.00  21.50  15.00  2.85]
   [75.00  24.50  15.00  0.85]  [70.00  27.50  20.00  2.85]
   [70.00  30.50  20.00  0.85]  [70.00  34.50  20.00  0.85]
   [70.00  36.50  20.00  0.85]  [70.00  39.50  20.00  2.85]
   [70.00  42.50  20.00  0.85]  [70.00  45.50  20.00  2.85]
   [70.00  50.50  20.00  0.85]  [70.00  52.50  20.00  0.85]
   [70.00  55.50  20.00  2.85]  [70.00  59.50  20.00  2.85]
   [70.00  63.50  20.00  2.85]  [70.00  68.50  20.00  0.85]
   [70.00  70.50  20.00  0.85]  [70.00  72.50  20.00  0.85]
   [70.00  74.50  20.00  0.85]  [70.00  76.50  20.00  0.85]
   [70.00  81.50  20.00  2.85]  [70.00  84.50  20.00  0.85]
   [70.00  87.50  20.00  2.85]  [70.00  91.50  20.00  2.85]
   [70.00  94.50  20.00  0.85]  [70.00  99.50  20.00  2.85]
   [70.00 102.50  20.00  0.85]  [70.00 104.50  20.00  0.85]
   [70.00 106.50  20.00  0.85]  [70.00 109.50  20.00  2.85]
   [70.00 113.50  20.00  2.85]  [70.00 118.50  20.00  0.85]
   [70.00 120.50  20.00  0.85]  [75.00 122.50  15.00  0.85]
   [75.00 126.50  15.00  0.85]  [75.00 129.50  15.00  2.85]
   [75.00 133.50  15.00  2.85]  [75.00 136.50  15.00  0.85]

]   { {} forall setlinewidth moveto 0 exch rlineto stroke} bind forall
[
%   charxpos   ypos fontsize
[(1)   32.00  10.00 12.00]
[(2)   48.00  10.00  0.00]
[(3)   64.00  10.00  0.00]
[(4)   80.00  10.00  0.00]
[(5)   96.00  10.00  0.00]
]   { {} forall dup 0.00 ne {
/Helvetica findfont exch scalefont setfont
} {pop} ifelse
moveto show} bind forall
% End barcode for 12345
showpage


TIA

Ethan



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/549a5ba1.8020...@hygeiabiomedical.com



Re: GNU Barcodes

2014-12-11 Thread Johann Klammer
On 12/11/2014 08:10 AM, Ethan Rosenberg wrote:
 Dear List -
 
 I wish to be able to print a barcode .5 inches from top of the page and 
 centered.
 
 I generate the barcode -
 
 yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39  test.ps;
 
 and print -
 
 lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o 
 page-bottom=44 -o page-left=60 -o page-right=80
 
 The barcode is
 upside down
 not centered
 at the very top and truncated
 and multiple copies are printed.
 
 TIA
 
 Ethan
 
 
Have you ever read the story of Sysiphos?

Linux printing is similar. 
You will be digging trough several layers of abstractions. 
After finally having had a good look at cups low level driver 
interface you will find out that it's the printer driver that's at fault. 
You will notice that the driver is either closed source nad you have no 
chance of changing what's wrong, or you'll be looking at the 
drivers code but not be able to fix it, because you do not know 
your printers non-postscript internal communications protocol. 
And there's no way to find out. 
By the way you get there, you'll have wasted several weeks/months 
understanding all those shell scripts and conversions and the internals of 
the postscript interpreter(not that it would help you with the problem). 

Then, you'll go in full denial about your fruitless exploits. 

After a week you'll think it would be a fine Idea to print those 
barcodes(or some other documents)



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54895583.3060...@a1.net



Re: GNU Barcodes

2014-12-11 Thread Darac Marjal
On Thu, Dec 11, 2014 at 01:54:08AM -0500, Ethan Rosenberg wrote:
 Dear List -
 
 I wish to be able to print a barcode .5 inches from top of the page and 
 centered.
 
 I generate the barcode -
 
 yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39  test.ps;

First of all, try viewing 'test.ps' using ghostview or some other
postscript viewer. As the saying goes: Garbage In, Garbage Out. If the
postscript file isn't right, then you'll end up printing correct
garbage.

 
 and print -
 
 lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o
 page-bottom=44 -o page-left=60 -o page-right=80

Perhaps a matter of preference here, but personally I'd endeavour to get
the margins, page size etc correct in the post script and then just pass
a whole page to the printer. In that case, use the '-g' option to
barcode to size and position the barcode, then use '-p letter' to place
the barcode on a full sheet. You could then just say lpr -P LJ1012
/var/www/test.ps.

 
 The barcode is
 upside down
 not centered
 at the very top and truncated
 and multiple copies are printed.
 
 TIA
 
 Ethan
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: https://lists.debian.org/54893f90.50...@hygeiabiomedical.com
 


signature.asc
Description: Digital signature


GNU Barcodes

2014-12-10 Thread Ethan Rosenberg

Dear List -

I wish to be able to print a barcode .5 inches from top of the page and 
centered.

I generate the barcode -

yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39  test.ps;

and print -

lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o page-bottom=44 -o page-left=60 
-o page-right=80


The barcode is
upside down
not centered
at the very top and truncated
and multiple copies are printed.

TIA

Ethan


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/54893f90.50...@hygeiabiomedical.com



Type or print Barcodes, Inspection (GDT or SPC) symbols from CAD, Solidworks, Word etc.

2001-11-08 Thread brenda
Print SPC, Barcode and GDT symbol fonts from your Computer in Word, Excel, CAD 
etc. We also provide a link to FREE Military and Dept. of Defense 
specifications. To read or print. No catches!

Print Geometric Dimension and Tolerancing (GDT), Statistical Process Control 
(SPC) or Barcodes (Code 39/128) symbols on your PC! Perfect for publications, 
letters, forms, test materials, inspection reports etc!

True position, profile of a surface, grand average of sigma etc., all 
hand crafted into TrueType fonts for your PC. Windows or Mac, these fonts are 
available from all your applications' drop down lists. 

Do you outsource your customer bar code requirements because typical barcode 
systems are way too expensive? What if you could print your own 
shipping/inventory labels right from Word, Word Perfect, or Excel?

We also make custom fonts for any application. We have combined several 
existing fonts and added specific symbols to exact specifications. We are also 
the most affordable font source.

If this is not a concern, please pass this on to your professional counterparts 
that could use these timesaving symbol fonts. If this does concern you, please 
read on;

Most managers do not realize that college and university graduates in the 
quality or engineering fields do not receive formal GDT training as part of 
their educational program. This is alarming since these people are hired into 
design, manufacturing or quality control/assurance positions which all require 
reading drawings and properly interpreting all requirements. Now these symbols 
are available in a font with an easy to read wall chart that depicts the 
symbol, its name/meaning and where to find detailed reference to its use.

We provide Geometric Dimensioning and Tolerancing (GDT per ASME Y 14.5 
[formerly ANSI] symbols), Statistical Process Control (SPC), Feature Control 
Frame, General Blueprint/Inspection symbols and Barcode (Logmar) fonts that 
appear in Word, Excel, CAD, Autocad, Pro/E, Solidworks, Autocad LT, Corel 
Draw® or Word Perfect® drop down lists that have all the versatility of other 
system fonts. Our symbol fonts are perfect for letters, notices, drawings, 
resumes, forms periodicals, manuals, brochures or reports. 

Our bar-code fonts are compliant with all required ASTM and Military 
specifications for shipment labels, inventory or general identification for 
major contractors or government use. We carry Code 39 and 128 sets and UPC is 
coming soon.
 
Unlike most other providers, our fonts range in price from $15-$35. Please 
visit our site @ http://www.kanecal.net for more information. We would be proud 
to be affiliated with your company or institution and we believe that many 
professionals from the Education, Manufacturing, Quality and Engineering/Design 
field would appreciate our products and services.

Our satisfied customer lists includes numerous Inspection Services, Defense 
Contractors, Qualilty Control Software designers and Metrology Labs as well as 
Raytheon Industries and soon, Delta Airlines.

Sincerely,

Brenda Armstrong
Kanecal Consumer Relations

Note; You are not on any spam list. If you have no interest, please pass this 
on to those who may use it. We will not contact you again unless you 
specifically request it. 










  

   This message was sent to you using [EMAIL PROTECTED]   
  





RE: Barcodes

1998-03-06 Thread Jeroen Gommans

On 05-Mar-98 Tim Sailer wrote:
 Does anyone know (not that this is real Debian specific) of a program
 that given a number, would generate a gif/jpg/tiff/whatever of a 
 3-of-9 barcode?

Yes, it's called xbar211.english.tgz or XBarcode and it can do the
following conversions:

 barcode   output
   * EAN13, EAN8  * PPM
   * UPC  * GIF
   * CodeABar * PCX
   * Code 128 * PBM
   * Code 3/9 * LaTeX
   * Code 2/5 * Postscript
   * Code 2/5 Matrix
   * Code 2/5 Interleaved
  
I don't know where I found it, so you'll have to look for yourself,
but it's out there.

I'm more interested in a program that does the reverse. Given a
gif/jpg/tiff generate the barcode numbers, but I've been unable to
find such a program.

--
Best regards,
  Jeroen

E-mail: [EMAIL PROTECTED]


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble?  E-mail to [EMAIL PROTECTED] .


Re: Barcodes

1998-03-06 Thread Jens Ritter
[EMAIL PROTECTED] (Tim Sailer) writes:

 Does anyone know (not that this is real Debian specific) of a program
 that given a number, would generate a gif/jpg/tiff/whatever of a 
 3-of-9 barcode?

There´s a (La)TeX package (no .deb though) out for some of the codes.
Have a look at CTAN (I only now the german ftp.dante.de).

HTH,

Jens

---
[EMAIL PROTECTED]   [EMAIL PROTECTED]
Key ID: 2048/E451C639 Jens Ritter
Key fingerprint: 5F 3D 43 1E 24 1E CC 48  1E 05 93 3A A7 10 73 37 


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble?  E-mail to [EMAIL PROTECTED] .


Barcodes

1998-03-05 Thread Tim Sailer
Does anyone know (not that this is real Debian specific) of a program
that given a number, would generate a gif/jpg/tiff/whatever of a 
3-of-9 barcode?

Thanks,
Tim

-- 
 (work) [EMAIL PROTECTED] / (home) [EMAIL PROTECTED] - http://www.buoy.com/~tps
We will either find a way, or make one.
   Hannibal
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Barcodes

1998-03-05 Thread Joey Hess
Tim Sailer wrote:
 Does anyone know (not that this is real Debian specific) of a program
 that given a number, would generate a gif/jpg/tiff/whatever of a 
 3-of-9 barcode?

I think there are barcode fonts out there.

-- 
see shy jo


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .