We are using Aspose.pdf.kit version 3.8.0.1.
We found that for some word document files, after we save them to pdf format, the pdf document shrinks to less pages comparing to the original word document.
I am attaching a sample file (“7pages.doc”) here. You can run the following code
Dim doc As Aspose.Words.Document = New Aspose.Words.Document("C:\\temp\\7pages.doc")
doc.Save("C:\\temp\\7pages.pdf", Aspose.Words.SaveFormat.Pdf)
The orginal “7pages.doc” has 7 pages, but the generated “7pages.pdf” only has 5 pages.
Any idea?
Hi Michelle,
According to the sample you shared, it looks like you’re using Aspose.Words to convert Word document to PDF. As this issue is related to Aspose.Words, I’m moving this thread to the related forum. A representative from the concerned team would be able to help you out shortly.
We’re sorry for the inconvenience.
Regards,
Hello,
Thank you for your request.
I managed to reproduce your problem on my side.
Once the cause of the problem is fixed, we will notify you immediately.
As a temporary solution you can use PageBreak for page layout.
License lic = new License();
lic.SetLicense("Aspose.Words.lic");
Document document = new Document();
DocumentBuilder builder = new DocumentBuilder(document);
builder.Writeln("Page1");
builder.InsertBreak(BreakType.PageBreak);
builder.Writeln("Page2");
document.Save("E:\\out.pdf", SaveFormat.Pdf);
we have same issue, when we upload 7 page word document it get convert to PDF with 5 page.
Is there any solution that you can provide us with out applying page break property.Did you find any solution now ?
Hello Skonudhala,
Thanks for your request. Could you please attach your input and output documents here for testing? I will investigate the problem and provide you more information.
Best regards,
The issues you have found earlier (filed as WORDSNET-4804) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.