ICEpdf
  1. ICEpdf
  2. PDF-1066

Copy/Paste issue (existing space removed after paste)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.2
    • Fix Version/s: 6.3.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Windows 7
    • Workaround Description:
      Hide
      -Dorg.icepdf.core.views.page.text.spaceFraction=4 (default is 3). This allows the space detection algorithm to see a slightly smaller gap as a space. Normally it's 1/3 the max characters width, the the above system property its now 1/4 the max characters width.
      Show
      -Dorg.icepdf.core.views.page.text.spaceFraction=4 (default is 3). This allows the space detection algorithm to see a slightly smaller gap as a space. Normally it's 1/3 the max characters width, the the above system property its now 1/4 the max characters width.

      Description

      The paste of a selection does not contain the space which was copied from selection in a displayed PDF.
      It can be reproduced with the enclosed file:A4-RR2016-VolII-E_cover_orig.pdf
      page#:106
      selected text:Appendix 30A earth

      The paste text will be "Appendix 30Aearth"
      This copy/paste works on the other main viewer.

        Activity

        Hide
        Olivier Chuzel added a comment -

        The inverse problem occurs too.
        For example:
        page 658 of the enclosed document:
        Text: "Articles 13 and 14" is copied/paste and the paste text becomes "Articles 13 and 14"
        i.e double space between "and" and "14".

        Show
        Olivier Chuzel added a comment - The inverse problem occurs too. For example: page 658 of the enclosed document: Text: "Articles 13 and 14" is copied/paste and the paste text becomes "Articles 13 and 14" i.e double space between "and" and "14".
        Hide
        Olivier Chuzel added a comment -

        It is not just a matter of copy/paste since the search in the ICE Pdf Viewer finds the text only if we add this extra space.
        E.g
        'Articles 13 and 14', 2 space between and and 14, is found page 658 although it does not really contain this extra space

        Show
        Olivier Chuzel added a comment - It is not just a matter of copy/paste since the search in the ICE Pdf Viewer finds the text only if we add this extra space. E.g 'Articles 13 and 14', 2 space between and and 14, is found page 658 although it does not really contain this extra space
        Hide
        Patrick Corless added a comment -

        System property workaround the is the preferred solution.

        Show
        Patrick Corless added a comment - System property workaround the is the preferred solution.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: