https://bz.apache.org/bugzilla/show_bug.cgi?id=58804
Bug ID: 58804
Summary: Broken images depending on Layout options
Product: POI
Version: 3.13-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HWPF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33405
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33405&action=edit
Input file with 12 test pictures
If a document contains a number of images with "Layout" options different from
"Inline with text", they are missing from the output document.
Attached is a document with 12 sample images with different layouts :
- First row has 3 images "Inline with text". They are kept after save
- Second and third row have images with different text alignments Square,
Tight, Through, Top/Bottom, Behind and In front of text. These are lost after
save.
- Fourth row has the same images as first row. They are kept after save.
The Java code to reproduce the error only needs to open the file and save it,
without modifications :
HWPFDocument doc = new HWPFDocument(new FileInputStream(inFile));
FileOutputStream fos = new FileOutputStream(outFile);
doc.write(fos);
fos.close();
--
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]