Skip to content

Commit

Permalink
Standardizes readers
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecot committed Nov 18, 2023
1 parent 402e95d commit d23051c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/readers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ impl crate::FileFormat {
// Marker for the AI file format.
const AI_MARKER: &[u8] = b"AIPrivateData";

// Rewinds to the beginning of the stream.
reader.rewind()?;
// Rewinds to the beginning of the stream plus the size of the PDF file format signature.
reader.seek(SeekFrom::Start(5))?;

// Creates a buffer to hold the chunk of data being read.
let mut buffer = [0; OVERLAP_SIZE + CHUNK_SIZE];
Expand Down

0 comments on commit d23051c

Please sign in to comment.