Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparing release 1.4.0 #10

Merged
merged 1 commit into from
Sep 9, 2023
Merged

Preparing release 1.4.0 #10

merged 1 commit into from
Sep 9, 2023

Conversation

sandrohanea
Copy link
Owner

This release will change the underlying recommended library to https://www.nuget.org/packages/bblanchon.PDFium.Win32 as it is the only runtime up to date.

This was brought into my attention as multiple security issues are present in older builds (like https://www.nuget.org/packages/PdfiumViewer.Native.x86_64.v8-xfa/)

Changed the library loader so now it works cross-platform. However, the rendering and printing part still rely on System.Drawing.Common which works only on windows: [See here] (https://learn.microsoft.com/en-gb/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only)

Had to update some native bindings which were updated in the pdfium (e.g. FPDFDest_GetPageIndex => FPDFDest_GetDestPageIndex) + removed some older bindings which were not used anymore.

Because of the security issues, I also disabled the old loading part (e.g. FPDF_AddRef) => as I don't want to encourage any user to use vulnerable dependencies.

@sandrohanea sandrohanea merged commit 0cb8c36 into master Sep 9, 2023
@sandrohanea sandrohanea deleted the release/1.4.0 branch September 9, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant