Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

This file is part of FPDI

Copyright: Copyright (c) 2019 Setasign - Jan Slabon (https://www.setasign.com)
License: http://opensource.org/licenses/mit-license The MIT License
File Size: 196 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FixedReader:: (5 methods):
  __construct()
  getSubSections()
  getOffsetFor()
  read()
  fixFaultySubSectionShift()


Class: FixedReader  - X-Ref

Class FixedReader

This reader allows a very less overhead parsing of single entries of the cross-reference, because the main entries
are only read when needed and not in a single run.

__construct(PdfParser $parser)   X-Ref
FixedReader constructor.

param: PdfParser $parser

getSubSections()   X-Ref
Get all subsection data.

return: array

getOffsetFor($objectNumber)   X-Ref


read()   X-Ref
Read the cross-reference.

This reader will only read the subsections in this method. The offsets were resolved individually by this
information.


fixFaultySubSectionShift()   X-Ref
Fixes an invalid object number shift.

This method can be used to repair documents with an invalid subsection header:

<code>
xref
1 7
0000000000 65535 f
0000000009 00000 n
0000412075 00000 n
0000412172 00000 n
0000412359 00000 n
0000412417 00000 n
0000412468 00000 n
</code>

It shall only be called on the first table.

return: bool