Browse our Products
Aspose.BarCode for Node.js via Java 25.5
All Changes
Key | Summary | Category |
---|---|---|
BARCODENET-37926 | Barcode image generation as CMYK PDF | Enhancement |
BARCODENET-39278 | Improve DataMatrix recognition performance | Enhancement |
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 colorgetCMYKBarColor():CMYKColor
— get Barcode foreground colorsetCMYKBackColor(CMYKColor)
— set Background colorgetCMYKBackColor():CMYKColor
— get Background colorsetCMYKCodetextColor(CMYKColor)
— set Barcode text colorgetCMYKCodetextColor():CMYKColor
— get Barcode text colorsetCMYKCaptionAboveColor(CMYKColor)
— set Caption above text colorgetCMYKCaptionAboveColor():CMYKColor
— get Caption above text colorsetCMYKCaptionBelowColor(CMYKColor)
— set Caption below text colorgetCMYKCaptionBelowColor():CMYKColor
— get Caption below text color
Updated Class Generation.ImageParameters
Added methods
getPdf():PdfParameters
- get PDF-specific parameters including CMYK color supportsetPdf(PdfParameters)
— set PDF-specific parameters including CMYK color support