iTextSharp is a PDF library for C#. The PdfObject class is used to represent a generic PDF object. It can be used to represent various PDF types like numbers, strings, arrays, dictionaries, streams, etc.
Example 1: Creating a PDF Number object
PdfNumber numObj = new PdfNumber(10);
Example 2: Creating a PDF String object
PdfString strObj = new PdfString("Hello World");
Example 3: Creating a PDF Array object
PdfArray arrObj = new PdfArray(); arrObj.Add(new PdfNumber(10)); arrObj.Add(new PdfString("Hello World"));
Example 4: Creating a PDF Dictionary object
PdfDictionary dictObj = new PdfDictionary(); dictObj.Put(new PdfName("Name"), new PdfString("John")); dictObj.Put(new PdfName("Age"), new PdfNumber(30));
Package library used - iTextSharp.
C# (CSharp) iTextSharp.text.pdf PdfObject - 60 examples found. These are the top rated real world C# (CSharp) examples of iTextSharp.text.pdf.PdfObject extracted from open source projects. You can rate examples to help us improve the quality of examples.