You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by CDB <cb...@burkeitconsulting.com> on 2012/06/08 19:05:06 UTC
COSString Selection
I am having issues using the getText method (ExtractText) functions as it
cats all text together.
I would like to go a step deeper and pull each COSString value and delimit
them.
Below is the code I am using thus far to get all text.
I am not
try {
PDFTextStripper pdfTextStripper = new PDFTextStripper();
doc = PDDocument.load( stream );
return (pdfTextStripper.getText(doc));
} finally {
quietlyClose(doc);
}
I noticed that the the logs show the operators and types. But some strings
are broken up into multiple COSString fields within arrays.
I would like to know what methods can I use to traverse/look all fields and
select the COStrings out.
Thanks
Re: COSString Selection
Posted by CDB <cb...@burkeitconsulting.com>.
Is this mailing list active?
On 6/8/12 1:05 PM, "CDB" <cb...@burkeitconsulting.com> wrote:
>I am having issues using the getText method (ExtractText) functions as it
>cats all text together.
>I would like to go a step deeper and pull each COSString value and delimit
>them.
>Below is the code I am using thus far to get all text.
>
>I am not
> try {
>
>
>
> PDFTextStripper pdfTextStripper = new PDFTextStripper();
>
> doc = PDDocument.load( stream );
>
>
>
> return (pdfTextStripper.getText(doc));
>
>
>
>
>
> } finally {
>
> quietlyClose(doc);
>
> }
>
>
>I noticed that the the logs show the operators and types. But some
>strings
>are broken up into multiple COSString fields within arrays.
>
>I would like to know what methods can I use to traverse/look all fields
>and
>select the COStrings out.
>
>Thanks
>
>