Keep embedded file(s) in a PDF/A Document?

Good morning,

I have .pdf (1.4) files which do have embedded files but which get
lost during PDF/A conversion with PDFNet SDK. Is it possible to tell
PDFNet to keep those during PDF > PDF/A conversion?

Best regards,
-Joerg Battermann

You could use PDFNet to trick {DFTron PDF/A Converter not to remove
embedded files, however please keep in mind that the resulting
document will not be fully PDF/A compatible.

You could use the following pseudo-code:

Obj names = pdfdoc.GetRoot().FindObj("Names");
if (names != null) {
   names.Rename("EmbeddedFiles", "EBTemp");
}
pdfdoc.Save(... save to a temp file)

... perform PDF/A conversion

... open the converted file
... restore the embedded files name tree

PDFDoc pdfdoc("...");
Obj names = pdfdoc.GetRoot().FindObj("Names");
if (names != null) {
   names.Rename("EBTemp", "EmbeddedFiles");
}
pdfdoc.Save(... save to a final file)

PDF/A converter also have some switches to skip specific types of
conversion, however at the moment this functionality is not well
documented.