Skip to content

Version 1.8.0

Compare
Choose a tag to compare
@arklumpus arklumpus released this 26 Nov 14:29
· 27 commits to master since this release

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.
  • Added support for JPEG output format.
  • Added support for MOBI and HTML input format. This is both integrated within the general MuPDFDocument.SaveImage and MuPDFDocument.WriteImage methods, as well as in two dedicated methods (MuPDFDocument.SaveImageAsJPEG and MuPDFDocument.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, the Pages 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 and linux-musl-arm64 no longer require manually copying the native asset (but see the note for linux-musl-arm64).
  • MuPDFCore.MuPDFRenderer now targets Avalonia 11 (#26).