Browse our Products
Aspose.BarCode for Java 25.5 Release Notes
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
New Class:
com.aspose.barcode.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 com.aspose.barcode.generation.PdfParameters
Allows setting CMYK colors for individual elements of the barcode in PDF format:
setCMYKBarColor(CMYKColor)
— set Barcode foreground colorgetCMYKBarColor()
— get Barcode foreground colorsetCMYKBackColor(CMYKColor)
— set Background colorgetCMYKBackColor()
— get Background colorsetCMYKCodetextColor(CMYKColor)
— set Barcode text colorgetCMYKCodetextColor()
— get Barcode text colorsetCMYKCaptionAboveColor(CMYKColor)
— set Caption above text colorgetCMYKCaptionAboveColor()
— get Caption above text colorsetCMYKCaptionBelowColor(CMYKColor)
— set Caption below text colorgetCMYKCaptionBelowColor()
— get Caption below text color
Updated Class com.aspose.barcode.generation.ImageParameters
Added methods
getPdf():PdfParameters
- get PDF-specific parameters including CMYK color supportsetPdf(PdfParameters)
— set PDF-specific parameters including CMYK color support