skttl
05/22/2024, 1:56 PMvar config = Configuration.Default.Clone();
config.Configure(new PdfConfigurationModule());
into an IComposer - but that didn't do anything.
Also tried adding a notificationhandler listening for the ApplicationStarted notification, so I could inject the Configuration object into that, and then Configure my ConfigurationModule. No luck either.
Anyone know what else I can do?
You can see my source code here: https://github.com/skttl/ImageSharpCommunity.Format.Pdf
I intend to release it on nuget, just need to get it working 🙂Mike Chambers
05/22/2024, 8:11 PMpublic class OverlayWebProcessorComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IImageWebProcessor, OverlayWebProcessor>());
}
}
not sure it's of any use...Mike Chambers
05/22/2024, 8:15 PMbuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<SixLabors.ImageSharp.Formats.IImageFormat, PdfFormat>());
??skttl
05/23/2024, 7:44 AMskttl
05/23/2024, 11:25 AM