To whom it may concern:
 
   I got a task in my project that client requests total number of lines in a pdf file, all text, which narrows down to get total number of lines in the last page. 
   I have read through the tutorial, it looks like I might have a shot in the combination of PdfStamper (AddWatermarkPageNumbers) and paragraph object. 
   My tweaked solution is like this.
 
int fixedTotalLineNumber = 32 ;
int i = 0 ; 
int OriginalSize = PDFfile.pageNumber;
while ( PDFfile.pageNumber == OriginalSize) {
     appendLine(PDFfile)  // the line is an empty paragraph;
     i++ ;
}
int lineNumbersInThePage = 32 - i ; 
 
  Does it look like a feasible solution? Or, is it possible to append to an existing pdf content?
  I know you can tell me straight from top of your head while I am searching for a solution here.

Thanks in advance!
 
Sincerely
Feng
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to