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

Improper word concatenation when extracting pdf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • None
    • None
    • parser
    • 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

        1. sample-resume.pdf
          27 kB
          Java Developer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chengas123 Java Developer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: