Hello,
Following an upgrade to the most recent version of GroupDocs.Conversion, I am now seeing compile errors as PublisherLoadOptions class no longer exists.
What is the replacement for this? What load options should I be using instead? Is this still supported?
Thanks
@rthomas95
It appears that the PublisherLoadOptions
class has been removed in the latest version of GroupDocs.Conversion, which has led to compile errors in your project. Unfortunately, there hasn’t been a clear announcement regarding a direct replacement for this class in the release notes.
Currently, the support team is aware of this issue and is investigating it. They have indicated that the resolution of this matter is dependent on another internal ticket. As of now, there is no specific alternative load option provided for handling MS Publisher (.pub) files in the latest version.
For the most accurate and up-to-date information, I recommend keeping an eye on the official release notes and the support forum for any updates regarding this issue. If you have specific requirements or need further assistance, consider reaching out to the support team directly for guidance.
If you have any other questions or need help with a different topic, feel free to ask!
Thanks for the reply, I can continue using a generic conversion.
However I notice that a lot of constructors and methods are now obsolete, giving me warnings everywhere.
What is the new expected way to convert a file stream with load options and convert options and get an output stream?
Below is what I am currently using
var loadOptions = new WordProcessingLoadOptions();
using (var converter = new Converter(() => ms, () => loadOptions))
{
var convertOptions = new PdfConvertOptions();
converter.Convert(() => new MemoryStream(), (fileName, fileType, outputStream) =>
{
outputStream.CopyTo(fs);
}, convertOptions);
fs.Seek(0, SeekOrigin.Begin);
}
@rthomas95
Thank you for contacting us. This class, GroupDocs.Conversion.Options.Load.PublisherLoadOptions, has not been removed or hidden and should be available at the specified path. Could you please specify the version of the product you’re using and share a sample of your code?
We look forward to assisting you.
v24.10 of GroupDocs.Conversion.NET doesn’t have a GroupDocs.Conversion.Options.Load.PublisherLoadOptions as far as I can see?
I have resolved the issue around obsolete methods now.
@rthomas95
Apologies for any confusion. We’ve confirmed that this class is indeed only accessible through the GroupDocs.Conversion.CrossPlatform package. Please feel free to contact us if you have further questions—we’re here to help.