1 Reply Latest reply on May 31, 2016 6:30 PM by WASIL

    Pdf Generator. Filling up Temp Space..


      I am converting Tiff to PDF's and optimizing using LiveCycle large no of Tiffs around 1500. It works good, but fills up temp space and starts failing. Here is the code. Please let me know how to clean up the Temp folder on the server..Any suggestions is greatly helpful!!


      for (File f : packages.listFiles()) {

        inputFileName = f.getPath();

        fileInputStream = new FileInputStream(inputFileName);

        inDoc = new Document(fileInputStream);

        pdfResult = pdfGenClient.createPDF2(inDoc, ".tif", fileTypeSettings, adobePDFSettings,securitySettings, null, null);

        optResult = pdfGenClient.optimizePDF(pdfResult.getCreatedDocument(), null, null);

        inDoc = optResult.getConvertedDocument();

        // Save the converted PDF document as a PDF file

        inDoc.copyToFile(new File(outputPath + "\\" + f.getName().substring(0, f.getName().indexOf(".tif")) + ".pdf"));



      Temp folder..