ICEpdf
  1. ICEpdf
  2. PDF-1189

Large number of spaces being inserted on seemingly simple PDF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.5
    • Fix Version/s: 6.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question plots out text one character at a time which seems to be giving our auto space algorithm some grief.

      Disabling auto space insertion with org.icepdf.core.views.page.text.autoSpace=false make the text selection feel a little more natural but the output has no spaces....

      The test cases is fairly simple from an encoding point of view and should be relatively easy to debug and hopefully improve our auto space calculation.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.3 [ 13093 ]
        Hide
        Patrick Corless added a comment -

        When the '6' before the "TECC_.. "is parsed and sorted it getting a bunch of trialing spaces for some reason. When the "_ISC" is selected we are actually selecting the spaces on top of the text. When the whole line is selected then we select all text.

        [6, , TECC_ISC_-, , hTECC, , ISC, , , Re]

        Show
        Patrick Corless added a comment - When the '6' before the "TECC_.. "is parsed and sorted it getting a bunch of trialing spaces for some reason. When the "_ISC" is selected we are actually selecting the spaces on top of the text. When the whole line is selected then we select all text. [6, , TECC_ISC_-, , hTECC, , ISC, , , Re]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51958 Thu Sep 28 10:38:35 MDT 2017 patrick.corless PDF-1189 potential fix for extra spaces being added when text order
        isn't left to right.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/LineText.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/WordText.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51959 Thu Sep 28 10:38:59 MDT 2017 patrick.corless PDF-1189 potential fix for extra spaces being added when text order
        isn't left to right.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/text/LineText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/text/WordText.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51962 Thu Sep 28 13:50:07 MDT 2017 patrick.corless creation of patch build for PDF-1189
        Files Changed
        Commit graph ADD /icepdf/tags/icepdf-6.2.5_1189
        Judy Guglielmin made changes -
        Support Case References Support Case 14183:- https://icesoft.my.salesforce.com/5000g00001ljXSF?srPos=0&srKp=500
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51965 Thu Sep 28 14:04:51 MDT 2017 patrick.corless PDF-1189 reverted 1.8 generics declaration
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/LineText.java
        Hide
        Patrick Corless added a comment -

        Marking as fixed, code seems to be working well.

        Show
        Patrick Corless added a comment - Marking as fixed, code seems to be working well.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: