Ah, but wait!  RegionTextRenderFilter.  You can give it a bounding box
and it'll strain out everything that doesn't intersect that box.  So you
give it a bbox that excludes the header and footer, and it won't mess
with the ordering like LocationTextExtractionStrategy does:

new FilteredRenderListener(new SimpleTextExtractionStrategy(), new
RegionTextRenderFilter(boundingBox));

Best of both worlds?  Definitely worth a shot.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: DivyaKambhatla [mailto:[email protected]] 
> Sent: Thursday, February 17, 2011 12:19 PM
> To: [email protected]
> Subject: Re: [iText-questions] Split a PDF Page into header 
> ,footer and body.
> 
> 
> Hi Mark,
> 
>            I had in fact tried using the 
> LocationTextExtractionStrategy first, but this gives a 
> problem with two columned PDFs. This merges the content from 
> two columned PDFs resulting in loss of order in  the data or 
> jumbled text. The SimpleTextExtractionStrategy , on the other 
> hand works for even two columned PDFs but the only problem 
> with it being that the header/footer content gets mixed with 
> the  body content.
> 
> Thanks,
> Divya.
> 
> 
> 
> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/Split-a-PDF-Page-in
to-header-footer-and-body-tp3308836p3311554.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> --------------------------------------------------------------
> ----------------
> The ultimate all-in-one performance toolkit: Intel(R) 
> Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Many questions posted to this list can (and will) be answered 
> with a reference to the iText book: 
> http://www.itextpdf.com/book/ Please check the keywords list 
> before you ask for examples: http://itextpdf.com/themes/keywords.php
> 
> 

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to