mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-21 04:17:57 +08:00
use image from another source since gimp positions appear wrong
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -58,7 +58,7 @@
|
||||
foreach (var word in page.Letters)
|
||||
{
|
||||
graphics.DrawRectangle(redPen, new Rectangle((int)word.GlyphRectangle.Left,
|
||||
792 - (int)word.GlyphRectangle.Top, (int)Math.Max(1, word.GlyphRectangle.Width), (int)word.GlyphRectangle.Height));
|
||||
792 - (int)(word.GlyphRectangle.Bottom + word.GlyphRectangle.Height), (int)Math.Max(1, word.GlyphRectangle.Width), (int)word.GlyphRectangle.Height));
|
||||
}
|
||||
|
||||
var imageName = $"{file}.jpg";
|
||||
|
Reference in New Issue
Block a user