You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by rahul bhalla <ur...@gmail.com> on 2013/05/07 08:55:34 UTC

want to know use of methods

Hello
I am in  a dilma that what is the purpose of below mention method
PDFTextStripper stripper = new PDFTextStripper(encoding);
stripper.*setForceParsing*( force );
stripper.*setShouldSeparateByBeads*( separateBeads );
and when i put force or separateBeads is true and when false
Thnks
--
Regards
Rahul Bhalla

Re: want to know use of methods

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,

setForceParsing is meant to try to handle PDFs which have issues e.g. malformed Xref entries.
setShouldSeperateByBeads extracts text article thread by article thread (a bead is a subsection of an article). If you PDF has article information (which you can see in Adobe Reader or Acrobat) this keeps text belonging to the same article together.

BR 
Maruan Sahyoun

Am 07.05.2013 um 08:55 schrieb rahul bhalla <ur...@gmail.com>:

> Hello
> I am in  a dilma that what is the purpose of below mention method
> PDFTextStripper stripper = new PDFTextStripper(encoding);
> stripper.*setForceParsing*( force );
> stripper.*setShouldSeparateByBeads*( separateBeads );
> and when i put force or separateBeads is true and when false
> Thnks
> --
> Regards
> Rahul Bhalla