use offset to file header to correct cross references

if the %pdf version header comment is offset from the start of the file the cross reference offsets will also be wrong by that amount. this change updates the cross reference location logic to use the offset from the located version header.
This commit is contained in:
Eliot Jones
2020-01-26 15:30:20 +00:00
parent a561c8954e
commit 693a3d5958
9 changed files with 66 additions and 9 deletions

View File

@@ -46,6 +46,8 @@
public long CurrentPosition => coreTokenScanner.CurrentPosition;
public long Length => coreTokenScanner.Length;
public PdfTokenScanner(IInputBytes inputBytes, IObjectLocationProvider objectLocationProvider, IFilterProvider filterProvider,
IEncryptionHandler encryptionHandler)
{