signintech / gopdf

A simple library for generating PDF written in Go lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stream write of content using WriteTo rewrites entire content

piyushgup opened this issue · comments

I was using the gopdf library to stream write data page by page. But it would happen to be writing content that it has already written again and again.

For example, if I add 3 pages p1,p2,p3, with WriteTo called after each page, the output in the pdf contains 6 pages as
p1
p1
p2
p1
p2
p3

@piyushgup can you post an example so I can reproduce this issue?