Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Issue with setting header

$
0
0
Hi,

I am using Aspose 4.5 for PDF generation.I have used the following code to set the header in each page.

Document doc =  new Document ();
...................................................
Table asposeTable =new Table ();
..................................................
..................................................
asposeTable .setRepeatingRowsCount(1);
............................................................
I am adding page body and then last I am adding header by following code.

 final PageCollection pages = doc.getPages();
  final int pageSize = pages.size();
        
        for(int index=1;index<=pageSize;index++){
            final Page page = pages.get_Item(index);
            page.setHeader(docCtx.getDocumentMetaData().getHeader());
       }

I have many rows in the table and the pages will get increased by 50 only after saving the doc object.

Issue: The table header generated automatically by Aspose/contents is overwritten by page header from second page .
Is there any way to set page body contents from the area after page header (including table header) from the second page.

Please help.I need to address this quickly.We are migrating from itext to aspose.


Viewing all articles
Browse latest Browse all 3131

Latest Images

Trending Articles



Latest Images