EAN13 not supported?
I need EAN13 type, but not listed in sfBarcode type.
Is there any reason?
Thank you for your reply in adv.
Hi LEE,
Thank you for reaching out to Syncfusion support.
Syncfusion Essential® PDF provides robust support for adding barcodes to PDF documents. The library supports a wide range of barcode types, including both one-dimensional and two-dimensional barcodes. One-dimensional barcodes include Code 39, EAN13, EAN8, and Code 32, while two-dimensional options include QR Code, DataMatrix, and PDF417.
To help you add an EAN13 barcode to a PDF document, please refer to the following documentation:
Below is a sample code snippet demonstrating how to add an EAN13 barcode using the PdfEan13Barcode class:
//Creates a new PdfEan13 Barcode. PdfEan13Barcode barcode = new PdfEan13Barcode (); //Set height of the barcode. barcode.BarHeight = 50; //Set the barcode text. barcode.Text = "400638133393";
//Creating new PDF document. PdfDocument document = new PdfDocument(); //Adding new page to PDF document. PdfPage page = document.Pages.Add();
//Printing barcode to the PDF document. barcode.Draw(page, new PointF(25,70));
//Creating the stream object. MemoryStream stream = new MemoryStream(); //Save the document into stream. document.Save(stream); //If the position is not set to '0' then the PDF will be empty. stream.Position = 0; //Close the document. document.Close(true); //Defining the ContentType for pdf file. string contentType = "application/pdf"; //Define the file name. string fileName = "EAN13Barcode.pdf"; //Creates a FileContentResult object by using the file contents, content type, and file name. return File(stream, contentType, fileName); |
Additionally, you can find a working GitHub sample at the following link:
GitHub – Add PdfEan13 Barcode to PDF Document
Please try this solution in your environment and let us know the outcome. If you need any further assistance, feel free to contact us—we’re happy to help.
Regards,
Arumugam M
Thx for your reply, Arumugam M.
But sorry for that, I wanted sfBarcode not PdfEan13Barcode.
I don't want any other control.
Could you give me how I can use EAN13 i
Hi LEE,
Currently, EAN-13 is not supported in SfBarcode. We have logged a feature request for 'Support for EAN-13 Barcode in SfBarcode' and we will implement this support in any of our upcoming releases.
Please use the below feedback link to track the status of this feature.
Support for EAN-13 Barcode in SfBarcode in WinForms | Feedback Portal
Regards,
Arumugam M
- 3 Replies
- 2 Participants
-
LE LEE
- Apr 26, 2025 10:00 AM UTC
- Apr 29, 2025 02:22 PM UTC