Hey,
I recently purchased the aspose.word and aspose.pdf.
I have a form which lets users upload documents and I want to convert the word docs to pdf without saving them on the disk.
According to your forum, this method should work but
///
/// Converts document to PDF and returns PDF document's bytes.
///
private byte[] DocumentToPdfBytes(Document doc)
{
byte[] pdfBytes;
using(MemoryStream pdfStream = new MemoryStream())
{
doc.SaveToPdf(0, doc.PageCount, pdfStream, null);
pdfBytes = pdfStream.ToArray();
}
return pdfBytes;
}
but the dll does not have any doc.SaveToPdf option
Please advice
This message was posted using Aspose.Live 2 Forum