Class PdfParser


  • public class PdfParser
    extends Object
    • Method Detail

      • parse

        public static String parse​(InputStream inputStream)
        Parameters:
        inputStream - the pdf inputStream that gets parsed, *and* that gets closed when finished
        Returns:
        the first 100*1000 chars from the pdf as String. Also see Tika.setMaxStringLength(int)
        Throws:
        IllegalStateException - in case of a TikaException or IOException