Moriyama.PreviewPDF.Ghostscript
1.0.0
Prefix Reserved
dotnet add package Moriyama.PreviewPDF.Ghostscript --version 1.0.0
NuGet\Install-Package Moriyama.PreviewPDF.Ghostscript -Version 1.0.0
<PackageReference Include="Moriyama.PreviewPDF.Ghostscript" Version="1.0.0" />
paket add Moriyama.PreviewPDF.Ghostscript --version 1.0.0
#r "nuget: Moriyama.PreviewPDF.Ghostscript, 1.0.0"
// Install Moriyama.PreviewPDF.Ghostscript as a Cake Addin #addin nuget:?package=Moriyama.PreviewPDF.Ghostscript&version=1.0.0 // Install Moriyama.PreviewPDF.Ghostscript as a Cake Tool #tool nuget:?package=Moriyama.PreviewPDF.Ghostscript&version=1.0.0
Moriyama.PreviewPDF
Moriyama.PreviewPDF are packages which automatically generates a thumbnail png when uploading a PDF to the Umbraco CMS Media section.
Compatibility
This package will only work on Windows machines and servers
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
Ghostscript
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
ABCpdf
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" ]
}
}
}
}
IronPDF
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"
]
}
}
}
}
Getting started
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
Contribution guidelines
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.
Who do I talk to?
This project is maintained by Moriyama and contributors. If you have any questions about the project please raise an issue on GitHub.
License
Copyright © 2024 Moriyama, and other contributors
Licensed under the MIT License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Ghostscript.Core (>= 1.5.0-preview-1.0.2)
- Moriyama.PreviewPDF.Shared (>= 1.0.0)
- Umbraco.Cms.Web.BackOffice (>= 10.8.3)
- Umbraco.Cms.Web.Website (>= 10.8.3)
-
net8.0
- Ghostscript.Core (>= 1.5.0-preview-1.0.2)
- Moriyama.PreviewPDF.Shared (>= 1.0.0)
- Umbraco.Cms.Web.BackOffice (>= 13.0.3)
- Umbraco.Cms.Web.Website (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|