Moriyama.PreviewPDF are packages which automatically generates a thumbnail png when uploading a PDF to the Umbraco CMS Media section.
This has been tested and compiled against Umbraco V10 (DotNet 6) and Umbraco V13 (DotNet 8) no other versions are officially supported.
There are three versions of the package
It makes use of the Ghostscript library, when installing the NuGet package it will add both the Windows x86 and x64 DLLs into your project.
The current version used is: 10.02.1
This package also uses the prerelease version of Ghostscript.Core
Please review the licensing which can be found here: https://www.ghostscript.com/licensing/index.html
It makes use of the ABCpdf library
You will need to purchase a license, you can purchase that here: https://www.websupergoo.com/abcpdf-1.aspx
If you choose to use the ABCpdf package, you will need to add or update the following appsetting in your appsettings.json
file:
{
"Umbraco": {
"CMS": {
"TypeFinder": {
"AssembliesAcceptingLoadExceptions": "*",
"AdditionalAssemblyExclusionEntries": [ "WindowsBase", "PresentationFramework", "ReachFramework", "PresentationCore" ]
}
}
}
}
It makes use of the IronPDF library
You will need to purchase a license, you can purchase that here: https://ironpdf.com/licensing/
If you choose to use the IronPDF package, you will need to add or update the following appsetting in your appsettings.json
file:
{
"Umbraco": {
"CMS": {
"TypeFinder": {
"AssembliesAcceptingLoadExceptions": "*",
"AdditionalAssemblyExclusionEntries": [
"SkiaSharp",
"PdfToSvg",
"Ninject",
"ZXing.ImageSharp.V2",
"zxing",
"DocumentFormat.OpenXml",
"OpenXmlPowerTools",
"Markdig.Signed",
"RtfPipe",
"DotNetZip",
"Babel.Licensing",
"Azure.Data.Tables",
"DeviceId.Windows",
"DeviceId.Linux",
"DeviceId.Mac",
"DeviceId",
"BouncyCastle.Crypto"
]
}
}
}
}
You will need to edit the Article Media Type, this can be found under Settings -> Media Types -> Article
You will need to add a property called Thumbnail
with the alias of thumbnail
and Editor type of Upload
Once added change the order so that Thumbnail is the first property
To raise a new bug, create an issue on the GitHub repository. To fix a bug or add new features, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the package.
This project is maintained by Moriyama and contributors. If you have any questions about the project please raise an issue on GitHub.
Copyright © 2024 Moriyama, and other contributors
Licensed under the MIT License