Cfpdf add watermark problem

#1

I have a simple code by adding watermark using cfpdf, when the watermark pdf has image, I get error:

lucee.runtime.exp.NativeException: com/sun/image/codec/jpeg/ImageFormatException
at org.icepdf.core.pobjects.Stream.putIntoImageCache(Unknown Source)
at org.icepdf.core.pobjects.Stream.getImage(Unknown Source)
at org.icepdf.core.pobjects.Stream.getImage(Unknown Source)
at org.icepdf.core.pobjects.Resources.getImage(Unknown Source)

I have post the problem and my attached code at https://luceeserver.atlassian.net/browse/LDEV-2256