pdfdoc = PDFDoc.new()
Yes, PDFNet should not be removing those sorts of entries, and they will be in the output. Compatibility mainly restricts file compression.
Is it possible to exclude these entries from the output? In particular the JS code ?
Obj names = doc.GetRoot().FindObj(“Names”)
if (names != null)
Depending on full list of requirements this may or may not be simple. Since PDF/A is designed to take care of these things, PDFACompliance would be the simplest to use.
Btw. some of our clients who do not consider PDF/A ‘secure enough’ or ‘good enough’ for archiving used the following approach to convert generic PDF to raster PDF (i.e. PDF images):
It is also possible to make rasterized PDF searchable by using TextExtractor and adding hidden text on top of images.