"Dictionary Keys must be direct name objects" is an error that indicates that you have messed up the content of your PDF. "Inserting a adobe file into an existing adobe file" what does that mean? Can you describe the use case and what you did in details, so that we can work with it?