/** * If true, sort text tokens by their x/y position * before extracting text. This may be necessary for * some PDFs (if the text tokens are not rendered "in * order"), while for other PDFs it can produce the * wrong result (for example if there are 2 columns, * the text will be interleaved). Default is false. * * @deprecated use {@link #setPDFParserConfig(PDFParserConfig)} */ @Field public void setSortByPosition(boolean v) { defaultConfig.setSortByPosition(v); }
getBooleanProp(props.getProperty("extractAnnotationText"), getExtractAnnotationText())); setSortByPosition( getBooleanProp(props.getProperty("sortByPosition"), getSortByPosition()));
/** * If true, sort text tokens by their x/y position * before extracting text. This may be necessary for * some PDFs (if the text tokens are not rendered "in * order"), while for other PDFs it can produce the * wrong result (for example if there are 2 columns, * the text will be interleaved). Default is false. * * @deprecated use {@link #setPDFParserConfig(PDFParserConfig)} */ @Field public void setSortByPosition(boolean v) { defaultConfig.setSortByPosition(v); }
/** * If true, sort text tokens by their x/y position * before extracting text. This may be necessary for * some PDFs (if the text tokens are not rendered "in * order"), while for other PDFs it can produce the * wrong result (for example if there are 2 columns, * the text will be interleaved). Default is false. * * @deprecated use {@link #setPDFParserConfig(PDFParserConfig)} */ @Field public void setSortByPosition(boolean v) { defaultConfig.setSortByPosition(v); }
pdfParserConfig.setSortByPosition((Boolean) sortByPosition);
getBooleanProp(props.getProperty("extractAnnotationText"), getExtractAnnotationText())); setSortByPosition( getBooleanProp(props.getProperty("sortByPosition"), getSortByPosition()));
getBooleanProp(props.getProperty("extractAnnotationText"), getExtractAnnotationText())); setSortByPosition( getBooleanProp(props.getProperty("sortByPosition"), getSortByPosition()));