File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
UglyToad.PdfPig/Parser/FileStructure
UglyToad.PdfPig.Tests/Parser/Parts Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ public void Issue443()
170
170
var result = FileHeaderParser . Parse ( scanner . scanner , scanner . bytes , false , log ) ;
171
171
172
172
Assert . Equal ( 0 , scanner . scanner . CurrentPosition ) ;
173
- Assert . Equal ( 129 , result . OffsetInFile ) ;
173
+ Assert . Equal ( 128 , result . OffsetInFile ) ;
174
174
Assert . Equal ( 1.1m , result . Version ) ;
175
175
Assert . Equal ( "PDF-1.1" , result . VersionString ) ;
176
176
}
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ private static bool TryBruteForceVersionLocation(long startPosition, IInputBytes
131
131
headerVersion = new HeaderVersion (
132
132
version ,
133
133
content . Substring ( afterCommentSymbolIndex , versionLength - 1 ) ,
134
- currentOffset + afterCommentSymbolIndex ) ;
134
+ currentOffset + actualIndex ) ;
135
135
136
136
inputBytes . Seek ( startPosition ) ;
137
137
You can’t perform that action at this time.
0 commit comments