Skip to content

Commit

Permalink
PDF: fix stream syntax which trips up some readers, see #332
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jan 20, 2025
1 parent 84f9a27 commit 7224230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderers/pdf/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (w *pdfWriter) writeVal(i interface{}) {
w.writeVal(v.dict)
w.write("stream\n")
w.writeBytes(b)
w.write("\nendstream")
w.write("\nendstream\n")
default:
panic(fmt.Sprintf("unknown PDF type %T", i))
}
Expand Down

0 comments on commit 7224230

Please sign in to comment.