Is there a limit in pages using itextpdf-5.5.8 (open source) in java? I set the page below
Document document = new Document();
Rectangle xpagesize = new Rectangle(850,1100);
document.setPageSize(xpagesize);
I have a large amount of data to display in PDF. But it shows that the pages are limited in 35 pages only. If I exceeded to 35 above, the pages crashed and no data displayed.
Thanks in advance!
Related
I have 1 table with 2 column . dynamically data binded to the table . I have 1000 of records I am displaying 40 rows in each page sets Page Break interval = 40 . it takes 25 pages to displaying all records
ex:
display data
I want to display records same page once page filled then it should go to the next page
enter image description here
Any solution please?
I am trying to get the total number of pages for my Object, so that i would be able to call the last page. This was the code i used
Page<Message> firstPage = defaultMessageService.getMessage(user, user2, new PageRequest(0, 6));
paginationModel.setMessagesPage(defaultMessageService.getMessage(user, user2, new PageRequest(firstPage.getTotalPages() - 1, 6)))
.setResponseMessage("Successful")
.setSuccessful(true);
in my code i called the first page, just to get the total number of pages and subtracted the the total pages by one, to get the last page. This is resource taking as i get the list of content with the page, contents i dont intend to use. Is there a better way ? i just want the total page, size, current page
if you want only last page then sort your data in descending order and then get the first page. is it possible to sort your data then your problem will be solved.
I have a scenario where i need all document form the collection and do some calculation and show the analyze graph to the user.
At that point when I use the find function it shows me the error ( document fragment is too large: 24331229, max: 16777216 ).
in one collection document like 100000 and above.
My current scenario
I have 3 collection with 3 type of analyze representation.
visit_data (User visit the page and fill some forms having questions.)
graph_data (The graph represent the how many question answered and whats the response of the user )
tabular_data (Its shows the question and answer of the selected questions visited by the user.)
Like google analytic graph representation of the analysis of the websites by
--> date
--> Location
--> language
--> etc.
similarly I have some filters (date,user,location) for the above type of analyze result.
So on the above collection every day 50,000 documents are interested.
If we do 7 day filter or 30 day filter at that moment the total document was >1,00,000 and the size is >16mb.
When I use find() function it will give me that exception.
I am using php-mongo to get the values.
Is there any other solution to do this stuff?
Please Help me.
I am trying to fetch links that were posted on a public Facebook page sometime ago, in 2011 for example. Specifically, the Arabic CNN page on facebook: http://www.facebook.com/CNNArabic
Things I tried:
1- Graph API, a query like this:
CNNArabic/links?fields=id,name,link,created_time&limit=25&until=2012-05-15
2- FQL
SELECT link_id, url, created_time FROM link WHERE owner = 102581028206 and created_time < 1337085958 LIMIT 100
Both give an empty data set while there is data on the page on or before this date.
Other things I noticed:
1-If I changed the date to something like 2013-01-17 (which is yesterday), it works fine.
2-If I changed the date to something like 2012-12-17 (about a month ago), an empty data set is returned, however if I followed the next page links in the returned data set from the query in number 1 above until I pass by this date I actually get data.
I tried writing code that kept following the next page pointers until I reach the links on the date I want. However I need data much older (say in 2011) and the result set gets exhausted say 2 or 3 months earlier than now, in other words no more next links are returned so I actually can never reach that old data.
To cut this short:
is there a way I can query links that were posted on a public page before a specified date?
Querying the page's feed works in the Graph API:
/102581028206/feed?fields=id,link,name,created_time&limit=25&until=2012-05-15
This returns all the posts. There should be a way to filter this using field expansion, but I couldn't get the few things I tried to work.
You can get this filtered for links only with FQL on the stream table:
SELECT message, attachment, created_time FROM stream WHERE source_id = 102581028206
AND created_time < strtotime('2012-05-15') AND type=80 LIMIT 10
Links are type=80.
I am generating a PDF report using iText. The report consists of four parts:
Project Info1 (A PDF Table of variable height)
Project Info2 (A PDF Table of variable height)
Requestor Info (A PDF Table of Fixed height)
Location Info (A PDF Table of Fixed height)
The top two information are of variable height and they can acquire certain pages. The other two are of fixed size which comes last.
I want to move the last (one or both) boxes to the next page if there is no space available to fit those boxes in current page.
If space for one box is available then place one to the current page and move other box to the next table. Is there way to do this?
try the setSplitLate method of PdfPTable