Last active
August 29, 2015 14:15
-
-
Save nil2013/ec6804f95eff61609698 to your computer and use it in GitHub Desktop.
iTextpdfで日本語テキストを抽出する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JapaneseTextExtractionStrategy extends LocationTextExtractionStrategy { | |
import LocationTextExtractionStrategy._ | |
override def isChunkAtWordBoundary(chunk: TextChunk, previousChunk: TextChunk): Boolean = | |
return chunk.distanceFromEndOf(previousChunk) > 10 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment