Hi Nicola,
Thank you
for contacting Syncfusion support.
We have the
support to draw the barcode in PDF at runtime in xamarin platform.
Please refer
the below code snippet :
//Create the PDF document
PdfDocument document = new PdfDocument();
//Creates a new page
PdfPage page = document.Pages.Add();
//Create font and font style.
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
//Creates a new
PdfCode128BBarcode.
PdfCode128BBarcode code128B = new PdfCode128BBarcode();
//Set the font to code128B.
code128B.Font = font;
//Set the barcode text.
code128B.Text = "CODE128B";
//Draw a barcode in the new
Page.
code128B.Draw(page, new PointF(25, 500));
//save and close the document
MemoryStream
stream = new MemoryStream();
document.Save(stream);
document.Close();
Xamarin.Forms.DependencyService.Get<ISave>().Save("Barcode.pdf",
"application/pdf", stream);
Please try
this and let us know if you need any further assistance.
Regards,
Abirami.