From 84d3394d88c42b798eedc938e6295ad1bf28ac66 Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Wed, 25 Jul 2018 02:47:25 +0000 Subject: Fix hint tables parsing. Sample PDF: https://yadi.sk/d/oWLtAEfy3YbEb3 For offsets, equal to the hint stream offset, added hint stream length to determine the actual offset, because linearization inserted the hint stream at the original location of the object. Also the number of bits needed to represent the numerator of the fractional position for each shared object reference may be zero, if each shared group contains only one object with obj num, incremented on 1. Change-Id: I4754d603f388354821e8d0cac97ad99a7578fe4b Reviewed-on: https://pdfium-review.googlesource.com/36610 Commit-Queue: Art Snake Reviewed-by: Lei Zhang --- testing/resources/hint_table_102p.bin | Bin 0 -> 3797 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing/resources/hint_table_102p.bin (limited to 'testing') diff --git a/testing/resources/hint_table_102p.bin b/testing/resources/hint_table_102p.bin new file mode 100644 index 0000000000..4008b0daca Binary files /dev/null and b/testing/resources/hint_table_102p.bin differ -- cgit v1.2.3