Hi!
I’m using the latest version of Aspose.Words and I’m having issues with a particular document when converting it from doc to PDF.
The last row of the table on the second page is being cut and instead is on the beginning of the third page.
It kind of looks like there is an extra margin at the top of the PDF file.
I’m attaching two files here, the .doc I used before the conversion, and the .pdf file I used after.
Here is the code I’m using to convert:
private static FileModel convertWordToPdf(FileModel fileModel)
{
try
{
MemoryStream inStream = new MemoryStream(fileModel.data);
MemoryStream dstStream = new MemoryStream();
Aspose.Words.Document doc = new Aspose.Words.Document(inStream);
doc.Save(dstStream, Aspose.Words.SaveFormat.Pdf);
fileModel.data = dstStream.ToArray();
fileModel.contentType = “application/pdf”;
}
catch (Exception ex)
{
LogClient.Error(“Convert Word”, ex);
}
return fileModel;
}
fileModel.data is a byte array.
Also, this particular PDF file has the “Evaluation Only” Message but this happens when we’re using our license as well.
Let me know if you guys can replicate the issue and if there is any suggestion on how to fix this.
WordTableIssue.zip (136.0 KB)