You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand the reason for SetSourceStream to require a pointer to an interface.
the method signature should be rs io.ReadSeeker
instead of rs *io.ReadSeeker
a conversion to the interface would then not be necessary anymore as NewReader already implements the ReaderSeeker interface.
rs := bytes.NewReader(pdfBytes) tpl1 := gofpdi.ImportPageFromStream(pdf, rs, 1, "/TrimBox")
Let me know if you want me to create a pull request for this. I understand that this is a rather tedious issue since it actually breaks the interface and would mean this library and the gofpdf and gopdf library would have to release a new major version I suppose.