Document .Net
simple API to full control a document!

Download

Document .Net

allows your App to do all with documents.

Read More

Version History

4.5.6.17 - June 17th, 2020

We are happy to offer you new Document .Net 4.5! Let's see what's new:

4.4.4.8 - April 8th, 2020

    We are glad to inform about releasing new Document .Net 4.4! Let's see the improvements:

  • Improved the algorithm to read barcode fonts from PDF documents.
  • Added new code example from our customer: How to insert a table in DOCX document after a specific bookmark.
  • Added 6 new code examples regarding the Rasterizing feature. See How to save DOCX, PDF, RTF, HTML, Text documents as JPEG and PNG images.
  • Added the new property FontSettings.MissingFonts which gets you the list with fonts which were not found during the loading/saving of the current document. After getting the list with missing fonts, you may download them from Internet and specify the folder with these fonts via FontSettings.UserFontsDirectory property.
  • The algorithm to find a necessary font or analog installed in the current OS has been improved. Given this fact, we improved the quality of saving documents to PDF format.
  • For your convenience, we've added more than 150 interesting code examples in the API-documentation.
  • Added the ability to save documents in PDF/A format in the demonstration application (Document Viewer). This demonstration application is free, you can find it inside the Document .Net package.

4.3.3.5 - March 5th, 2020

  • Floating Tables support. Starting from the version 4.3 Document .Net can operate (Read, Write, Modify) with documents containing floating tables. A floating table is a table which is not part of the main text flow in the document but is instead absolutely positioned with a specific size and position relative to non-frame content in the document. floating table support Thus, you can load DOCX and RTF documents with floating tables, modify everything you want, and save it to any of supported formats: PDF, DOCX, RTF, HTML, Text, rasterize pages to Images.
  • Updated the Table-Autofit algorithm.
  • Added SautinSoft.Document.dll assembly compiled for .NET Framework 4.8.
  • PDF writer: fixed the issue with soft mask and transparent PNG images. There was the 1px unnecessary border in the earlier versions.
  • Fixed the issue with the incorrect height detection for nested tables.
  • Fixed the issue with text wrapping for shapes and images located in page footer.
  • Fixed the issue with detecting the correct cell border when neighborhood cells have different borders.
  • Fixed the issue with loading of DOCX documents containing another embedded DOCX.
  • Added several new Code Examples from our customers.

4.2.1.24 - January 24th, 2020

  • .NET Core 3.0 and 3.1 support: Starting from the version Document .Net 4.2 appeared the SautinSoft.Document.dll assemblies compiled for .NET Core 3.0 and 3.1.
    netcore 31
  • PDF Reader: Improved the algorithm which detects/recreates tables from orthogonal graphic lines during the parsing of PDF documents.
  • DOCX Reader: Added support of DOCVARIABLE feature. Now such DOCX documents can be completely loaded, modified and saved by Document .Net to supported formats.

4.0.10.28 - October 28th, 2019

  • .NET Standard 2.0: Starting from the version Document .Net 4.0 appeared the SautinSoft.Document.dll assembly compiled for .NET Standard 2.0.
    Document .Net is completely compatible with .NET Standard 2.0 and higher.
    Starting with .NET Standard 2.0, the .NET Framework compatibility mode was introduced. This compatibility mode allows .NET Standard projects to reference .NET Framework libraries as if they were compiled for .NET Standard.
  • Added support for Mac OS. Starting from the version 4.0 Document .Net can be used in Mac OS X and up..
    Document .Net can be used in Mac OS X and up
  • Updated the VML parser, now Document .Net can read even older DOCX documents with complex Preset Geometry.
  • RTF reader: Added support reading binary images specified by the keyword \bin.
  • Fixed an issue with the incorrect rendering of Field Date during a document pagination and saving it to PDF. Now the property Language is taken into account when auto-updating fields. For example, depending of culture language the date may be "February" or "februar" and so forth.
  • Fixed a bug with rendering of transparent images in PDF.
  • The error of the erroneous definition of the font and the incorrect formation of the result is fixed. An incorrect name was created for TrueType fonts in PDF, according to PDF 1.7., 5.5.2.
  • DOCX Reader: Fixed the issue with reading of bookmarks.
  • Mail Merge: Updated the properties MailMergeClearOptions.RemoveEmptyRanges and MailMergeClearOptions.RemoveUnusedFields. Also added the new method: MailMerge.ClearTemplate(), it allows you remove all merge fields in the document.
  • Fixed the issue with the incorrect rendering of background color in table cells when the color is set to 'Auto'. Now it works using this Algorithm.
  • Fixed the issue when loading a PDF document contained Jpeg images and after processing and saving the pictures were converted to PNG format. These actions increased the size of output document.<
  • Fixed a bug with the loss of image quality during clipping when loading PDF documents.
  • SautinSoft.Document.dll assemblies for .NET Core and .NET Standard: We've removed the dependency to "ZKWeb.System.Drawing". Now Document .Net refers to new "System.Drawing.Common".
  • Last, but not the least: Changed the mechanism of getting updates. It became very friendly to our customers. Now our customers may update the software in seconds using Nuget.

