From a7e33358c35506846a9de2461bc90676816fbc50 Mon Sep 17 00:00:00 2001 From: Tom Gleason Date: Tue, 26 Apr 2011 17:06:07 +0100 Subject: bbox coordinates are relative to MediaBox size, not CropBox size --- utils/pdftotext.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/pdftotext.cc b/utils/pdftotext.cc index 56766800..a67a9eb5 100644 --- a/utils/pdftotext.cc +++ b/utils/pdftotext.cc @@ -341,7 +341,7 @@ int main(int argc, char *argv[]) { if (textOut->isOk()) { fprintf(f, "\n"); for (int page = firstPage; page <= lastPage; ++page) { - fprintf(f, " \n",doc->getPageCropWidth(page), doc->getPageCropHeight(page)); + fprintf(f, " \n",doc->getPageMediaWidth(page), doc->getPageMediaHeight(page)); doc->displayPage(textOut, page, resolution, resolution, 0, gTrue, gFalse, gFalse); TextWordList *wordlist = textOut->makeWordList(); const int word_length = wordlist != NULL ? wordlist->getLength() : 0; -- cgit v1.2.3