base.pdf is the itext Document that i have already started to dynamically generate. add.pdf is an example of the text i want to add. And result.pdf is what i want the file to look like. Both the base.pdf and add.pdf lengths will very so it wont be the same for each document i process.
I have noticed that there is code in the docx4j-extras/PdfViaIText package that might be able to help me. But I'm not exactly sure how to run this code, and there are no examples that use it. If i simply drop the docx4j-extras/PdfViaIText/org/docx4j/convert/out/pdf/viaIText/Conversion.java into the source of docx4j i get a compile error in the traverseBlockLevelContent method on line 191.
- Code: Select all
The method getEGContentBlockContent() is undefined for the type ContentAccessor
And when i look through the SdtContentBlock file, i see the getEGContentBlockContent method, but it looks like the code is trying to search for the getEGContentBlockContent() method inside of ContentAccessor. Are the return types correct for the getSdtContent() method in the SdtBlock file?
I think this Conversion.java file might help me along the way if i can get it running.
Thanks!