3.8.6.28 - June 28th, 2019

  • Now using Document .Net, you can create documents with Pie Charts. Furthermore, you can specify Chart size, Label and Legend formats and positions.
    pie-chart
    You'll need to only specify a Chart data and you the component will build the pie chart according these data automatically.
    advanced-pie-chart
    Another point of interest, that all source code to create Pie Chart is flexible and founded on open Document .Net API. Given this fact, you can easily customize the Chart as you wish.
  • To help you learning the component, we've prepared for you more 20 new and straightforward code examples "How convert between PDF, DOCX, HTML, RTF and Text".
  • Fixed the issue when loading a PDF document contained Jpeg images and after processing and saving the pictures were converted to PNG format. These actions increased the size of output PDF document. Such an error could happen, when customers load their PDF documents and next save them to PDF-A format.
  • Added new properties PdfSaveOptions.JpegQuality and PdfSaveOptions.EmbeddedImagesFormat. These options help you to control quality of images and decrease the size of output PDF.
  • Updated the API to work with table conditinal formatting: TableStyle.ConditionalFormats.
  • Fixed the issue during with rendering figures (Preset Geometry) in WPF.
  • Fixed the issue with bookmarks in Docx Reader.
  • Last but not least, we've changed the 'trial' notice. Now instead of inserting the word "trial", the component randomly insert colored background and this doesn't break the document layout.

3.7.4.3 - April 3rd, 2019

  • The full support of Preset Geometry. We've added support of more than 500 preset graphics figures.
    preset-geometry
    So, you can create a document with any graphics preset figures: Arrows, Rectangles, Triangles, Trapezoids, Equatation Shapes, Flowcharts and so forth. Next you can render the document in HTML, RTF, DOCX, Image and PDF formats. Furthermore, you can read an existing DOCX document with preset geometry and modify it.
  • RTF reader: Added support reading binary images specified by the keyword \bin.
  • HTML writer: Added support of highlight color (equivalent to background). Added carriage and tab breaks for easy reading of produced HTML.
  • Fixed a bug with fill rendering in shapes when a picture is set in a fill during saving into RTF and PDF formats.
  • Fixed an issue with the incorrect rendering of Field Date during a document pagination and saving it to PDF. Now the property Language is taken into account when auto-updating fields. For example, depending of culture language the date may be "February" or "februar" and so forth.
  • Fixed a bug with rendering of transparent images in PDF.
  • Fixed a bug with the loss of image quality during clipping when loading PDF documents.

3.6.12.4 - December 4th, 2018

  • Fixed the issue with incorrect rendering of Unicode symbols in .Net Core version during the saving document into RTF and PDF formats.
  • Added the assembly (SautinSoft.Document.dll) which is completely compatible with .Net Core 2.1.
    netcore 21
  • Docx Reader: added the ability to read background for the whole document.

