On Thu, 2024-06-20 at 09:44 +0200, Christian Sakowski wrote: > PoDoFo::PdfNamesTree* names = doc->GetNamesTree(true); > PoDoFo::PdfFileSpec pEmbeddedFile(fileName, true, doc, true); > names->AddValue("EmbeddedFiles", fileName, > *pEmbeddedFile.GetObject()); > > But i got an exception (in line 2 from the code above): > ePdfError_ChangeOnImmutable
Hi, how do you create the `doc` precisely, please? If not using PdfMemDocument, does anything change if you use that one instead? Also, there is PdfDocument::AttachFile(), which you should rather use. By the way, knowing exact version of PoDoFo you use would be nice to know as well. Bye, zyx _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users