I'm using your Spire.Doc latest version (5.3.22) to load from stream a word binary then save it to another stream in PDF
The line 4: document.SaveToStream(pdfStream, Spire.Pdf.FileFormat.PDF);
is not compiled because it tells me that the class FileFormats has no value of PDF
Here is my piece of code:
- Code: Select all
Spire.Doc.Document document = new Spire.Doc.Document();
document.LoadFromStream(content, Spire.Doc.FileFormat.Auto);
Stream pdfStream = new MemoryStream();
document.SaveToStream(pdfStream, Spire.Doc.FileFormat.PDF);
pdfStream.Position = 0;
return pdfStream;
Am I missing something, I used the logic as put in the Live Demo for converting Word to PDF ?
Also in there a problem when converting a Word document containing Arabic Text because using the version 5.2 cause me a problem in this so I have tried to use the latest version 5.3.22 but the above problem appears
Thanks and waiting for any help