Hello,
I’m moving from another library called PD4ML to use ASPOSE.
But the same process, same HTML, is taking 10 times more.
Here is the code I’m using in JAVA:
public static void generatePDFwithASPOSE(String inputHTMLFileName, String outputPDFFile, String headerBody, String width, String pageSize)
{
com.aspose.pdf.HtmlLoadOptions htmloptions = new com.aspose.pdf.HtmlLoadOptions( inputHTMLFileName );
com.aspose.pdf.PageInfo pageInfo = new com.aspose.pdf.PageInfo();
com.aspose.pdf.MarginInfo marginInfo = new com.aspose.pdf.MarginInfo();
marginInfo.setTop(20);
marginInfo.setBottom(20);
marginInfo.setLeft(20);
marginInfo.setRight(20);
htmloptions.getPageInfo().setWidth( com.aspose.pdf.PageSize.getA2().getWidth() );
htmloptions.getPageInfo().setHeight( com.aspose.pdf.PageSize.getA2().getHeight() );
pageInfo.setMargin(marginInfo);
htmloptions.setPageInfo(pageInfo);
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(inputHTMLFileName, htmloptions);
doc.save( outputPDFFile );
}
The version for the aspose.pdf lib 19.3. I will try using the 19.5 but I don´t think that is the issue. I have read the ASPOSE forum and there are many people complaining about the same. The answer from you guys is always that it’s about the processor, the complexity of the HTML, the length of the document. But here I’m comparing 2 libraries with the same HTML.
Thank you.