Fix PDF syntax error: "XObject" instead of "/XObject" when textonly_pdf=false

This commit is contained in:
James R. Barlow 2017-01-20 13:36:16 -08:00
parent effa5741e6
commit bf638b9202

View File

@ -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