Tools
Sign in
Login
Forum
Barcode 3 of 9
Forum
>
Ask Anything
>
Barcode 3 of 9
n/A
posted
on September 10, 2013
at 9:10 AM
n/A
posted
on September 10, 2013
at 9:10 AM
Hi guys
I've seen that in pdfoutput editor there isn't the 3 of 9 Barcode: is there the possiblity to have this barcode inside Appway? Is there a workaround to print such a barcode?
Thanks in advance
Oliver
replied
on September 10, 2013
at 11:03 AM
Oliver
replied
on September 10, 2013
at 11:03 AM
Hi Davide, I am not sure what you mean with 3 of 9 barcode? what list are you refering to?
n/A
replied
on September 10, 2013
at 11:10 AM
n/A
replied
on September 10, 2013
at 11:10 AM
I mean this kind of barcode: http://en.wikipedia.org/wiki/Code_39
The list is the one you can find in the fields box of the pdf output editor (128, Datamatrix, PDF 147, Planet, PostNet).
Urs
replied
on September 16, 2013
at 8:13 AM
Urs
replied
on September 16, 2013
at 8:13 AM
Currently we don't have this barcode component available. And sadly, the component system in PDF Outputs is not yet there where we want to have it: We cannot yet add components via an extension.
But you can apply a workaround if this component is needed:
Create a new extension
Include a library which renders an image with your desired barcode style (beware of licensing of that library!)
Provide a new function by this extension which will accept a String as parameter (your message to print as barcode) and will return a file path of the rendered image (should be in the <data home>/work/tmp/<some directory>/<some unique id>.png)
On your PDF Output add an Image component
In the Expression field put in your new function. If the return value points to a file location, it will render the found image on your PDF
To be very clean, make sure the rendered image will be deleted after rendering. On the other hand: If you rendered it into <data home>/work/tmp it will automatically be removed after something more than 24h
n/A
replied
on September 16, 2013
at 9:01 AM
n/A
replied
on September 16, 2013
at 9:01 AM
Thanks for your reply.
Actually we discussed with the client and decided to switch to another barcode type (one already managed inside Appway), but this solution seems to be feasible (Felix sent me some links to some open source libraries).
We consider this thread closed
Stephan
replied
on September 16, 2013
at 3:01 PM
Stephan
replied
on September 16, 2013
at 3:01 PM
I think it would be possible to add support for Code 39 to Appway with only a few lines of code. Code 39 is already supported by iText, the underlying library we use to generate PDFs. But you would then have to upgrade to a new version of Appway.
Please
sign in
to add a reply
About this site
|
Terms of use
|
Privacy statement
|
Contact us
© 2025 Appway AG. All Rights Reserved.
I've seen that in pdfoutput editor there isn't the 3 of 9 Barcode: is there the possiblity to have this barcode inside Appway? Is there a workaround to print such a barcode?
Thanks in advance