Skip to content

Moriyama.PreviewPDF are packages which automatically generates a thumbnail png when uploading a PDF to the Umbraco CMS Media section.

License

Notifications You must be signed in to change notification settings

Moriyama-Umbraco/Moriyama.PreviewPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

media type configuration

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

About

Moriyama.PreviewPDF are packages which automatically generates a thumbnail png when uploading a PDF to the Umbraco CMS Media section.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages