Using Aspose Barcode 25.9 for Outsystems and generating PDF417 Barcodes. Generating 50 barcodes takes almost 100 seconds which is very slow performance.
Following is my code
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Pdf417, ssBarcodeText);
generator.Parameters.Barcode.XDimension.Pixels = 2; // Width of smallest bar
generator.Parameters.Barcode.Pdf417.Columns = 5; // Number of columns
generator.Parameters.Barcode.Pdf417.Rows = 0; // Number of rows
generator.Parameters.Barcode.Pdf417.Pdf417ErrorLevel = Pdf417ErrorLevel.Level4;
Can someone help identify issue or any settings I am missing
@nilesh.1.bhise
-
You are using Aspose.BarCode for .NET version 25.9, which falls within a version range where performance regressions have been reported. A user observed a significant slowdown in barcode generation between versions 23.9 and 25.5, even when using HighPerformance QualitySettings, particularly for Interleaved2of5 barcodes . While your use case involves PDF417 barcodes, the reported performance degradation in recent versions may still be relevant.
-
Your current configuration appears appropriate for generating PDF417 barcodes. However, one potential optimization is to explicitly set the QualitySettings property to HighPerformance, as this has been shown to improve performance in version 25.5 . You can apply it as follows:
generator.QualitySettings = QualitySettings.HighPerformance;
Note that even with this setting, users have reported that performance does not fully return to 23.9 levels for some barcode types , suggesting possible internal changes in the library.
- The performance issue you’re experiencing may be related to underlying changes in the library introduced after version 23.9. Since the slowdown was reported across different barcode types, it could indicate broader rendering or encoding inefficiencies in newer versions . This suggests the issue may not be due to missing settings on your part.
We recommend testing with an older version (e.g., 23.9) to determine if the performance issue is version-related. We will review this as a potential extension of the previously reported performance regression.
Thank you for the prompt and detailed reply.
When I try and set the setting on generator as suggested I get QualitySettings not found on BarcodeGenerator
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Pdf417, ssBarcodeText);
generator.Parameters.Barcode.XDimension.Pixels = 2; // Width of smallest bar
generator.Parameters.Barcode.Pdf417.Columns = 5; // Number of columns
generator.Parameters.Barcode.Pdf417.Rows = 0; // Number of rows
generator.QualitySettings = QualitySettings.HighPerformance;
@nilesh.1.bhise
The user is encountering a compilation error when trying to set the QualitySettings property on the BarcodeGenerator class, indicating a code-level issue related to API usage in Aspose.BarCode. The context shows they are following advice but facing a ‘not found’ error, which requires troubleshooting the correct API syntax or version compatibility.
@nilesh.1.bhise,
Could you please share what (different) barcode text you are using when generating PDF417 barcodes? We appreciate if you could share complete sample (runnable) code or a standalone sample app to demonstrate/reproduce the performance issue on our end. We will check your issue soon. Also, please try using Aspose.BarCode for .NET 25.12 if it makes any difference? Moreover, QualitySettings enumeration is functional only when reading barcodes.