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
BedrockMission!

Learn More

View all

Sign in to view all badges

Pdf Generator. Filling up Temp Space..

Avatar

Avatar
Level 1
755karung5630
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
755karung5630
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
755karung5630
Level 1

20-05-2016

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

C:\Windows\Temp\pdfg-MACHINE01_\..

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct Reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct Reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
WASIL
Employee

31-05-2016

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

Thanks

Wasil