[ 
https://issues.apache.org/jira/browse/PDFBOX-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604303#comment-13604303
 ] 

Andreas Lehmkühler commented on PDFBOX-188:
-------------------------------------------

PDFBox is able to extract text in many configurations including non latin 
character sets like russian, japanese, chinese etc. There are some occasions 
where it still doesn't work because either PDFBox still doesn't support a 
special kind of mapping or the pdf doesn't provide any readable mapping. There 
is no need to do a mapping following some own made rules.
                
> doesn't convert properly russian characters
> -------------------------------------------
>
>                 Key: PDFBOX-188
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-188
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1537323
> Originally submitted by amashtakov on 2006-08-09 04:44.
> Hi,
> I've tried to extract text from attached PDF using
> both stable release PDFBox-0.7.2 and recent nightly 
> build PDFBox-0.7.3-dev-20060809 and the following code 
> snipped: 
> // 1. parse document
> PDFParser parser = new PDFParser(is);
> parser.parse();
> cos = parser.getDocument();
> // 2. extract text
> PDFTextStripper stripper = new PDFTextStripper();
> String text = stripper.getText(new PDDocument(cos));
> // 3. dump output
> FileOutputStream os = new FileOutputStream("file.txt");
> OutputStreamWriter ow = new 
>       OutputStreamWriter(os, "UTF-8");
> ow.write(text);
> ow.flush();
> Despite of russian contents of original PDF, the 
> output file doesn't contain any "valid"  russian 
> character(s). 
> I've also tried to convert the same PDF with the 
> foolabs-xpdf tool - the output contains valid
> UTF-8 russian text.
> PS: I couldn't attach file because of sourcecforge 
>     size limit. (the size is ~545K). Is it possible
>     to pass it to dev. team ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to