Sign In  Sign Up Live-Chat

Aspose PDF in JAVA: Fontsize footer text and number of the page in the footer.

Last post 05-27-2008, 9:47 AM by Sandy.Zhang. 1 replies.
Sort Posts: Previous Next
  •  05-26-2008, 2:31 AM 128601

    Aspose PDF in JAVA: Fontsize footer text and number of the page in the footer.

    Hello,
    i am trying to set the fontsize of a footer text and the fontsize of the number of the page.
    I am using aspose PDF for Java.

    My Code:
    ...
    HeaderFooter footer = new HeaderFooter(sec1);
           
    Text footText = new Text(sec1, "Page: ");     
           
    footText.getTextInfo().setFontSize(7);
    footer.getTextInfo().setFontSize(7);
          
    footer.getParagraphs().add(footText);
    footer.setIsPageNumber(true);
    ...

    thanks for help
    vland
     
  •  05-27-2008, 9:47 AM 128786 in reply to 128601

    Re: Aspose PDF in JAVA: Fontsize footer text and number of the page in the footer.

    Attachment: Present (inaccessible)
    Hi,
        We have resolved this problem, you can try the hotfix in the attachment.
    Your code can also be written like this:
       ...
    HeaderFooter footer = new HeaderFooter(sec1);
    footer.getTextInfo().setFontSize(7);
         
    Text footText = new Text(footer, "Page: ");
          
    footer.getParagraphs().add(footText);
    footer.setIsPageNumber(true);
    ...

    Thank you for your beneficial advice.

    Sandy.Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML