ASF Bugzilla – Attachment 30758 Details for
Bug 55476
[PATCH] Fixed: after XWPFRun.addPicture() Word considers the document as corrupted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
the 2-lines patch to XWPFRun which solves the problem of adding images to docx document using XWPFDocument
XWPFRun.java_fix_adding_pictures.patch (text/plain), 704 bytes, created by
Dmitry Romanov
on 2013-08-23 20:23:58 UTC
(
hide
)
Description:
the 2-lines patch to XWPFRun which solves the problem of adding images to docx document using XWPFDocument
Filename:
MIME Type:
Creator:
Dmitry Romanov
Created:
2013-08-23 20:23:58 UTC
Size:
704 bytes
patch
obsolete
>Index: src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java >=================================================================== >--- src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java (revision 1515958) >+++ src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java (working copy) >@@ -750,6 +750,9 @@ > prstGeom.setPrst(STShapeType.RECT); > prstGeom.addNewAvLst(); > >+ XmlObject[] pics = graphicData.selectChildren(new QName(CTPicture.type.getName().getNamespaceURI(), "pic")); >+ pics[0].set(pic); >+ > // Finish up > XWPFPicture xwpfPicture = new XWPFPicture(pic, this); > pictures.add(xwpfPicture);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 55476
: 30758