When converting this file to PDF using Aspose version 25.2.0 or v. 23.10.0, a blank page is added.
ТК на производство 10 мг, в. 4 РД3_согл.docx (61,6 КБ)
Possibly, when converting with Aspose, the horizontal scaling of some formulas increases by 10%, others by 17%, while some formulas remain unchanged. How can the issue of a blank page being added to the PDF be resolved?
static byte[] GetPdfFile(string wordBase64)
{
byte[] fileWordContent = Convert.FromBase64String(wordBase64);
byte[]? result = null;
using (MemoryStream memoryStream = new MemoryStream(fileWordContent))
using (MemoryStream newMemoryStream = new MemoryStream())
{
Aspose.Words.Document document = new Aspose.Words.Document(memoryStream);
document.WarningCallback = new FontWarningHandler();
document.AcceptAllRevisions();
document.Save(newMemoryStream, Aspose.Words.SaveFormat.Pdf);
result = newMemoryStream.ToArray();
}
return result;
}