mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
LibPDF: Support offset size 3 in CFF index reading
...and replace template instantiations with a loop, to make this easily possible. Vaguely nice for code size as well. Needed for example in 0000054.pdf and 0000354.pdf in 0000.zip in the pdfa dataset.
This commit is contained in:
parent
3197f0cab6
commit
58ff7b5336
2 changed files with 20 additions and 20 deletions
|
@ -81,8 +81,7 @@ public:
|
|||
using IndexDataHandler = Function<PDFErrorOr<void>(ReadonlyBytes const&)>;
|
||||
static PDFErrorOr<void> parse_index(Reader& reader, IndexDataHandler&&);
|
||||
|
||||
template<typename OffsetType>
|
||||
static PDFErrorOr<void> parse_index_data(Card16 count, Reader& reader, IndexDataHandler&);
|
||||
static PDFErrorOr<void> parse_index_data(OffSize offset_size, Card16 count, Reader& reader, IndexDataHandler&);
|
||||
|
||||
template<typename OperatorT>
|
||||
using DictEntryHandler = Function<PDFErrorOr<void>(OperatorT, Vector<DictOperand> const&)>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue