I'm working on an application that creates a docx resume from a template.

What I am attempting to do at this point is to clone a sample job listing from 
a resume template, then remove the example.

Then loop over database records modifying the sample and insert it back into 
the original resume.

The problem I'm having is there seems to be no way to create a copy of a 
paragraph. clone() is not visible

I've tried creating another XWPFDocument creating a paragraph and using set 
paragraph to put the source paragraph in the temp Document

I've tried creating a new paragraph using the CTR of source paragraph.

But so far every method I've attempted when I remove the paragraph from the 
source document it removes from the temp document as well.

Is the only way to get a true copy of a paragraph to createParagraph() and 
manually set the styles, spacing etc to match the source and then createRun() 
for each run in the source and manually set the text styles etc to match the 
source?




-Andrew

Reply via email to