News & Releases

Minimize
Nasosoft Component for .NET v3.8.0 Released - Wednesday, January 19, 2011

Nasosoft Component for .NET v3.8.0 has released with many improvements.

Nasosoft Component for .NET is a suite of comprehensive .NET controls, including EXCEL, PDF, and RTF document format engines, RTF to HTML, HTML to RTF, RTF to TEXT, HTML to TEXT document transform engines and ZIP, GZIP, TAR compression.

What's new

  • Nasosoft Transform
    • Support iFilter COM+ interfaces 
    • Convert different documents to Text with iFilter

 How to Download

 

PDF Document Settings

   Minimize

How to set PDF Document Settings

PdfDocumentBuilder builder = new PdfDocumentBuilder();
IPdfDocument doc = builder.CreateDocument();
IPdfPage page = doc.Pages.AddNew();
 
IPdfFont font = builder.FontFactory.CreateStandardFont(PdfStandardFontFamilies.Courier, 20);
IPdfBrush brush = builder.BrushFactory.CreateSolidBrush(new PdfColor(Color.Blue));
 
IPdfDocumentInformation info = doc.DocumentInformation;
info.Author = "Yanni";
info.CreationDate = DateTime.Now;
info.Creator = "Secret Garden";
info.Keywords = "Document Settings Demo";
info.Subject = "Document Settings";
info.Title = "Demo";
 
page.Graphics.DrawString("Press Ctrl+D to see document settings", font, brush, 20, 20);
doc.Save("TestDocumentSettings.pdf");
doc.Close();