Creating Barcodes Images

In this example we see that barcodes of many different types and formats can be created, resized, and saved; possibly even in a single line of code.

Using the Fluent API, the generated barcode class can be used to set margins, resize, and annotate barcodes. They may then be saved as images with IronOCR automatically assuming the correct image type from a file name: GIFs, HTML files, HTML tags, JPEGs, PDFs, PNGs, TIFFs, and Windows Bitmaps.

We also have the StampToExistingPdfPage method, which allows a barcode to be generated and stamped onto an existing PDF. This is useful when editing a generic PDF or adding an internal identification number to a document via a barcode.