We have license copy for .NET.
Version - 9.12.7
We are having issue while converting document to PDF, Its taking forever for few documents. I research little bit and found below code is taking time (sometimes 109,120 ms) --
Basically document.SaveToStream takes a lot like 150,000 ms every time.
- Code: Select all
private byte[] ConvertPdfToByteArray(Document document)
{
byte[] wordByteArray;
using (MemoryStream ms1 = new MemoryStream())
{
document.SaveToStream(ms1, FileFormat.PDF);
//save to byte array
wordByteArray = ms1.ToArray();
}
return wordByteArray;
}
Can some one look into it and let us know what else we can do to improve performance ?
Thanks
Chandra