mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-21 04:17:57 +08:00
finish moving all parsing to token scanner
This commit is contained in:
@@ -35,7 +35,19 @@
|
||||
|
||||
public bool TryGetOffset(IndirectReference reference, out long offset)
|
||||
{
|
||||
return offsets.TryGetValue(reference, out offset);
|
||||
if (offsets.TryGetValue(reference, out offset))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var locations = searcher.GetObjectLocations();
|
||||
|
||||
if (locations.TryGetValue(reference, out offset))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void UpdateOffset(IndirectReference reference, long offset)
|
||||
|
Reference in New Issue
Block a user