Skip to content

Commit 4ccf405

Browse files
committed
Fix import of a multipage file with different page size configurations
1 parent bb497e7 commit 4ccf405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

writer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (this *PdfWriter) ImportPage(reader *PdfReader, pageno int, boxName string)
121121
this.k = 1
122122

123123
// Get all page boxes
124-
pageBoxes, err := reader.getPageBoxes(1, this.k)
124+
pageBoxes, err := reader.getPageBoxes(pageno, this.k)
125125
if err != nil {
126126
return -1, errors.Wrap(err, "Failed to get page boxes")
127127
}

0 commit comments

Comments
 (0)