Summary: Easily create barcodes inside wiki pages
Version: 2007-07-22
Prerequisites: pmwiki 2.2.0 beta
Status: works
Maintainer: Luigi
Discussion: BarCode-Talk
Categories: Images

Questions answered by this recipe

How to generate barcode images by just typing their values into a wiki page.


In order to let your wiki pages generate and display barcodes, just follow these simple steps:

  1. Download and install any barcode-generating script (here you'll find an open-source example, please feel free to google for more)
  2. Test your install by typing the proper url into your browser, something like
      a barcode image should show. If it does, paste the same url into your wiki page. As you save, the url will show on your page.
  3. Add "&.png" to the url in order to fool your wiki and let it print the image, and not the url itself
      a barcode should show now, and not the url any more.
  4. If you like to have your barcode fetch its value from some other page, please
    • define some variable in Group.SomePage (example "Name: John")
    • reference your variable this way{Group.SomePage$:Name}&mode=png&scale=3&.png


Some more details and live samples are available at

Release Notes

2007-07-22 This is just something put together in order to easily solve the matter. More refined recipes could be developed (not by me), allowing for even better flexibility and integration with pmwiki. In case of any development (or issue) please let me know -- Luigi

See Also



See discussion at BarCode-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.