Hello,
It is my understanding that although PublisherLoadOptions was moved to the .NET Framework package, it should still be possible to convert publisher documents to PDF in .NET 9?
I am using the below code
var fs = new MemoryStream();
using var converter = new Converter(() => ms);
var convertOptions = new PdfConvertOptions();
converter.Convert(convertOptions, (Action<ConvertedContext>)(context =>
{
context.ConvertedStream.CopyTo(fs);
}));
And when attempting to convert the attached file
publisher sample file.zip (9.8 KB)
I get the following error
Could not load file or assembly ‘Aspose.PDF, Version=25.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’. The system cannot find the file specified.
I have also tried to convert this using your sample web app in which it also fails.
@rthomas95
I have reproduced this issue and found a root cause. Unfortunately, to fix this issue we have to publish the next package version. For now, can you use version 25.4.0?
I have checked that conversion works well with this version using sample-app.zip (286.4 KB)
I’m sorry for the inconvenience.
Hello,
Thank you for your response. Unfortunately I can’t go back to 25.4 as PNG conversions were broken in that release. See below ticket.
.NET 9 - Cannot convert image - Free Support Forum - groupdocs.com
Publisher is a rare format in this day and age so happy to wait if there is no option of a hotfix 25.5.1 build.
Thanks
@rthomas95
We’re considering to publish hot-fix version 25.5.1. At the moment we have a couple of possible solutions. As soon as we decide what would be the fix we’ll let you know about the ETA for hot-fix.
1 Like
@rthomas95
The issue was fixed in the hot-fix version 25.5.1. The package is already available for download.
Hello,
Unfortunately this has not resolved the issue, instead I get a different error message.
Exception 1:
ConvertException: PDF conversion error
Exception 2:
FileNotFoundException: Could not load file or assembly ‘System.Drawing.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified
Thanks
Hello,
Have you been able to replicate the behaviour I am seeing mentioned above or do you need any more details from me?
Thanks
@rthomas95
I’ve missed your previous comment. Yes, I was able to reproduce the issue. It seems like System.Drawing.Common
package dependency is not properly set in nuspec file. Please add this dependency along with GroupDocs.Conversion:
<ItemGroup>
<PackageReference Include="GroupDocs.Conversion" Version="25.5.1" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>
We’ll investigate the issue and let you know when the fix will be available.
Thanks. I can confirm this is working as expected by having a direct reference on System.Drawing.Common
I’ll go with this now and remove it at the release of package version 25.6, assuming it is resolved.
@rthomas95
Thank you for the feedback! We’ll notify you here when the version become available.