New PDF Layout API and memory optimizations in version 9

The shiny new Docotic.Pdf 9 is now available on our site and on NuGet. The new major release brings the new fluent PDF layout API and a lot of memory-related optimizations.

Many of our customers and prospects asked for a high-level layout API. These people want to add page headers and footers, tables, paragraphs, and automatically break content into pages. It is definitely an important API. With version 9, we introduce the new free Docotic.Pdf.Layout add-on with such API. Please read the overview article about the new API features.

We made a lot of changes in the library to reduce the number of memory allocations and the total amount of memory allocated. We still have a lot of ideas for improvements in this area, but Docotic.Pdf 9 allocates much fewer objects than previous versions. As the nice side-effect, it often works faster too.

The new version creates fewer objects in the Large Object Heap (LOH). And the library tries to reuse any memory it allocates. When reading, drawing, editing, or saving documents, the library reuses some of its intermediate structures. This reduces the total number of allocations and the memory footprint.

Docotic.Pdf 9 not only reuses allocated, it also allocates less when resizes an image or changes the way it compressed. The same goes for parsing fonts, saving documents with cross-reference tables, and other areas.

Read about all new features and improvements in Docotic.Pdf 9 in the Version History document.

We encourage you to download and try the new version. This version is also available on NuGet.

Please tell us your thoughts about the new version using e-mail or the support form. Don’t hesitate to write us your questions, suggest features, or ask for help.

Posted in