ByteScout BarCode Generator SDK - C# - Add To New PDF - ByteScout

ByteScout BarCode Generator SDK – C# – Add To New PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – Add To New PDF

ByteScout BarCode Generator SDK – C# – Add To New PDF

Program.cs

[csharp]
using Bytescout.BarCode;

namespace SaveToNewPDF
{
class Program
{
static void Main()
{
// Create new barcode and register it.
Barcode barcode = new Barcode();
barcode.RegistrationName = “demo”;
barcode.RegistrationKey = “demo”;

// Set symbology
barcode.Symbology = SymbologyType.DataMatrix;
// Set value
barcode.Value = “Sample barcode”;

// Place barcode at top-right corner of document page
barcode.DrawToNewPDF(“barcode.pdf”, 595,842, 500, 50);

// Open output file in default PDF viewer
System.Diagnostics.Process.Start(“barcode.pdf”);
}
}
}

[/csharp]


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next