Closed polderudo closed 2 years ago
Adding a Image to a creator and applying a Standard (like PDFa1) throws an error
Added images should be of imageutil.RGBA so a standard can be applyed.
Steps to reproduce the behavior:
cc := creator.New() cc.SetPdfWriterAccessFunc(func(w *model.PdfWriter) error { w.ApplyStandard(pdfa.NewProfile1A(nil)) return nil }) img, err := cc.NewImageFromData(signSrc) cc.Draw(img) cc.WriteToFile() //throws error: interface conversion: *imageutil.NRGBA32 is not imageutil.RGBA: missing method RGBAAt
This has been fixed in latest versions.
Description
Adding a Image to a creator and applying a Standard (like PDFa1) throws an error
Expected Behavior
Added images should be of imageutil.RGBA so a standard can be applyed.
Actual Behavior
Steps to reproduce the behavior: