### Question:
ContentExtractor { public List<String> getPageContent(int pageNum) { Content ofdContentObj = reader.getPage(pageNum).getContent(); if (ofdContentObj == null) { return Collections.emptyList(); } List<String> txtContentList = new LinkedList<>(); List<CT_Layer> layers = ofdContentObj.getLayers(); for (CT_Layer layer : layers) { List<PageBlockType> pageBlocks = layer.getPageBlocks(); for (PageBlockType block : pageBlocks) { if (block instanceof TextObject) { TextObject text = (TextObject) block; List<TextCode> textCodes = text.getTextCodes(); for (TextCode code : textCodes) { txtContentList.add(code.getContent()); } } } } return txtContentList; } private  ContentExtractor();  ContentExtractor(OFDReader reader); List<String> getPageContent(int pageNum); List<String> extractAll(); void traverse(Receiver e);  }### Answer:
@Test void getPageContent() throws IOException { try (OFDReader reader = new OFDReader(src)) { ContentExtractor extractor = new ContentExtractor(reader); List<String> pageContent = extractor.getPageContent(1); System.out.println(pageContent); assertEquals(pageContent.size(), 1); assertEquals("你好呀，OFD Reader&Writer！", pageContent.get(0)); } }