Skip to content
Discussion options

You must be logged in to vote

Just ask ChatGPT:

Hi,

I have text values that are set by an external software (it does find&replace for placeholders) and the values have spaces at the right (to fill the maximum field length I suppose).

I am new in postscript and trying to find a working example of trimming right spaces before calling the /code128 barcode generator. No success so far.

Is there an option in postcriptbarcode generators to do the trim? Or any well known postscript template that makes the same?

Thanks!

ChatGPT output:

In PostScript, there isn't a built-in right-trim function, but you can create one fairly easily. The postscriptbarcode library doesn't have a built-in trim option, so you'll need to handle th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@APP-OYTEC
Comment options

Answer selected by terryburton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants