Hi
I have an issue while adding Header/footer in the word document(simultaneously converting to pdf also) , where the text content is supposed to be in the right and left side of the page. I use the coding procedure in the header-primary/first section as this:
---------------------------------------------------------------------------------------------------------------
builder.getFont().setSize(9);
builder.getFont().setName("Arial");
builder.getFont().setColor(java.awt.Color.decode("#38ACEC"));
builder.write("XYZ-LEFT");
// Align this text to the left.
builder.getCurrentParagraph().getParagraphFormat().setAlignment(com.aspose.words.ParagraphAlignment.LEFT);
builder.insertBreak(com.aspose.words.BreakType.LINE_BREAK);
builder.getFont().setSize(9);
builder.getFont().setName("Arial");
builder.getFont().setColor(java.awt.Color.BLACK);
builder.write("ABC-LEFT");
// Align this text to the left.
builder.getCurrentParagraph().getParagraphFormat().setAlignment(com.aspose.words.ParagraphAlignment.LEFT);
builder.getFont().setSize(9);
builder.getFont().setName("Arial");
builder.getFont().setColor(java.awt.Color.decode("#38ACEC"));
builder.write("XYZ-RIGHT");
// Align this text to the right.
builder.getCurrentParagraph().getParagraphFormat().setAlignment(com.aspose.words.ParagraphAlignment.RIGHT);
builder.insertBreak(com.aspose.words.BreakType.LINE_BREAK);
builder.getFont().setSize(9);
builder.getFont().setName("Arial");
builder.getFont().setColor(java.awt.Color.BLACK);
builder.write("ABC-RIGHT");
// Align this text to the right.
builder.getCurrentParagraph().getParagraphFormat().setAlignment(com.aspose.words.ParagraphAlignment.RIGHT);
---------------------------------------------------------------------------------------------------------------------------------------------------------------
When i do this...the header texts are not on the respective edges of the page...rather aligned left and sticking together...as one single word.
Pls help me out finding a solution. I need them at the edges of the pages...aligned RIGHT n LEFT respectively...(Not stuck together in the left.)