Hi,
I am trying to add the image to header but I am not able to see it in the output doc file.
The size of the result file increases but the image is invisible.
Can you guide me on that?
Also please tell me that do I need to add any type of field in my template.
Currently my template is not having the header inserted from Word.
Do I need to add that or the code is enough to make things working?
I am copying few LOC here.
----------------------------------------------------------------------------
DocumentBuilder builder = new DocumentBuilder(doc);
// Set the header
Section currentSection = builder.getCurrentSection();
PageSetup pageSetup = currentSection.getPageSetup();
pageSetup.setHeaderDistance(20);
builder.moveToHeaderFooter(HeaderFooterType.HEADER_FIRST);
Shape shape = builder.insertImage(imageUrl);
shape.setWidth(150);
shape.setHeight(300);
builder.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);
-------------------------------------------------------------------------------------------------------------------------------------------
Let me know what I am doing wrong.
I hope its not because I am using Evaluation version.
Thanks
Bhoomica