From 1448cc11b9be67d2d1fcd3f2f833cc6f79ad8d42 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 3 Jul 2018 13:52:33 +0000 Subject: Add FPDFText_GetTextRenderMode() API This allows deciding if FPDFPageObj_GetFillColor() or FPDFPageObj_GetStrokeColor() should be used to get the effective color of a text object. Change-Id: Ic6e99a9eb8512b164756da8b5fcd8cd7771271ae Reviewed-on: https://pdfium-review.googlesource.com/36750 Reviewed-by: dsinclair Commit-Queue: dsinclair --- testing/resources/text_render_mode.pdf | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 testing/resources/text_render_mode.pdf (limited to 'testing/resources/text_render_mode.pdf') diff --git a/testing/resources/text_render_mode.pdf b/testing/resources/text_render_mode.pdf new file mode 100644 index 0000000000..220e143757 --- /dev/null +++ b/testing/resources/text_render_mode.pdf @@ -0,0 +1,75 @@ +%PDF-1.2 +%âãÏÓ +1 0 obj +<< +/Resources 2 0 R +/Contents 3 0 R +/Parent 4 0 R +/Type /Page +/MediaBox [0 0 612 446] +>> +endobj +3 0 obj +<< +/Length 102 +>> +stream + BT + /F1 24 Tf + 0 Tr + 1 0 0 1 260 250 Tm + (fill)Tj + 1 Tr + 1 0 0 1 260 200 Tm + (stroke)Tj + ET + +endstream +endobj +2 0 obj +<< +/Font +<< +/F1 5 0 R +>> +>> +endobj +5 0 obj +<< +/Subtype /Type1 +/Name /F1 +/Type /Font +/BaseFont /Helvetica +>> +endobj +4 0 obj +<< +/Kids [1 0 R] +/Type /Pages +/MediaBox [0 0 612 446] +/Count 1 +>> +endobj +6 0 obj +<< +/Type /Catalog +/Pages 4 0 R +>> +endobj xref +0 7 +0000000000 65535 f +0000000015 00000 n +0000000277 00000 n +0000000121 00000 n +0000000405 00000 n +0000000323 00000 n +0000000488 00000 n +trailer + +<< +/Root 6 0 R +/Size 7 +>> +startxref +538 +%%EOF -- cgit v1.2.3