Dear Spire Team,
I am trying to use and test spire.doc.
code snippet:
public byte[] GetModifiedPDFDocument()
{
_wordDocument.Save();
var doc = new Document(_wordMS, Spire.Doc.FileFormat.Docx);
var tmpStream = new MemoryStream();
doc.SaveToStream(tmpStream, Spire.Doc.FileFormat.pdf);
return tmpStream.ToArray();
}
The variables _wordDocument and _wordMS are generated through a different api.
I've included the docx file and the converted pdf.
Thanks,
Nir