Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Save startxref in Reader #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions read.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import (
type Reader struct {
f io.ReaderAt
end int64
startxref int64
xref []xref
trailer dict
trailerptr objptr
Expand Down Expand Up @@ -161,6 +162,7 @@ func NewReaderEncrypted(f io.ReaderAt, size int64, pw func() string) (*Reader, e
if err != nil {
return nil, err
}
r.startxref = startxref
r.xref = xref
r.trailer = trailer
r.trailerptr = trailerptr
Expand Down