Maybe easy question but i tried searching for answer without any luck. (could be on wrong sites).

If anyone knows how can i make 2DPDF (PDF417) bar codes in LaTeX ?


2 Answers 2


pst-barcode can do this. Since it requires PSTricks, you need to compile this using xelatex or latex. If you want to use pdflatex, you can add \usepackage{auto-pst-pdf} to the preamble:

  • Ok thanks, have to check and see possibility of installing additional packages.
    – Melkior
    Feb 14, 2013 at 15:29
  • @Jake I guess your solution doesn't work on Windows. I get this error: Package ifplatform Warning: shell escape is disabled, so I can only detect \ifwindows. ) \c@app@runs=\count111 ! Package auto-pst-pdf Error: "shell escape" (or "write18") is not enabled: auto-pst-pdf will not work!
    – maksmara
    Jan 29, 2014 at 5:44
  • The MWE shown doesn't produce any output and gives the error: Package pst-pdf Warning: File `barcode-pics.pdf' not found. and then there are few indications to manually generate the document using dvips
    – Maxiride
    Mar 23, 2020 at 5:47

I googled your question and I found two useful posts about barcode generation in LaTex, hope it can be of some help

  1. Is there a good LaTeX package for generating barcodes?
  2. Barcodes in LaTeX

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .