I've used https://www.filedropper.com in the past. Please do also answer what version you are using.

Tilman

Am 29.08.2018 um 10:55 schrieb Azadeh Fakhrzadeh:
Thank you Tilman.  Can you kindly provide a link where i can upload the
document.
I added  icu4j-62-1.jar  icu4j-62-1-docs.jar   and icu4j-62-1-src. jar in
the classpath, and here is my code:
package org.pdfBox.pdfBox1;

import java.io.File;
import java.io.IOException;

import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.text.PDFTextStripper;
public class ReadingText {

    public static void main(String args[]) throws IOException {

       //Loading an existing document
       File file = new File("/test/t2.pdf");
       PDDocument document = PDDocument.load(file);
       //Instantiate PDFTextStripper class
       PDFTextStripper pdfStripper = new PDFTextStripper();

       //Retrieving text from PDF document
       String text = pdfStripper.getText(document);

       System.out.println(text);

       //Closing the document
       document.close();

    }
}



On Wed, Aug 29, 2018 at 11:33 AM Tilman Hausherr <[email protected]>
wrote:

Am 29.08.2018 um 08:13 schrieb Azadeh Fakhrzadeh:
Hi,
I try to extract test from Persian document using pdfbox, it returns "?"
for all Persian characters,  it works well with Latin characters. How
Can I
fix it? any advice?  /thanks

Hello,

What PDFBox version are you using? What code are you using, or are you
using the command line utilities? Can you share the document (upload it
to a sharehoster, don't attach in post)?

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to