Facing issue with temporary license issue Aspose pdf

Hi Team,

While generating PDF with Aspose, using temporary license we are unable to see complete data in the PDF generation and unable to find any error in the server logs, below is the message we are getting.

This document was truncated here because it was created in the Evaluation Mode.

Code:
com.aspose.pdf.License license = new com.aspose.pdf.License();
inputStream = getClass().getClassLoader().getResourceAsStream(“Aspose_Total.lic”);
license.setLicense(inputStream);

public void generatePDF(String xmlFile, String rtfFile, String pdfName,String protectionPassword) {
logger.info(“Enter in generatePDF(): rtfFile: {}, pdfName: {}”,rtfFile,pdfName);
new RTFGeneratorHelper().setAsposeLicense();
InputStream rtfStream = null;
InputStream xmlStream = null;
DataSet ds = null;
try {
File file = new File(rtfFile);
if (file.exists()) {
rtfStream = new FileInputStream(file);
com.aspose.words.Document doc = new com.aspose.words.Document(rtfStream);

            //ObjectMapper om = new ObjectMapper();
            
            //System.out.println(om.writeValueAsString(doc));
            
            String fontFolder = System.getProperty("FONT_FOLDER");

// System.out.println("---------------------------------- fontFolder “+fontFolder);
logger.info(”---------------------------------- fontFolder : {} ",fontFolder);

            if(fontFolder != null){
            	
                FontSettings fs = FontSettings.getDefaultInstance();
                fs.setFontsFolder(fontFolder, false);                    
                doc.setFontSettings(fs);
                
            }
            
            String localeCode= (String) RequestContext.getObject(RequestContext.LOCALE_ID);
    		if(null != localeCode && localeCode.equals("zh_CN"))
    		{
    			
    			FontSettings fs = FontSettings.getDefaultInstance();
    			 URL url = getClass().getClassLoader().getResource("fonts");
                fs.setFontsFolder(url.toURI().getPath(), false);
                fs.setDefaultFontName(arialUnicodeFont);
                doc.setFontSettings(fs);
    		}
            
        
        logger.info("end generatePDF()");
    } catch (Exception e) {
    	logger.error("Error in generatePDF()");
        e.printStackTrace();
        throw new RuntimeException(e.getMessage());
    } finally {
        try {
            if (ds != null)
                ds.close();
        } catch (Exception e) {
            ds = null;
        }

        try {
            if (rtfStream != null)
                rtfStream.close();
        } catch (Exception e) {
            rtfStream = null;
        }
        
        try {
            if (xmlStream != null)
            	xmlStream.close();
        } catch (Exception e) {
        	xmlStream = null;
        }*/
    }
}

Can you please help us to proceed further to generate entire rows as we can see only 20k rows where we have 50k rows in the database.

Appreciate your help.

@Jayaraj

Would you please make sure that the license settings code is called at the start of the application? In case issue is still occurring, please share your license file with us so that we can test the scenario in our environment and address it accordingly. You can send your license in a private message. image.png (12.8 KB)

Hi Asad,
As requested sent you the license key in a separate window, could you please check and let us know if you have any issues.

@Jayaraj

We are checking it and will get back to you shortly.

@Jayaraj

Please accept our humble apology for the delayed response. Would you kindly try using 23.1 version of the API and in case your temporary license is expired, you can please get an extension or new one by requesting in our Purchase forum.