Browse our Products

Aspose.BarCode for Node.js via Java 25.5

All Changes

KeySummaryCategory
BARCODENET-37926Barcode image generation as CMYK PDFEnhancement
BARCODENET-39278Improve DataMatrix recognition performanceEnhancement

Public API changes and backwards compatibility

CMYK Color Support for PDF Barcode Generation

Added Class:

  • Generation.CMYKColor
    Represents a color in CMYK format.

Constructor:

  • CMYKColor(int cyan, int magenta, int yellow, int black)
    Initializes a CMYK color with specified component values.

Behavior: When a CMYK color is set, it overrides the RGB color for the corresponding element during PDF generation.

Added class Generation.PdfParameters

The properties in Generation.PdfParameters.

Allows setting CMYK colors for individual elements of the barcode in PDF format:

  • setCMYKBarColor(CMYKColor) — set Barcode foreground color

  • getCMYKBarColor():CMYKColor — get Barcode foreground color

  • setCMYKBackColor(CMYKColor) — set Background color

  • getCMYKBackColor():CMYKColor — get Background color

  • setCMYKCodetextColor(CMYKColor) — set Barcode text color

  • getCMYKCodetextColor():CMYKColor — get Barcode text color

  • setCMYKCaptionAboveColor(CMYKColor) — set Caption above text color

  • getCMYKCaptionAboveColor():CMYKColor — get Caption above text color

  • setCMYKCaptionBelowColor(CMYKColor) — set Caption below text color

  • getCMYKCaptionBelowColor():CMYKColor — get Caption below text color

Updated Class Generation.ImageParameters Added methods

  • getPdf():PdfParameters - get PDF-specific parameters including CMYK color support
  • setPdf(PdfParameters) — set PDF-specific parameters including CMYK color support