@Test
    public void testTwoTextBoxes() throws Exception {
        String content;
        try (InputStream stream = getResourceAsStream(
                "/test-documents/testPDFTwoTextBoxes.pdf")) {
            content = getText(stream, AUTO_DETECT_PARSER);
        }
        content = content.replaceAll("\\s+", " ");
        assertContains(
                "Left column line 1 Left column line 2 Right column line 1 Right column line 2",
                content);
    }
PDFs can be "protected" with the default password. This means
they're encrypted (potentially both text and metadata),
but we can decrypt them easily.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java