Thanks for your request. Your question is
related to Aspose.Pdf. So, I will move it to the appropriate forum. My
colleagues from Aspose.Pdf team will answer you shortly.
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
I think you can simply use FileStream class to write your byte array to a file. Please add the following code to write / create a new file from byte array.
// Open file for reading
System.IO.FileStream fileStream = new System.IO.FileStream("C:\\Test.Pdf", System.IO.FileMode.Create, System.IO.FileAccess.Write);
//Writes bytes to this stream using data from a byte array.
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
We are not very clear about your requirement. Please provide us some further details about what you want to acquire. Now, as per my understanding from your post, If you want to convert a word document to PDF using Aspose.Words directly then you don’t need to save the document into a stream. You can directly save it to PDF file on a physical location i.e.
Or, if you want to perform any manipulation / changes to the PDF document after conversion from word document then you can use the FileStream (as code shared in my previous post). I think there is no issue in using FileStream for opening or saving files and it works perfectly fine with Aspose.Pdf.
Still, if you have any other query or requirement or my understanding regarding your requirement is not correct, please provide us some more details and we will get back to you.
Adding more to Nausherwan’s comments, do you mean you need to convert the word file into PDF format, then save it into Byte array and create MemorStream object from it. Finally merge it into existing PDF document. If so is the requirement, as I have shared earlier, you can use Aspose.Pdf for .NET to merge/concatenate PDF documents. Please share some details so we may answer accordingly. We apologize for your inconvenience.