Releases: arklumpus/MuPDFCore
Releases · arklumpus/MuPDFCore
Version 1.10.2
Version 1.10.1
New features
- Updated to MuPDF 1.24.3.
- Added support for retrieving images and font information from structured text pages (#31).
- It is now possible to save individual images or to get access to their pixel values.
- For fonts, the font name and style are reported. Two methods provide access to the native font handles (but these won't be particularly useful without bindings for the FreeType library or the internal Type3 font renderer).
Bugfixes
- MuPDFCore.MuPDFRenderer: fixed issue with selection not clearing after the page is updated (#32).
Version 1.9.0
New features
- Updated MuPDF to 1.24.0
- Support for new input formats: TXT (text files), DOCX (Microsoft Word), PPTX (Microsoft Powerpoint), XLSX (Microsoft Excel). Note that only plain text is extracted from Office documents and the layout is not fully respected.
- The
MuPDFDocument
class now has anOutline
property, which makes it possible to access the document's outline (table of contents), if one is defined (#29). The PDF viewer demo shows document outlines.
Bugfixes
- The background of the
MuPDFRenderer
control now works correctly when the control has a non-zero offset.
Version 1.8.0
New features
- Updated MuPDF to 1.23.6.
- Added API to get/set the anti-aliasing level (#27).
- The
MuPDFContext.GraphicsAntiAliasing
property can be used to get and set the graphics anti-aliasing. - The
MuPDFContext.TextAntiAliasing
property can be used to get and set the text anti-aliasing. - The
MuPDFContext.AntiAliasing
property (write-only) can be used to set both the graphics and text anti-aliasing to the same level.
- The
- Added support for JPEG output format.
- Added support for MOBI and HTML input format. This is both integrated within the general
MuPDFDocument.SaveImage
andMuPDFDocument.WriteImage
methods, as well as in two dedicated methods (MuPDFDocument.SaveImageAsJPEG
andMuPDFDocument.WriteImageAsJPEG
) that allow specifying the JPEG quality level. - Added API to layout reflowable document types (e.g., MOBI and HTML):
MuPDFDocument.Layout(float width, float height, float em)
can be used to layout the document using a fixed page size.MuPDFDocument.LayoutSinglePage(float width, float em)
can be used to layout the document to a single page of the specified width.
After these methods have been called, thePages
of the MuPDFDocument will be recreated with the specified layout.
- Enabled strong name signing (#23).
- Native assets are now in separate NuGet packages (the right packages should be picked automatically).
linux-musl-x64
andlinux-musl-arm64
no longer require manually copying the native asset (but see the note forlinux-musl-arm64
).- MuPDFCore.MuPDFRenderer now targets Avalonia 11 (#26).
Version 1.7.0
New features
- Updated MuPDF to 1.21.1.
- Added support form
linux-musl-x64
andlinux-musl-arm64
platforms.- To get this to work, download the asset you need from this page, and use it to replace the default glibc-based
libMuPDFWrapper.so
file that gets created when you build your app.
- To get this to work, download the asset you need from this page, and use it to replace the default glibc-based
Version 1.6.0
New features
- Updated MuPDF to version 1.20.0.
- Added a wiki with some information and examples (that used to be in the homepage of the repository).
- Added methods to support encrypted and restricted (password-protected) documents (#17), see the page in the wiki.
Notable changes
- Attempting to render an encrypted document without first unlocking it with the user password now results in an exception, rather than producing blank pages as in previous versions.
Version 1.5.0
New features
- Updated MuPDF to version 1.19.1.
- Added methods to suppress and redirect the standard output and standard error from the native MuPDF library to managed events.
- Added parameters to report OCR progress and to allow cancellation (not supported on Windows x86).
- Added overloads that return
Span<byte>
(#16). - New constructor for
DisposableIntPtr
, which adds and removes GC memory pressure when it is created/disposed. - Added support for Tesseract OCR on Mac-arm64.
Bugfixes
- Fixed platform target for Linux-arm64 and Mac-arm64 tests.
- Added missing build options for Linux-arm64.
Version 1.4.1
Bugfixes
- Fixed a bug occurring when input or output file names contain characters outside the ASCII range (#14).
Version 1.4.0
New features
- Updated MuPDF to 1.19.0.
- Added tests.
- Added support and native assets for additional platforms:
- 32-bit Windows (x86)
- Native support for Windows on ARM (arm64)
- Native support Linux on ARM (arm64)
- Native support for macOS on Apple silicon (arm64)
Bugfixes
- Fixed a bug in the multithreaded renderer when the requested number of threads contains factors other than 2, 3, 5, or 7.
- Fixed a bug occurring when a Tesseract trained data file is specified directly.
- Updated the URL for the tesseract trained data repositories.
- Fixed a bug causing crashes when using the OCR functions within a program published with
/p:PublishSingleFile=true
.
Version 1.3.1
v1.3.1 Updated MuPDF to 1.18 and added hooks to implement Tesseract OCR.