DOCX4J ERROR - No subclass found for /word/media/hdphoto1.wdp; defaulting to binary

59 views Asked by At

I am using the DOCX4J library for writing MS Word documents and started receiving this error message.

ERROR org.docx4j.openpackaging.contenttype.ContentTypeManager - No subclass found for /word/media/hdphoto1.wdp; defaulting to binary

Does anyone known what causes it or how to surpress it?

1

There are 1 answers

3
JasonPlutext On BEST ANSWER

The message means there is no specific Part which represents content of that type, so it is represented using BinaryPart.

The content in question looks like https://en.wikipedia.org/wiki/JPEG_XR

It won't cause any problem opening or working with the docx in docx4j, but adding a new image of this type won't be as convenient as is the case for jpeg, png etc.

Tracking enhancement at https://github.com/plutext/docx4j/issues/560