mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Fix PDF syntax error: "XObject" instead of "/XObject" when textonly_pdf=false
This commit is contained in:
parent
effa5741e6
commit
bf638b9202
@ -852,7 +852,7 @@ bool TessPDFRenderer::AddImageHandler(TessBaseAPI* api) {
|
||||
double width = pixGetWidth(pix) * 72.0 / ppi;
|
||||
double height = pixGetHeight(pix) * 72.0 / ppi;
|
||||
|
||||
snprintf(buf2, sizeof(buf2), "XObject << /Im1 %ld 0 R >>\n", obj_ + 2);
|
||||
snprintf(buf2, sizeof(buf2), "/XObject << /Im1 %ld 0 R >>\n", obj_ + 2);
|
||||
const char *xobject = (textonly_) ? "" : buf2;
|
||||
|
||||
// PAGE
|
||||
|
Loading…
Reference in New Issue
Block a user