Hi;
I’m facing a big problem when I convert a document from Word 2007 (docx) to PDF using the latest Aspose.Words for .net library (Versiom 8.0.0) running on .NET 3.5 sp1. The code per se is very simple:
static void Main(string[] args)
{
string nombreEstatico = "Positiva1.";
Aspose.Words.License awlic = new Aspose.Words.License();
awlic.SetLicense(@"C:\Program Files (x86)\Aspose\Aspose.Total.lic");
string MyDir = @"c:\TestDocs";
Document doc = new Document(MyDir + nombreEstatico + "docx");
doc.SaveToPdf(MyDir + nombreEstatico + "outdirecto.pdf");
}
As you can see nothing fancy, just open a word 2007 document and a PDF convertion. But if you look at the resulting PDF something is very wrong on the third page. In the PDF there is a page break where there is none on the DOCX file. I’m suspecting a margin issue.
The Word 2007 document is restricted for editing with “aaaa” as the password. But that seems not to be the problem cause I have the same result with the protection removed.
I’m attaching the docx document and the resulting PDF.
Looking forward to have news from you,
Sincerly
Mauricio Sougarret
Software Architect
DATCO Peru