Skip to content

Commit

Permalink
[pdfrenderer] Do not include space symbol into the word pdf box.
Browse files Browse the repository at this point in the history
See #2879.
  • Loading branch information
egorpugin committed Feb 23, 2024
1 parent 5f40a2e commit b8961a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/api/pdfrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ char *TessPDFRenderer::GetPDFTextObjects(TessBaseAPI *api, double width, double
} while (!res_it->Empty(RIL_BLOCK) && !res_it->IsAtBeginningOf(RIL_WORD));
if (res_it->IsAtBeginningOf(RIL_WORD)) {
pdf_word += "0020";
pdf_word_len++;
}
if (word_length > 0 && pdf_word_len > 0) {
double h_stretch = kCharWidth * prec(100.0 * word_length / (fontsize * pdf_word_len));
Expand Down

0 comments on commit b8961a7

Please sign in to comment.