Subhrajyoti Moitra wrote:
> Hi,
> 
> Using iText i have trying to read the number of pages and then adding 2 
> pages, one in the front and one at the last.
> When i do a reader.getNUmberOfPages(), it returns 1. While on the adobe 
> reader, i see 9 pages.
> 
> I have called removeUsageRights() on the reader and then adding some 
> content to it.
> Some help will be very much appreciated. Thanks a lot in advance.

It's a dynamic PDF document. It only has one PDF page:
<</Count 1/Kids[84 0 R]/Type/Pages>>
You see more pages in Adobe Reader, but that's the dynamic XFA at work: 
those pages are generated dynamically on the client side.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to