https://bz.apache.org/bugzilla/show_bug.cgi?id=58237

nishant <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|3.12-FINAL                  |3.13-FINAL

--- Comment #7 from nishant <[email protected]> ---
Have tried testing with 3.13 but it still doesn't work.

Below is the code I am using

             FileInputStream stream=new FileInputStream(new
File("D:/PNL.docx"));
             XWPFDocument document=new XWPFDocument(stream);
             XWPFHeaderFooterPolicy policy = document.getHeaderFooterPolicy();
             XWPFHeader defaultHeader = policy.getDefaultHeader();

             defaultHeader.addPictureData(new FileInputStream(new
File("D:/logo/xyz.jpg")), Document.PICTURE_TYPE_JPEG);

but it doesnt update the image in the document file. The document remains as
such with no modification.

This is returning size of 1:

             List<XWPFPictureData> pictures = defaultHeader.getAllPictures();
             System.out.println(pictures.size());

Please help validate the code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to