Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>We recently had to approach this problem as well, and being a Python shop we wanted a Python solution. It become clear the elaphe is the project that had the potential to actually accomplish pdf 417 barcode. </p> <p>However what we found was it errors by todays standards, and so we entered the hunt to fix the library. Turns out elaphe must generate an outdated form of *.eps post script that can't be interpreted by ghost script and this is where the bar code generation fails.</p> <p>Well fortunately elphae uses a common library behind the scenes called Barcode Writer in Pure PostScript @ <a href="http://bwipp.terryburton.co.uk" rel="nofollow">http://bwipp.terryburton.co.uk</a></p> <p>This common backend library which has many projects in multi-languages using it to generate projects. The fix specifically for us was to fork elaphe, and correct it's *.eps file generation. </p> <p>To determine what is broken in the *.eps, look at this other site that is made using postscriptbarcode, and it let's you generate the pdf417 barcode online (as well as other formats): <a href="http://www.terryburton.co.uk/barcodewriter/generator/" rel="nofollow">http://www.terryburton.co.uk/barcodewriter/generator/</a></p> <p>Once you generate a pdf417 barcode it gives you the option to download the .png, .jpg, and YES the .eps file!</p> <p>Using this .eps file you can pipe it to ghost script and tweak the parameterization to get the exact pdf417 barcode you are looking for. Then take this result and integrate it into the elaphe library and actually get a pull request on that thing ....</p> <p>Seems to be a bit of work, but nothing that can't be knocked out in an afternoon. It is ideal to get the elaphe library back in shape to generate these without making this enhancement. </p> <p>Please note that the performance of this approach for us is a few seconds to generate this barcode due to the fact it creates the 2000 line eps file and pipes it to ghost script which generates another image file that we send back as the final barcode result. This is not as performance as code128 with reportlab. </p> <p>Perhaps room for optimizations: Is pillow faster than PIL in anyway? Do we need all the parts of the eps file to generate the barcode of type pdf417? Other ways to optimize?</p> <p>Anyway, great question Ken and I hope you find this to be a great answer.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload