Add Barcode to PDF

This action allows you to add barcode to the document. It can be placed in a desired size and position with a given text. The barcode types allowed are QR Code, Code128, Datamatrix, Aztec, Hanxin and Pdf417.

Parameters

FileFile, Required

File where barcode is added. The file should always be PDF. A url containing file can also be passed as parameter.

File NameString

You can specify file name. Otherwise name will be picked from File field. This field will be set as file name for output file.

Barcode TypeOption, Required

Type of barcode to be added. The supported barcodes are

  • QR code
    QrCode
  • Datamatrix
    DataMatrix
  • Code128
    Code128
  • Aztec
    Aztec
  • Pdf417
    Pdf417
  • Hanxin
    Hanxin
TextString, Required

Text to be added as barcode.
Note: Text length allowed(i.e. to make it readable) for each barcode will depends barcode type.

PagesString, Required

Pages where barcode need to be added. Possible values are including numbers ( 1,2,3 etc.) or text (first, last and all).

Horizontal AlignmentOption, Required

Position of barcode horizontally. The allowed values are

  • Left - left edge of the page
  • Center - equal distance from left and right edge of the page
  • Right - right edge of the page
Vertical alignmentOption, Required

Position of barcode vertically. The allowed values are

  • Top - top edge of the page
  • Middle - equal distance from top and bottom edge of the page
  • Bottom - bottom edge of the page
Barcode WidthNumber

Barcode width in millimeters (mm). If 0, default width or aspect ratio sized width will be taken.

Barcode HeightNumber

Barcode height in millimeters (mm). If 0, default height or aspect ratio sized height will be taken.

Horizontal MarginNumber

Horizontal margin in millimeters (mm). Default value is 0. If horizontal alignment is Left, it will give gap from left edge of page. If Right, it will give gap from right edge of page. If Center, this field is ignored.

Vertical MarginNumber

Vertical margin in millimeters (mm). Default value is 0. If vertical alignment is Top, it will give gap from top edge of page. If Bottom, it will give gap from bottom edge of page. If Middle, this field is ignored.

Hide TextBoolean, Required

Hide text shown beside barcode. This is applicable in the case of Code128 barcode type

TransparencyNumber, Required

Transparency for barcode. Values range from 0 to 100. 0 for max transparency and 100 for max opacity

Output

FileUrl

PDF file that contains barcode

File NameString

File Name without extension

Full File NameString

File Name with extension

File ExtensionString

File extension