[ 
https://issues.apache.org/jira/browse/PDFBOX-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16303864#comment-16303864
 ] 

Tilman Hausherr commented on PDFBOX-4047:
-----------------------------------------

I tried a few settings, and these may come close to what you want:
{code}
        stripper.setIndentThreshold(10);
        stripper.setDropThreshold(3f);
        stripper.setLineSeparator(" ");
        stripper.setParagraphEnd("\n");
        stripper.setLineSeparator(" ");
{code}

{quote}
1 通常の見出し(1行に収まる)  通常の見出しの本文 1  
通常の見出しの本文 2  
  
2 長い見出し長い見出し長い見出し長い見出し長い見出し長い見出し長い見 出し長い見出し(2行以上にまたがる)  
長い見出しの本文 1  
長い見出しの本文 2 
{quote}
However each setting may have an effect on other possible paragraphs so it's 
possible you'll never have everything perfectly.



> the PDFBox.jar can't differentiate the paragraph
> ------------------------------------------------
>
>                 Key: PDFBOX-4047
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4047
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.13
>            Reporter: 梁雨石
>         Attachments: 1.jpg, 123.pdf, 2.jpg, 3.jpg
>
>
> when I use PDFTextStripper.getText("XXX") function,I can get the PDF's 
> contents,and the style is just like the style in PDF.
> but sometimes I don't need this style.For example ,
> The outline's contents is long.In PDF ,it may use 2 lines to display,the 2 
> lines contents is in one sentence.But when I use PDFBox.jar to get this 
> sentence .It is separated like the PDF style.But I don't want the two 
> separate string,I want a complete sentence.
> Please see the Addition of documents,and you will know what I mean



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to