You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Dmitry Gutso (JIRA)" <ji...@apache.org> on 2009/08/31 01:03:32 UTC

[jira] Commented: (PDFBOX-508) Lost spacing as a result of operator "Tc" ignoring.

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

Dmitry Gutso commented on PDFBOX-508:
-------------------------------------

Maybe will right insert in "PDFStreamEngine.java" before:

            totalCharCnt += c.length();
            
            stringResult.append( c );


the something similar on:

 if(c != null && spaceWidthText < spacingText)             {             c = c + " ";            }

Otherwise the columns of table are lost which are created by spacingText (Tc) 


> Lost spacing as a result of operator "Tc" ignoring.
> ---------------------------------------------------
>
>                 Key: PDFBOX-508
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-508
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 0.7.3
>         Environment: JDK 1.6.0_16
>            Reporter: Dmitry Gutso
>         Attachments: 2a.pdf, 2a_repl2.pdf
>
>
> Continue https://issues.apache.org/jira/browse/PDFBOX-234
> Lost spacing as a result of operator "Tc" ignoring.
> Ex:
> ****************************************
> BT
>  6 0 0 6 244.0800018311 795.8400268555 Tm
>  6.5475001335 Tc
>  (41) Tj
> ****************************************
> Here PDFTextStripper.writeText() returns "41" (without spacing )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.