Skip to content

Commit bd9702a

Browse files
Arnaud TAMAILLONBobLd
Arnaud TAMAILLON
authored andcommitted
Skip whole " obj" parsing once found
1 parent 68e48d0 commit bd9702a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UglyToad.PdfPig/Parser/Parts/BruteForceSearcher.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static IReadOnlyDictionary<IndirectReference, long> GetObjectLocations(II
156156

157157
currentlyInObject = true;
158158

159-
currentOffset++;
159+
currentOffset += objBuffer.Length;
160160

161161
bytes.Seek(currentOffset);
162162
loopProtection = 0;

0 commit comments

Comments
 (0)