I am using Anpassbares Rechnungs-Pdf to customize my invoice in oxid shop. I am trying to put barcode infront of every ordered product in deliverynote.
I have successfuly got the ean number onto the pdf, now I want to put image link like this https://bwipjs-api.metafloor.com/?bcid=ean13&scaleY=1&text=4251823500185&includetext .
I see that the logo is added to the pdf using $opdf -> image($myConfig->getImageDir() . ‘/pdf_logo.jpg’, …)
but how can i put link as src of image in this situation.
Apparently, you are talking about a module - which one, where did you get it from? My first attempt would to query the vendor of this module for support if possible.
have you looked at the examples?
There is literally a ready-to-copy-paste code for including ean13 barcodes without having to use external api.
Also, in image examples you can find an example for using image from data stream , just fetch the image from url and you are done.
in theory it should work, but cant say why does not, since i dont know your article data.
You might need to urlencode the value, if there are special chars or spaces.
Do you get any errors?
Hi, i dont know if you want to give us the url… but when i use the url in the browser, following message appears:
“Error: bwipp.ean13badLength: EAN-13 must be 12 or 13 digits”
So, it should work, if you follow the strikt rules for a EAN13 Code. At the moment, we do not know how you use this field. If you have letters in it or other the numers which does not 12 or 13 digits, it will not work. Depending what you want to do, you should better use a barcode with Code 39.
cya