PdfPig
PdfPig copied to clipboard
mix up horizontal and vertical textblock
var blocks = RecursiveXYCut.Instance.GetBlocks(words, new RecursiveXYCut.RecursiveXYCutOptions() { MinimumWidth = minimumWidth, DominantFontWidthFunc = letters => letters.Select(l => l.GlyphRectangle.Width).Average(), DominantFontHeightFunc = letters => letters.Select(l => l.GlyphRectangle.Height).Average() });
var blocks = DocstrumBoundingBoxes.Instance.GetBlocks(words, new DocstrumBoundingBoxes.DocstrumBoundingBoxesOptions() { WithinLineBounds = new DocstrumBoundingBoxes.AngleBounds(-45, 45), BetweenLineBounds = new DocstrumBoundingBoxes.AngleBounds(35, 170), BetweenLineMultiplier = lineMultiplier });
try both code but it mix horizontal line and vertical lines textblock
Can you describe exactly your problem, there is now way anybody can understand the issue you are facing. Also, attached a pdf sample.
File contains private details so i can mail you
Also some unicode characters height is zero