Having some trouble when trying to convert a word document to PDF. Specifically the header and footer is duplicating and re-positioning some elements on the page.
In the attachments you can see how the header and footer on page 2 has not saved correctly in the PDF file.
The code I’m using…
Dim bData As Byte()
Dim br As BinaryReader = New BinaryReader(System.IO.File.OpenRead(f))
bData = br.ReadBytes(br.BaseStream.Length)
Dim ms As MemoryStream = New MemoryStream(bData, 0, bData.Length)
ms.Write(bData, 0, bData.Length)
ms.Position = 0
Dim MS2 As New System.IO.MemoryStream
Dim MyDoc = New Aspose.Words.Document(ms)
MyDoc.Save(MS2, Aspose.Words.SaveFormat.Pdf)