Error in the PDF Transformation

Hi

We clean PDF with the following code :

		PdfJavaScriptStripper stripper = new PdfJavaScriptStripper();
		stripper.strip(zipWorkDir + vFileName + ".pdf", tempDir + vFileName + "_noJS.pdf");
		pdfDocument = new Document(tempDir + vFileName + "_noJS.pdf");

		// Flatten LinkAnnotations
		nbPages = pdfDocument.getPages().size();
		for (int i = 1; i <= pdfDocument.getPages().size(); i++) {
			pdfDocument.getPages().get_Item(i).getAnnotations().delete();
		}

		pdfDocument.save(zipWorkDir + vFileName + ".pdf");

But the generated document miss some content.

I add the pdf input / ouput.

Regards

@jfreguer

We could not find any input/output documents with your post. Can you please attach them so that we can further proceed to assist you accordingly?