Comments (7)
What implementation of the PS VM are you using?
What does it output when processing the following:
%!PS
/a == (0900000000) cvi ==
/b == 3600000000 ==
/c == (0900000000) cvi 3600000000 gt ==
from postscriptbarcode.
I am on GPL Ghostscript 10.01.2. The output is
/a
900000000
/b
3600000000
/c
false
I encountered the error via treepoem (version 3.23.0) which packages its own barcode.ps. I now built bwipp myself and pointed treepoem to use the barcode.ps under ./build/monolithic_package
and ./build/monolithic
. With the former, I get the same error, whereas with the latter it works fine. The generated barcode image can also be properly decoded.
from postscriptbarcode.
I now built bwipp myself and pointed treepoem to use the barcode.ps under
./build/monolithic_package
and./build/monolithic
. With the former, I get the same error, whereas with the latter it works fine. The generated barcode image can also be properly decoded.
That appears to be a bug in the packaged resource encoder (which I don't maintain). This replaces strings with more efficient binarised tokens. Seems like it's getting the maths wrong for large integers.
If you replace the code in the source .ps file as follows, then rebuild the monolithic_package
, does it work?
- cvi 3600000000 gt { pop /bwipp.GS1badLongitude (Invalid value for longitude) false exit } if
+ cvi (3600000000) cvi gt { pop /bwipp.GS1badLongitude (Invalid value for longitude) false exit } if
from postscriptbarcode.
Yes, if I change src/gs1process.ps
as suggested and then make
again, using the resulting ./build/monolithic_package/barcode.ps
gives the same output as with ./build/monolithic/barcode.ps
.
from postscriptbarcode.
The packages in release 2023-12-07 now include the workaround.
from postscriptbarcode.
Tested on the latest master 4e130138bddab39193290416841b477e50c9dde8
, the generation works fine now 👍
from postscriptbarcode.
Thanks.
from postscriptbarcode.
Related Issues (20)
- Extract AIs from GS1 DL URI and perform linting HOT 1
- Sample EAN-13 barcodes (at least)... aren't? HOT 11
- Bug in y-position of left guard
- Optimisation: Pre-allocate rather than copy-extend arrays
- Add generic c40headerlength option to datamatrix encoder HOT 3
- QR Version 33 bit errors HOT 1
- Set per-symbology default for border{left,right,top,bottom} to match quiet zone HOT 2
- Problem with binary data in aztec codes HOT 1
- Add showbearer option for linear barcodes HOT 1
- Implement Australia Post FCC 87 and FCC 92
- EAN13 bbox out of bounds HOT 3
- ISBN barcode with the human readable ISBN above the code block HOT 1
- parsefnc with iso-5589-15 doesn't work HOT 1
- `databarexpandedstackedcomposite` doesn't escape characters correctly with `parse` HOT 2
- Migrate Composite symbologies to use renmatrix by default
- Add missing features from `renlinear` to `renmatrix`
- Backgrounds and borders are broken for Composite symbols
- For fixed-width inputs, do not automatically calculate a missing check digit, unless actually told to HOT 11
- Rotated Barcodes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postscriptbarcode.