Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Pdf Generator. Filling up Temp Space..


Level 1

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..


1 Reply


Employee Advisor

Try disposing the document finally and check whether it makes any difference.