Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1753

Improper word concatenation when extracting pdf

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Later
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: parser
    • Labels:
      None

      Description

      The code below will output text for a pdf. Words that are on different lines are concatenated together

      BodyContentHandler handler = new BodyContentHandler();
      byte[] bytes = IOUtils.toByteArray(new FileInputStream(new File("resume.pdf")));
      new PDFParser().parse(new ByteArrayInputStream(bytes), handler, new Metadata(), new ParseContext());
      System.out.println(handler.toString());

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chengas123 Ben McCann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: