Google Groups Home
Help | Sign in
128C barcode human readable overlaps
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
coyotegrin  
View profile
 More options 17 Nov 2006, 20:49
From: "coyotegrin" <CoyoteG...@gmail.com>
Date: Fri, 17 Nov 2006 12:49:04 -0800
Local: Fri 17 Nov 2006 20:49
Subject: 128C barcode human readable overlaps
Hi,

I am building a code 128C barcode with BWIPP, but ran across a little
problem when using a human readable with a font size larger than the
default one.  The human readable for this barcode seems to be shown in
digit pairs (as per the 128c encoding) but these pairs of digits
overlap one another when I raise the font size, using the following
code:

200 200 moveto (^1050123456789) (includetext textsize=14) code128
barcode

What am I doing wrong?  I want my human readable to be of a size
greater than the default one, but when I do that It will look wrong at
printout.

Thanks,
Jean-François.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
terry.bur...@gmail.com  
View profile
 More options 7 Dec 2006, 20:56
From: terry.bur...@gmail.com
Date: Thu, 07 Dec 2006 12:56:34 -0800
Local: Thurs 7 Dec 2006 20:56
Subject: Re: 128C barcode human readable overlaps

coyotegrin wrote:
> I am building a code 128C barcode with BWIPP, but ran across a little
> problem when using a human readable with a font size larger than the
> default one.  The human readable for this barcode seems to be shown in
> digit pairs (as per the 128c encoding) but these pairs of digits
> overlap one another when I raise the font size, using the following
> code:

> 200 200 moveto (^1050123456789) (includetext textsize=14) code128
> barcode

Hi,

You are doing nothing wrong and the effect that you are observing is
intended. However, you can plot the text so that it does not overlap
using code similar to than below:

Hope this helps,

Tez

----

gsave
200 200 translate

% encode the symbol as normal but without displaying text
0 0 moveto (^1050123456789) () code128

% plot barcode but keep copy of data structure
dup barcode

% calculate barcode width by summing the bar and space widths
(sbs) get 0 exch {add} forall

% calculate text width
/Helvetica findfont 14 scalefont setfont
(5483-7277-4828) stringwidth pop

% plot the text at coords ( (barcode width - text width) / 2 , -10 )
sub 2 div -10 moveto (0123456789) show

grestore


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Terry Burton  
View profile
 More options 11 May, 00:38
From: "Terry Burton" <t...@terryburton.co.uk>
Date: Sun, 11 May 2008 00:38:19 +0100
Local: Sun 11 May 2008 00:38
Subject: Re: 128C barcode human readable overlaps

On Sat, May 10, 2008 at 1:42 PM, <[redacted]> wrote:
> I am a novice in Postscript. had a requirement for printing 128A,
> 128B, 128C Barcodes.
> is it possible for you to provide a postscript procedure that will do
> the needful?
> i.e. instead of me calling the code128 procedure i should call the
> code128A, code128B, code128C procedures respectively.

Hi Rakhesh,

I intend to write an auto-encoder for code 128 quite soon and this
will allow you to enter an arbitrary ASCII string for encodation and
to force the alphabet. Until then, I do not have code that does quite
what you want.

However you may find the following code from Stefan Stefanov quite
useful and a basis for developing code to satisfy your requirements:

http://postscriptbarcode.googlecode.com/svn/scripts/Helpers/code128_a...

Hope this helps,

Tez


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google