summaryrefslogtreecommitdiff
path: root/samples/pdfium_test_dump_helper.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-16 05:54:09 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-16 05:54:09 +0000
commitbb3f58dbcb7195e9e641fcc64e2ab537cf3fbc61 (patch)
treea4aaa3a58970fe29dea577381d83cca145ef2cad /samples/pdfium_test_dump_helper.h
parentf1925d9429f8674b25fff8010e04f2fc132ea38a (diff)
downloadpdfium-bb3f58dbcb7195e9e641fcc64e2ab537cf3fbc61.tar.xz
Add pdfium_test --show-pageinfo to dump page bounding boxes.
The bounding boxes are LBRT coordinates. e.g. Page 0: MediaBox: 0.00 0.00 595.00 842.00 Page 0: No CropBox. Page 0: BleedBox: 0.04 0.00 842.04 594.96 Page 0: TrimBox: 0.04 0.00 842.04 594.96 Page 0: ArtBox: 0.00 0.02 594.96 594.96 Change-Id: I2809aab69f3c51bde9a443d6c92f3167ee10b3c9 Reviewed-on: https://pdfium-review.googlesource.com/c/43976 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Shirleen Lou <xlou@chromium.org>
Diffstat (limited to 'samples/pdfium_test_dump_helper.h')
-rw-r--r--samples/pdfium_test_dump_helper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/pdfium_test_dump_helper.h b/samples/pdfium_test_dump_helper.h
index e2276f7b1a..17cbd8f7b2 100644
--- a/samples/pdfium_test_dump_helper.h
+++ b/samples/pdfium_test_dump_helper.h
@@ -8,7 +8,8 @@
#include "public/fpdfview.h"
void DumpChildStructure(FPDF_STRUCTELEMENT child, int indent);
-void DumpPageStructure(FPDF_PAGE page, const int page_idx);
+void DumpPageInfo(FPDF_PAGE page, int page_idx);
+void DumpPageStructure(FPDF_PAGE page, int page_idx);
void DumpMetaData(FPDF_DOCUMENT doc);
#endif // SAMPLES_PDFIUM_TEST_DUMP_HELPER_H_