3.6.11.20 - November 20th, 2018

  • Updated the Mail Merge feature and the code examples about it. The Mail Merge allows you to generate various Reports in PDF, DOCX, RTF and HTML formats based on a DOCX-template and a data source (XML-document, DataSet, DataTable, List, Dictionary, any of IEnumerable or any object (used as data source) that implements IMailMergeDataSource interface.
    reporting-for-news
    Here we offer you various Report solutions:
  • Improved the RTF reader: Fixed the issues with loading of ordered lists. Fixed the processing of RTF documents with East Asian encoding.
  • Improved the HTML reader: Fixed the issue with automatic detection of the table cell width, where there is text and the width isn't installed. Added new property into HtmlLoadOptions.PreserveHyperlinks. This property was added by a customer request, it allows to set whether to preserve hyperlinks during the HTML loading or skip them.
  • Fixed a problem with the formats cache, which is used to reduce memory usage by various formats (CharacterFormat, ParagraphFormat, ListFormat, etc).
  • Updated the method TableOfEntries.Update(). This method allows to update the table of contents in DOCX or RTF document. Now the result is exactly the same as in MS Word.

3.5.9.26 - September 26th, 2018

  • Updated the interface for importing styles. Now you can import styles from one document to another in three different modes. Added new code examples about importing and creating styles:
  • Improved the algorithm of table height calculation, it became more accurate.
  • Fixed the issue in counting of columns width in table auto-fit mode.
  • Fixed the issue with a table left indent during rendering a document into PDF format.
  • Fixed the issue with merged cells in table processing algorithm, during rendering into PDF.

3.4.8.29 - August 29th, 2018

3.3.3.27 - March 27th, 2018

  • We have implemented a new HTML Reader. New HTML Reader allows you to read complex html files containing: formatting elements, graphics, tables, css-styles and more.
    html-reader
  • Now, you can operate (control) Fields and Forms in documents. You can create and read documents containing various elements: CheckBox, TextBox, DropDown list and many other fields that you need in your work.
    fields-name
    The following example shows how to control of Fields/ Forms using C# and VB.NET.
    code-fields
  • By the way, we have added "Security Options and Encryption" for Documents. Encryption enables you to securely protect the content of your files from unwanted viewers and against unwanted actions like printing, selecting text, etc. Contains details for encrypting and access permissions for a document.
    password-options
  • In addition to the many code examples, we added a interactive Document Object Model (DOM) and base classes. Thanks to this solution, you can easily master the work with Document.Net
    dom
    • Fixed some minor issues:
    • Issue with the display's scaling DPI: 100%, 125%, 150%, etc.
    • Issue with TrueType fonts.
    • Issue with PresetGeometry.
    • Issue with Document properties.

3.2.2.16 - February 16th, 2018

  • We've added a new document property:"Digital Signature". Digital signatures can be used for many types of documents where traditional pen-and-ink signatures were used in the past. However, the mere existence of a digital signature is not adequate assurance that a document is what it appears to be. Moreover, government and enterprise settings often need to impose additional constraints on their signature workflows, such as restricting user choices and document behavior during and after signing. The following example shows how to create a digitally signed PDF document: "Create digitally signed PDF in C# and VB.NET".
    digitally-signed-pdf
  • We've also implemented "PDF/A Compliance". PDF/A is an ISO-standardized version of the Portable Document Format (PDF) specialized for use in the archiving and long-term preservation of electronic documents. The following example shows how to create a PDF/A document: "Create a PDF/A Compliance document in C# and VB.Net".
    pdf-a
  • Added a lot of new code examples of using Document .Net in C# and VB.Net.
  • Fixed some minor issues, which our customers sent to us. Thereby, the component became more error-free.

3.1.1.3 - January 3rd, 2018

  • We've implemented WPF renderer. Thus, using the method DocumentPage.GetContent() you may render a whole document or separate pages into FrameworkElement. Example of using WPF rendering you may see in the "Viewer" application of Document.Net.
    viewer-demo
  • The new most exciting feature is that now Document .Net can be used under .Net Core 1.1 and up. Also we've prepared build for .Net Framework 4.6.1. Document .Net supports the following platforms: Windows, Linux, Unix.
    netplatforms
  • Another exciting feature is ability to create and write documents in PDF format. As summary, starting from version 3.0 Document .Net gives you API to read and write PDFs.
  • We've also implemented Image Rasterizer engine.
  • We've added HTML Reader / HTML Writer. Fixed various issues with CSS in HTML Reader. HTML Writer supports "Fixed" and "Flowing" mode when working with html files. By the way, it is possible to generate HTML files: split by files and split by tags:
    html-split
  • Fixed various issues with PDF writer.
  • Fixed issue with reading bookmarks in DOCX reader and DOCX writer. Fixed issue with TOC entries formatting.
  • Support for old list formats for compatibility with old documents. By the way, fixed the issue with "legasy shapes"
  • For a simple understanding of how to use the full potential of the Document.Net, we have implemented new "Code Examples".
    code-examples
  • Added support for embedded fonts.
  • Fixed issue with reading images written using deprecated VML format (Vector Markup Language).
  • Greatly improved support for PDF, Word and Image file formats.
  • Improved quality of rendering data in PDF, HTML, Image formats.
  • Fixed a bug with multithreaded mode! In the previous version the component was able to load PDF documents only in a single thread.
  • Now. For simplicity, we divided Document.Net into two Editions: "Standard" and "Total". Total - This edition allows to read and write PDF, DOCX, RTF, HTML, Text documents. Rasterize a document to Images and render to WPF. Standard - Reads and writes documents in DOCX, RTF, HTML and Text formats.
  • Fixed some minor issues, which our customers sent to us. Thereby, the component became more error-free.

2.5.3.3 - March 3rd, 2017

  • Now Document .Net can work in multithreaded mode! In the previous version the component was able to load PDF documents only in a single thread. Starting from the version 2.5 this shortage has been eliminated.
  • We've significantly improved the engine to load and parse PDF documents.
  • Added a lot of new code examples of using Document .Net in C# and VB.Net.
  • Fixed the issue with the ContentRange slowdown during the operation with tons of text objects.
  • Fixed some minor issues, which our customers sent to us. Thereby, the component became more error-free.

2.4.11.3 - November 3rd, 2016

  • Added a new useful feature Mail Merge. Mail Merge allows to easy generate thousands similar documents (invoices, reports, letters, envelopes) programmatically filled by a data and based on a template.
    Mail Merge allows to easy generate thousands similar documents (invoices, reports, letters, envelopes) programmatically filled by a data and based on a template
    See how this function works in C#: "Creation an envelopes "Happy New Year" for Simpson family."
  • We've added some innovations in the PDF loading algorithm. Now it loads PDF and automatically scales width for characters typed by a non-standard embedded font.
  • Another innovation is ability to extract Text from DOCX, PDF and RTF even with mathematical symbols written by Symbol and Wingdings fonts. These characters will be automatically remapped to their Unicode equivalents.
  • Fixed some minor issues, which our customers sent to us. Thereby, the component became more error-free.

2.2.7.11 - July 11th, 2016

  • We are happy to inform about releasing new Document .Net 2.2.7.11! We've improved the quality of processing RTF, DOCX and PDF documents and fixed all known minor issues.

2.1.4.14 - April 14th, 2016

  • Now Document .Net supports PDF format in "Load" mode. With help of this feature you can load any PDF document starting from 1.0 to latest 1.7, parse it, make changes and save in another format. Even more, you can specify to rasterize vector graphics, automatically detect tables and so on.
  • Added new code examples to process and convert PDF documents.
  • Added support of TOC (Table of Contents). Now you can do anything what you want with it: create a new TOC, modify and update and existing TOC.

2.0.12.17 - December 17th, 2015

  • Create DOCX, RTF and Text documents on fly and fill it by necessary data.
  • Load DOCX, RTF and Text document and get all it's structure as tree of objects.
  • Modify text, tables and other data in existing DOCX, RTF and Text document.
  • Parse DOCX, RTF and Text document content and structure and Save/Render it as new document.
  • Replace data in a DOCX, RTF and Text document.
  • Merge and split DOCX, RTF and Text documents.
  • Convert a document between DOCX, RTF and Text formats.