Skip to content

Commit

Permalink
page Resources can be loaded from indirect object
Browse files Browse the repository at this point in the history
  • Loading branch information
qz committed Apr 11, 2018
1 parent 3c1db91 commit bf5496a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdf/model/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ func (this *PdfPage) getResources() (*PdfPageResources, error) {
}

if obj := dict.Get("Resources"); obj != nil {
obj = TraceToDirectObject(obj)

prDict, ok := obj.(*PdfObjectDictionary)
if !ok {
return nil, errors.New("Invalid resource dict!")
Expand Down

0 comments on commit bf5496a

Please sign in to comment.