ICEpdf
  1. ICEpdf
  2. PDF-695

PageText.optionalPageLines losing the order

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.1, 5.0.4
    • Fix Version/s: 5.0.5
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Windows 64bits

      Description

      Scenario:
      Given I create a PDF using microsoft word 2007
      When I try to retrieve the text using ICEpdf
      Then all the text is saved in the optional lines attribute, which does not conserve the order.
       
      optionalLines attribute is a HashMap, which does not conserve the order. I suggest to change it to a LinkedHashMap so this works properly.

      I am assuming that the optional lines should be ordered as by using this kind of map I can retrieve the text as it is in the PDF.

      Regards,
      Enrique

        Activity

        Hide
        Enrique González added a comment - - edited

        Find the pdf I am talking about attached. Here you can find the text I generate with the current map (it changes every execution):

        (C) Deletion of different genes can drive

        b
        la
        bl

        Figure 3 How are you

        (B) Though there are potentially several evolutionary paths to compensate for

        gene tend to evolve similar phenotypes, often by acquiring secondary

        Fig

        1

        Rambo el majo

        Figure
        2
        dunno

        driven by the specific knockout.

        additional mutations.

        the loss of any one gene, independently constructed knockouts of the same

        (A) Most yeast knockout strains are quasispecies harboring prevalent

        mutations in the same gene (parallel evolution), indicating a selection process

        And here with the LinkedHashMap:

        (A) Most yeast knockout strains are quasispecies harboring prevalent

        additional mutations.

        (B) Though there are potentially several evolutionary paths to compensate for

        the loss of any one gene, independently constructed knockouts of the same

        gene tend to evolve similar phenotypes, often by acquiring secondary

        mutations in the same gene (parallel evolution), indicating a selection process

        driven by the specific knockout.

        (C) Deletion of different genes can drive

        Fig

        1

        Rambo el majo

        b
        la
        bl

        Figure
        2
        dunno

        Figure 3 How are you

        Show
        Enrique González added a comment - - edited Find the pdf I am talking about attached. Here you can find the text I generate with the current map (it changes every execution): (C) Deletion of different genes can drive b la bl Figure 3 How are you (B) Though there are potentially several evolutionary paths to compensate for gene tend to evolve similar phenotypes, often by acquiring secondary Fig 1 Rambo el majo Figure 2 dunno driven by the specific knockout. additional mutations. the loss of any one gene, independently constructed knockouts of the same (A) Most yeast knockout strains are quasispecies harboring prevalent mutations in the same gene (parallel evolution), indicating a selection process And here with the LinkedHashMap: (A) Most yeast knockout strains are quasispecies harboring prevalent additional mutations. (B) Though there are potentially several evolutionary paths to compensate for the loss of any one gene, independently constructed knockouts of the same gene tend to evolve similar phenotypes, often by acquiring secondary mutations in the same gene (parallel evolution), indicating a selection process driven by the specific knockout. (C) Deletion of different genes can drive Fig 1 Rambo el majo b la bl Figure 2 dunno Figure 3 How are you
        Hide
        Patrick Corless added a comment -

        Agreed, will try and get a fix in for this in the next maintenance release.

        Show
        Patrick Corless added a comment - Agreed, will try and get a fix in for this in the next maintenance release.
        Hide
        Patrick Corless added a comment -

        Verified the fix and check in a patch for both the trunk and 5.0.1 branch.

        Show
        Patrick Corless added a comment - Verified the fix and check in a patch for both the trunk and 5.0.1 branch.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: