Skip to content

Commit

Permalink
Fix PDF syntax error: "XObject" instead of "/XObject" when textonly_p…
Browse files Browse the repository at this point in the history
…df=false
  • Loading branch information
James R. Barlow committed Jan 20, 2017
1 parent effa574 commit bf638b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/pdfrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf638b9

Please sign in to comment.