Page 1 of 1
<wps:wsp> tag
Posted:
Thu May 17, 2018 11:33 pm
by gosavi_pankaj
Hi jason,
Ms word has shape element drawn using w:drawing tag. After searching on internet I found that wordprocessingshape are not part of open office xml specification and not implemented in docx4j library as well. So do you have any plan of development of these components ?
Also if it does it available under license please mention.
Regards,
Pankaj G
Re: <wps:wsp> tag
Posted:
Mon May 21, 2018 9:38 pm
by jason
The schema can be found at
https://github.com/plutext/docx4j/blob/ ... dshape.xsdHowever, I haven't used XJC to generate classes from it (and most of the others in that dir) yet because there's been little demand.
That said, it shouldn't be difficult to do so.
Re: <wps:wsp> tag
Posted:
Tue May 22, 2018 7:55 pm
by gosavi_pankaj
Hi Jason,
Thanks for your reply. I open the xsd file. But I am not able to jaxb classes with this xsd. I am getting error as below:
src-resolve: Cannot resolve the name 'w12:txbxContent' to a(n) 'element declaration' component.
Please suggest.
Regards,
Pankaj G
Re: <wps:wsp> tag
Posted:
Wed May 23, 2018 8:12 am
by jason
Do you have a sample docx created in Word which uses this markup which you can upload?
I hope to have a chance to look at generating the code via XJC in maybe 3 days time.
Re: <wps:wsp> tag
Posted:
Sun May 27, 2018 2:28 pm
by jason
Please see now
https://github.com/plutext/docx4j/tree/ ... ssingShapeTo understand what was involved in adding this, please see commits at
https://github.com/plutext/docx4j/commits/master for today (May 27) and yesterday.
cheers .. Jason
Re: <wps:wsp> tag
Posted:
Thu May 31, 2018 9:03 pm
by gosavi_pankaj
Hi Jason,
Yes. Thanks for your immediate wps implementation. I can see the wordprocessingshape class in repository. Gr8 Job!!
But when i am trying to create textbox using method
CTTextboxInfo ctTextboxInfo = x2020WordProcessingObjectFactory.createCTTextboxInfo();
ctWordprocessingShape.setTxbx(ctTextboxInfo );
It doesn't create <wps:txbx> inside document.xml under graphicData node. Do you know whether i am missing something?
Regards,
Pankaj G
Re: <wps:wsp> tag
Posted:
Thu May 31, 2018 9:06 pm
by gosavi_pankaj
Hi Jason,
I am just uploading a docx file containing shape for your reference .
Regards,
Pankaj G
Re: <wps:wsp> tag
Posted:
Thu May 31, 2018 9:13 pm
by gosavi_pankaj
Hi Jason,
Please ignore above two posts.
Regards,
Pankaj G