Sign In  Sign Up Live-Chat

Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

Last post 12-17-2008, 4:36 PM by codewarior. 22 replies.
Page 1 of 2 (23 items)   1 2 Next >
Sort Posts: Previous Next
  •  05-16-2008, 4:01 AM 127400

    Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello,
    i am trying to show a footer with "Page 1 of 12" on a section.

    My Problems are:

    1. "$p $P" i think is not supported in java version of aspose pdf.
        How to show the lastPageNumber? (Please some example Code)

    2. The section content is bigger than one page in the PDF, i got 2 pages in the generated PDF document.
        The footer is only be shown on the first page.
        How to show it on all Pages of the Section? (Please some example Code)

    My Code:
    ...
                HeaderFooter footer = new HeaderFooter(sec1);
               
                Text footText = new Text(sec1, "Text: (Page $p of $P)");       
                footer.getParagraphs().add(footText);
               
                Text after = new Text(sec1, " afterText");
               
                footer.getParagraphsAfter().add(after);
                footer.setIsPageNumber(true);      
                footer.setIsSubsequentPagesOnly(true);
               
                sec1.setOddFooter(footer);
                sec1.setEvenFooter(footer);
    ...

    thanks for help
    vland
     
  •  05-16-2008, 11:18 AM 127473 in reply to 127400

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hi,

    The $p and $P and currently not supported in Java version and we are working on supporting it.

    If you remove the footer.setIsSubsequentPagesOnly(true); statement then you will get the footer on every page.

    Thanks.

     
  •  05-25-2008, 5:38 AM 128549 in reply to 127473

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    But how to show the last Page Number in the Footer (in the Java Version)?

    thanks
    vland
     
  •  05-25-2008, 6:56 AM 128553 in reply to 128549

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Dear Vland,

    As I have mentioned before, this feature is not supported yet. We will try to support it in the future version.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  05-26-2008, 4:13 AM 128613 in reply to 128553

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Thanks for fast replay.
    I need this feature really fast because it is a requirement of my application.

    Is there any workaround or antything else to get / set the last page number?
    Could you support the "$P" in the Java Version?

    thanks
    vland
     
  •  06-11-2008, 3:25 AM 130890 in reply to 128613

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Is there any date where this feature is included in aspose pdf for Java?

    thanks
    vland
     
  •  06-11-2008, 8:27 PM 131015 in reply to 130890

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hi, vland,
        We plan to resolve this problem in this month. We'll give you an answer as soon as we find a solution. Thank you for your patience.

    Sandy.Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-08-2008, 8:00 AM 134728 in reply to 131015

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello,
    anything new about this issue?

    sincerely
    vland
     
  •  07-08-2008, 10:14 AM 134763 in reply to 134728

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello vland,
     
      We can support $p at present. We are testing the function of supporting $P. This function is complicated and we need more time to test. Thank you for your patience.

    Sandy.Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-05-2008, 8:59 AM 138392 in reply to 134763

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello,
    anything new about this issue?
    My customer is waiting.

    sincerely
    vland
     
  •  08-06-2008, 9:27 PM 138647 in reply to 138392

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Attachment: Present (inaccessible)
    Hello vland,

    We have resolved this problem partly, you can try the hot fix in the attachment. $p, setIsSubsequentPagesOnly() and setIsFirstPageOnly() are now supported in the HeaderFooter class of this hotfix.

    You can write your code as follows:

    HeaderFooter footer = new HeaderFooter(sec1);          
    Text footText = new Text(sec1, "Text: (Page $p of $P) the text you want");       
    footer.getParagraphs().add(footText);         
    footer.setIsSubsequentPagesOnly(true);
               
    sec1.setOddFooter(footer);
    sec1.setEvenFooter(footer);

    But $P is still not supported in this hotfix. We are working hard on this issue, but this problem is very hard because you can get the total page number of the document only after the document has been finished. We will support $P in the future version of our product, but we cann't estimate when we will provide that feature.

    We are sorry to bring you so much trouble. We are very appreciate your patience. Thank you for using our product.



    Sandy.Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-29-2008, 3:36 AM 141735 in reply to 138647

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello Sandy Zhang,

    anything new about this issue, is the $P tag now supported?

    thanks a lot for help

    vland

     
  •  09-02-2008, 5:39 AM 142000 in reply to 141735

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello vland,

    We are working on this issue for a long time and have made some progress. We hope to provide you a hotfix in the following one or two months.

    Thank you for your patience.

    Sandy.Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-28-2008, 3:59 AM 149750 in reply to 142000

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello Sandy Zhang,

    anything new about this issue?

    thanks a lot for help

    vland

     
  •  10-28-2008, 4:02 PM 149857 in reply to 149750

    Re: Aspose PDF in JAVA: Footer won't work pageNumber lastPageNumber on a section with two pages

    Hello vland,

    We are working over this issue, and I have contacted the development team to share the information regarding the status of implementation. We apologize for the inconvenience that you are facing in this regard.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
Page 1 of 2 (23 items)   1 2 Next >
View as RSS news feed in XML