Skip to content

Commit 447c919

Browse files
committed
Fix an exception message for layout Image
1 parent 3fdf5e1 commit 447c919

File tree

1 file changed

+1
-1
lines changed
  • layout/src/main/java/com/itextpdf/layout/element

1 file changed

+1
-1
lines changed

layout/src/main/java/com/itextpdf/layout/element/Image.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ protected IRenderer makeNewRenderer() {
413413

414414
private static com.itextpdf.io.image.Image checkImageType(com.itextpdf.io.image.Image image) {
415415
if (image instanceof WmfImage) {
416-
throw new PdfException(PdfException.CannotCreatePdfStreamByInputStreamWithoutPdfDocument);
416+
throw new PdfException(PdfException.CannotCreateLayoutImageByWmfImage);
417417
}
418418
return image;
419419
}

0 commit comments

Comments
 (0)