Hi,
The OverflowException error has been resolved. But there are difference between word document and pdf document on content.
Our dev team will continue fixing the differences. We will keep you updated.
Best Regards,
Amy
E-iceblue support team
Spire.Doc.Document document = new Spire.Doc.Document();
System.IO.MemoryStream inputStream = new System.IO.MemoryStream(bytes);
document.LoadFromStream(inputStream, Spire.Doc.FileFormat.Auto);
// doing some very fast modification to the document...
System.IO.MemoryStream outputStream = new System.IO.MemoryStream();
Spire.Doc.FileFormat format = document.DetectedFormatType;
if (convertToPDF) format = Spire.Doc.FileFormat.PDF;
document.SaveToStream(outputStream, format);
document.Dispose();