BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<Products>
<Description1>111</Description1>
<Description2>我</Description2>
<Description3>III</Description3>
</Products> |
// Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page.
PdfPage page = doc.Pages.Add();
//Acquire page's graphics.
PdfGraphics graphics = page.Graphics;
//Declare a PdfLightTable.
PdfLightTable pdfLightTable = new PdfLightTable();
pdfLightTable.DataSource = //Get the data from Input XML file.
pdfLightTable.Style.DefaultStyle = new PdfCellStyle();
pdfLightTable.Style.DefaultStyle.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f);
//Draw the PdfLightTable.
pdfLightTable.Draw(page, PointF.Empty);
//Save the document. MemoryStream stream = new MemoryStream();
document.Save(stream);
document.Close(true);
if (stream != null)
{
SaveiOS iosSave = new SaveiOS();
iosSave.Save("Output.pdf", "application/pdf", stream);
} |
<Products>
<Image>PDF</Image>
<Description>Essential PDF我我我我</Description>
</Products> |
// Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page.
PdfPage page = doc.Pages.Add();
//Acquire page's graphics.
PdfGraphics graphics = page.Graphics;
//Declare a PdfLightTable.
PdfLightTable pdfLightTable = new PdfLightTable();
pdfLightTable.DataSource = //Get the data from Input XML file.
pdfLightTable.Style.DefaultStyle = new PdfCellStyle();
Stream fontStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("jhenghei.ttf");
PdfTrueTypeFont font = new PdfTrueTypeFont(fontStream, 12);
pdfLightTable.Style.DefaultStyle.Font = font;
//Draw the PdfLightTable.
pdfLightTable.Draw(page, PointF.Empty);
//Save the document. MemoryStream stream = new MemoryStream();
document.Save(stream);
document.Close(true);
if (stream != null)
{
SaveiOS iosSave = new SaveiOS();
iosSave.Save("Output.pdf", "application/pdf", stream);
} |