public override void RenderImage(ImageRenderInfo renderInfo) { try { var image = renderInfo.GetImage(); if (image == null) { return; } var number = _counter++; var imageFile = new FileInfo($"{OutputFile.FullName}-{number}.{image.GetFileType()}"); imageFile.ByteArrayToFile(image.GetImageAsBytes()); var segment = UNIT_LINE.TransformBy(renderInfo.GetImageCTM()); var location = new TextChunk("[" + imageFile + "]", segment.GetStartPoint(), segment.GetEndPoint(), 0f); var locationalResultField = typeof(LocationTextExtractionStrategy).GetField("locationalResult", BindingFlags.NonPublic | BindingFlags.Instance); var LocationalResults = (List <TextChunk>)locationalResultField.GetValue(this); LocationalResults.Add(location); } catch (Exception ex) { Log.Debug($"{ex.Message}"); Log.Verbose($"{ex.StackTrace}"); } }