We are getting one issue while converting one docx file to pdf.
The Docx file is of 78pages, but when we process it via Aspose library and covert it to pdf the coverted pdf contains only 29page.
Whole docx file is not getting converted to pdf file .
Aspose word version:- aspose-words-17.11-jdk16) AUTO11133.zip (2.8 MB)
Please replay asap as we are stuck with one production issue with these docs file
It seems that you are using Aspose.Words without license. Please note that in evaluation mode there are some limitations applied. E.g. Aspose.Words injects an evaluation watermark at the top of the document. The document’s content are truncated after a certain number of paragraphs during import or export.
Please get 30 days temporary license and apply it before importing document into Aspose.Words’ DOM.
@tahir.manzoor
We are using license version of aspose(Aspose word version:- aspose-words-17.11-jdk16)
And we know that document processed via evaluation mode support only 10pages and red color evaluation watermark at the top of the document is there.
All other docx are properly converted to pdf, only these particular docx file which is of 78pages is converted to pdf but gets truncated till 29pages.
Sample code while converting:-
public class TEstAspose {
static
{
com.aspose.words.License license = new com.aspose.words.License();
try
{
license.setLicense(TEstAspose.class.getClassLoader().getResourceAsStream(“Aspose.Total.Java.lic”));
}
catch (Exception e)
{}
}
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
Document docx = new Document("D:\\iContractFileSystem\\FileSystem\\AGR-2020-13520.docx");
docx.save("D:\\iContractFileSystem\\FileSystem\\AGR-2020-13520.pdf", SaveFormat.PDF);
}
Hi @tahir.manzoor,
Thanks for your quick reply.
Can you check at your end help us with these as one of our customer are really stuck and we need to provide them urgent solution for these.
We tested the scenario using the latest version of Aspose.Words for Java 21.1 and have not found the shared issue. So, please use Aspose.Words for Java 21.1. We have attached the output PDF with this post for your kind reference. 21.1.pdf (9.2 MB)