Re: barcode




iulian.ilea wrote:
See this: http://www.fpdf.org/en/script/script5.php if you want to
generate EAN13. The same algorithm I used in an ASP page and it worked.
I printed the code on a laser printer and I it was readable from
different scanners.

I read above that maybe it will not be readable if the printed page is
resized to fit the page. I THINK (I'm not sure) that will work because
if an image with width of 250 is resized to 290 also the white and
black stripes are resized equally. ...And THEORETICALLY it can be read.

If you want to generate CODE 39, POSTNET, i25 barcodes:
http://www.fpdf.org/en/script/index.php. Use the algorithm, you don't
have to create pdf.

I was just posting from experience, that with a web based app you
mileage may vary - ultimately depending on the client. An example
would be one of the Linux epson drivers I've used does a wierd
dithering pattern when it prints bitmap images and totally screws up
barcodes (others are fine).

As for resizing, it also depends on the driver, the same scaling
algorithm that causes moire effects in dithered images can potentially
mess up barcode results. For the 250 to 290 that means 40 extra pixels
are inserted somewhere in your image width, the variation between thin
and thick bars (at least in code 3 of 9) is 1 to 3 (3 thin widths-1
thick) So if the browser fudges the image size there may be a problem
(as it is dealing wi ~72 dpi), if it gives it to the printer to resize
(~300dpi+) then it may be ok. You might have good results with a big
bitmap of of code scaled down to fit instead of the opposite as there
are more pixels to work with when printing)

And fpdf is great! (though watch for glitches on reading with IE, read
the FAQ)

Larry

.



Relevant Pages

  • Re: Resize algorithm implemented in GDI
    ... I used every known interpolant filter I know in the spacial domain and none of them reaches its sharpness so I'm starting to think it's a filter working in the frequency domain... ... It looks like a trivial nearest neighbour algorithm. ... It explains it sharpness as well as it's low quality (take any 256 color image and resize it to see how really terrible this algorithm is). ...
    (microsoft.public.win32.programmer.gdi)
  • Image scaling by Width & Height constant - preserve aspect ratio
    ... I'm looking for an algorithm to resize an image of arbitrary size to a ... until less than or equal to 440 x 780 and preserve aspect ratio. ... Farce ...
    (comp.lang.java)
  • Re: How to modify size of dialog while in OnSize()?
    ... > ratio. ... I can run my algorithm in the OnSizeto determine the correct ... > while in OnSize(), OnSizeis called again and I'm in an infinite loop. ... > wait for the mouse button to be released and then resize, ...
    (microsoft.public.vc.mfc)
  • How to modify size of dialog while in OnSize()?
    ... ratio. ... I can run my algorithm in the OnSizeto determine the correct size ... while in OnSize(), OnSizeis called again and I'm in an infinite loop. ... wait for the mouse button to be released and then resize, ...
    (microsoft.public.vc.mfc)
  • Re: delivery point barcode in merge to labels from Outlook 2003 contacts
    ... The problem with the barcodes inserted by Word is not just to do with the ... geenrated barcodes may be incorrect because the USPS changed the algorithm ... Please reply to the newsgroup unless you wish to avail yourself of my ... services on a paid consulting basis. ...
    (microsoft.public.word.mailmerge.fields)