Hi everyone! I’m looking for the best way to insert an image to a specific bookmark. I found this topic which is not up-to-date regarding the code : Replace the bookmark and its text with image using Java
Here is my code which doesn’t work. I mean it doesn’t insert the image…
string File = Application.dataPath + jsonModel.EDFRapports.rapport_travaux [phasesContentStatus.IDCurrentPhase].rapport_file;
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
//Image insert
Bookmark bm_photos = doc.Range.Bookmarks ["photos"];
builder.MoveToBookmark ("photos");
builder.InsertImage (photoPath);
doc.Save(File);
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
//Image insert
Bookmark bm_photos = doc.Range.Bookmarks ["photos"];
builder.MoveToBookmark ("photos");
builder.InsertImage (photoPath);
doc.Save(File);