Hi Tim,

please use the getWMFData() method:

HemfPicture emf = new HemfPicture((InputStream)...);
for (HemfRecord r : emf.getRecords()) {
    if (r instanceof EmfComment) {
        EmfCommentData hc = ((EmfComment)r).getCommentData();
        if (hc instanceof EmfCommentDataWMF) {
            EmfCommentDataWMF hcWmf = (EmfCommentDataWMF)hc;
            HwmfPicture wmf = new HwmfPicture(new 
ByteArrayInputStream(hcWmf.getWMFData()));
            List<HwmfRecord> bla = wmf.getRecords();
        }
    }
}


Best wishes,
Andi

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to