@Test public void testTurningOffBookmarks() throws Exception { PDFParserConfig config = new PDFParserConfig(); config.setExtractBookmarksText(false); ParseContext parseContext = new ParseContext(); parseContext.set(PDFParserConfig.class, config); String xml = getXML("testPDF_bookmarks.pdf", parseContext).xml; assertNotContained("Denmark bookmark is here", xml); }
@Field void setExtractBookmarksText(boolean extractBookmarksText) { defaultConfig.setExtractBookmarksText(extractBookmarksText); }
PDFParser extends AbstractParser implements Initializable { @Field void setExtractBookmarksText(boolean extractBookmarksText) { defaultConfig.setExtractBookmarksText(extractBookmarksText); } }
PDFParser extends AbstractParser implements Initializable { @Field void setExtractBookmarksText(boolean extractBookmarksText) { defaultConfig.setExtractBookmarksText(extractBookmarksText); }  }
PDFParser extends AbstractParser implements Initializable { @Field void setExtractBookmarksText(boolean extractBookmarksText) { defaultConfig.setExtractBookmarksText(extractBookmarksText); }  Set<MediaType> getSupportedTypes(ParseContext context); void parse(
            InputStream stream, ContentHandler handler,
            Metadata metadata, ParseContext context); PDFParserConfig getPDFParserConfig(); void setPDFParserConfig(PDFParserConfig config); boolean getEnableAutoSpace(); @Field void setEnableAutoSpace(boolean v); boolean getExtractAnnotationText(); void setExtractAnnotationText(boolean v); boolean getSuppressDuplicateOverlappingText(); @Field void setSuppressDuplicateOverlappingText(boolean v); boolean getSortByPosition(); @Field void setSortByPosition(boolean v); @Field void setOcrStrategy(String ocrStrategyString); @Field void setOcrImageType(String imageType); void setInitializableProblemHandler(InitializableProblemHandler initializableProblemHandler); @Field void setDropThreshold(float dropThreshold); @Field void setMaxMainMemoryBytes(long maxMainMemoryBytes); @Override void initialize(Map<String, Param> params); @Override void checkInitialization(InitializableProblemHandler handler); }
PDFParser extends AbstractParser implements Initializable { @Field void setExtractBookmarksText(boolean extractBookmarksText) { defaultConfig.setExtractBookmarksText(extractBookmarksText); }  Set<MediaType> getSupportedTypes(ParseContext context); void parse(
            InputStream stream, ContentHandler handler,
            Metadata metadata, ParseContext context); PDFParserConfig getPDFParserConfig(); void setPDFParserConfig(PDFParserConfig config); boolean getEnableAutoSpace(); @Field void setEnableAutoSpace(boolean v); boolean getExtractAnnotationText(); void setExtractAnnotationText(boolean v); boolean getSuppressDuplicateOverlappingText(); @Field void setSuppressDuplicateOverlappingText(boolean v); boolean getSortByPosition(); @Field void setSortByPosition(boolean v); @Field void setOcrStrategy(String ocrStrategyString); @Field void setOcrImageType(String imageType); void setInitializableProblemHandler(InitializableProblemHandler initializableProblemHandler); @Field void setDropThreshold(float dropThreshold); @Field void setMaxMainMemoryBytes(long maxMainMemoryBytes); @Override void initialize(Map<String, Param> params); @Override void checkInitialization(InitializableProblemHandler handler); static final String PASSWORD; }