Skip to content

Commit

Permalink
Fix #192
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed May 26, 2020
1 parent 4a9adac commit ed59dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pdfcpu/optimize.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ func optimizeXObjectResourcesDict(ctx *Context, rDict Dict, pageNumber, pageObjN

// We are dealing with a new XObject..
// Dereference the XObject stream dict.
osd, err := ctx.DereferenceStreamDict(indRef)

osd, err := ctx.DereferenceStreamDictForValidation(indRef)
if err != nil {
return err
}
Expand Down Expand Up @@ -561,7 +562,6 @@ func parsePagesDict(ctx *Context, pagesDict Dict, pageNumber int) (int, error) {
log.Optimize.Printf("parsePagesDict: This page node has %d pages\n", int(count.(Integer)))

// Iterate over page tree.
//kidsArray := pagesDict.ArrayEntry("Kids")
for _, v := range pagesDict.ArrayEntry("Kids") {

// Dereference next page node dict.
Expand Down

0 comments on commit ed59dc3

Please sign in to comment.