- Added global
Utils.MuPDFLockand synchronized MuPDF native calls for improved thread safety. - Improved Tesseract OCR stability in the
PDF4LLMOCR pipeline and hardened OCR helper behavior. - Fixed a regression in Llama
LoadDataand added a newTableExtractdemo sample. - Updated
PDF4LLMpackage metadata and NuGet project files.
- Migrated the helper package from
MuPDF.NET4LLMtoPDF4LLMand refreshed the package layout, demos, and documentation. - Added file-path overloads for
ToMarkdown,ToJson, andToTexthelpers. - Updated
PDF4LLMpackage support for the latest MuPDF bindings and metadata.
- Fixed issue #234 in page/text utilities and added a regression test in
UtilsTest. - Minor
PDF4LLMdocumentation and comment updates.
- Added MuPDF.NET4LLM as a separate NuGet package: LLM/RAG helpers for PDF-to-Markdown conversion, layout parsing, document structure analysis, and LlamaIndex integration. Install via
dotnet add package MuPDF.NET4LLM; depends on MuPDF.NET. - Fixed
DocumentWriterleak inStory.WriteWithLinksandStory.WriteStabilizedWithLinks(dispose viausing). - Made
DocumentWriter.Dispose()idempotent; addedObjectDisposedExceptionforBeginPage/EndPageafter dispose. - Hardened exception safety: added try/finally for
Document.Save,Document.Object2Buffer,Document.ObjString,Document.JournalSave,Pixmap.ToBytes,TextPage.ExtractText,Page.GetSvgImage, andUtils.Object2Bufferso native resources are released on exception.
- Upgraded
MuPDF.NativeAssetsto 1.27.2 and refreshed generated MuPDF bindings for Windows and Linux. - Implemented
IDisposableon core types (Document,Page,TextPage,Story,DocumentWriter,DisplayList,Font,GraftMap,DeviceWrapper,Outline) and madeDocument.Dispose()idempotent. - Hardened native resource handling (e.g.
Document.Convert2Pdf,Pixmap.InvertIrect) to be exception-safe, fixedPixmap.InvertIrectnull/stencil handling, and added tests for table extraction and disposal patterns.
- Fixed the issues in
ResolveNamesmethod. - Fixed the issues in
DrawShape
- Added
ImageFilterPipelinewith SkiaSharp-based filters and integrated it into OCR. - Improved
Pixmapdisposal, OCR helpers, and image filter application.
- Fixed issues related to the older Linux version.
- Resolved the issue that occurred when deleting an already managed document.
- Replaced all Windows System.Drawing dependencies with SkiaSharp.
- Added support for 32-bit .NET projects in Visual Studio 2019.
- Fixed issues with Unicode file names.
- Removed margin parameter in write barcode.
- Added new marginLeft,marginTop,marginRight,marginBottom parameters to barcode creation.
- Upgrade MuPDF.NativeAssets to 1.26.8.
- Added a new method "Utils.GetBarcodePixmap" into barcode write module.
- Added a new parameter "narrowBarWidth" into barcode write module.
- Added a new barcode rendering engine.
- Removed all dependencies on ZXing.
- Deployed new release
- Fixed PDF file handle leak caused by unreleased FzPage in DisplayList.
- Resolved memory leak in DocumentWriter (caused by missing FilePtrOutput).
- Added Dispose() in Story.
- Added Dispose() in TextPage.
- Updated barcode reader for low quality images/pages.