Skip to main content
Inspiring
July 29, 2019
Question

Is there a way to generate a barcode in FrameMaker 15?

  • July 29, 2019
  • 5 replies
  • 1317 views

Hello,

I need to insert in the boilerplate page a barcode for the user guide.

I see there's an option to insert QR codes, but don't see any for barcodes.

How is this done?

All advice greatly welcome!

Donna

    This topic has been closed for replies.

    5 replies

    udonnaAuthor
    Inspiring
    July 31, 2019

    Thank you all for your  helpful input.

    I checked out Lynne's tip on barcode fonts and created a character tag that was based on a free barcode font, but as the resulting barcode looked different than what an online barcode generator issued, decided not to spend more time researching this and opted for Jeff's idea of importing a generated barcode as an image.

    Was very pleased that FM 2015 supports SVG imports as the imported barcode file retains the vector sharpness.

    This site provides SVG downloads: Free Barcode Generator - Create barcodes here for anybody who will refer to this post in the future.

    Appreciate the quick responses and great ideas!

    Donna

    Ian Proudfoot
    Legend
    July 31, 2019

    Donna,

    Just for information, the reason that you can't just format the barcode's value directly by applying the correct font is because of the special control characters that have to be generated to validate the encoding. That's the tricky part - step 4 in my previous response. 

    Some may ask why go to the effort of generating the barcodes in FrameMaker. In some cases it's essential, the FrameMaker document could be generated from a database or directly from XML. In those cases the formatting has to be ready to use and a manual barcode graphic generation step would be very inefficient.

    Ian

    udonnaAuthor
    Inspiring
    July 31, 2019

    That's very good to know Ian.

    Many thanks!

    Donna

    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    July 30, 2019

    I use qrstuff.com for free barcode generation, and for qr codes beyond what you can do with Fm

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Ian Proudfoot
    Legend
    July 29, 2019

    I have done this with ExtendScript. In general the process is as follows:

    1. Find out which barcode format you need to use.
    2. Obtain a barcode font that is compatible with the required barcode format, there are many different encodings, so this is an important step.
    3. Create a paragraph format that uses the barcode font at the required size. Large enough so that it can be scanned easily.
    4. Use ExtendScript to create a script that generates the required Start symbol, check digit and end symbols for the value that you need to encode. This is the difficult part as you have to map all characters in the font to the required value and it's not always an obvious mapping.
    5. Update the document with the encoded barcode.
    6. Test it using a barcode scanner. I use a mobile app on my phone for testing.

    Some barcodes function in different ways depending on the start symbol's value.

    Ian

    Inspiring
    July 29, 2019

    Donna,

       There are free barcode fonts. See, for example, https://www.barcodefaq.com/.

         --Lynne

    Jeff_Coatsworth
    Community Expert
    Community Expert
    July 29, 2019

    I suspect you'd have to generate the bar code and save an image of it to be used in FM.