News & Releases

Minimize
Nasosoft Component for .NET v4.0.0 Released - Friday, April 20, 2012

Nasosoft Component for .NET v4.0.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 Barcodes
    • Support different types of industry standards 1D and 2D Barcodes.
    • Support XML serialization and deserialization.
    • Support different types of image formats, like jpeg, bitmap, png, and etc.
    • Support metafile image format.
  • Nasosoft PDF
    • Support drawing barcodes image in PDF file with Nasosoft.Barcodes.
    • Fixed several bugs in PdfDocumentEditor.

 How to Download

 
 

Enter Title

   Minimize
Split a PDF Documents
 
PdfDocumentEditor editor = new PdfDocumentEditor("file1.pdf");
 
MemoryStream[] ms = null;
editor.SplitToPages(out ms);
if (ms != null)
{
    for (int index = 0; index « ms.Length; ++index)
    {
        // Do whatever you like against the MemoryStream that represent single page pdf file
        // Such as save it
        using (FileStream fs = new FileStream(String.Format("Page_{0}.pdf", index), FileMode.Create))
        {
            ms[index].WriteTo(fs);
        }
    }
}
 
editor.Close();