summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTom Gleason <tom@buildadam.com>2011-04-26 17:06:07 +0100
committerAlbert Astals Cid <aacid@kde.org>2011-04-26 17:06:55 +0100
commita7e33358c35506846a9de2461bc90676816fbc50 (patch)
tree2b735b2fcc3fb31ce9018c4101816bb9cbd26eff /utils
parent14d920864c588e2545d42e2eb995f6316cb58ef4 (diff)
bbox coordinates are relative to MediaBox size, not CropBox size
Diffstat (limited to 'utils')
-rw-r--r--utils/pdftotext.cc2
1 files changed, 1 insertions, 1 deletions
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, "<doc>\n");
for (int page = firstPage; page <= lastPage; ++page) {
- fprintf(f, " <page width=\"%f\" height=\"%f\">\n",doc->getPageCropWidth(page), doc->getPageCropHeight(page));
+ fprintf(f, " <page width=\"%f\" height=\"%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;