Hebrew PDF text Hebrew text from PDFs, in the right order

Text taken out of a Hebrew PDF often comes out reversed, with numbers and English names in the wrong place, because many PDFs store right-to-left text in the order it is drawn. 100sands returns each line in the order a person reads it, with no setting to turn on.

POST /v1/text
curl https://api.100sands.com/v1/text \
  -H "Authorization: Bearer $SANDS_API_KEY" \
  -F [email protected]

{
  "pages": 2,
  "text": "דוח תפעול רבעוני\nחברת Harbor Lane Logistics שינעה 4,180 מכולות ברבעון השלישי\n..."
}

What you get

  • Reading order

    Each Hebrew line comes back the way people read it, not the way the PDF happens to store it.

  • Numbers and IDs intact

    Company numbers, dates and amounts such as 51-482913-6 or 4,180 keep their order inside right-to-left lines.

  • Mixed Hebrew and English

    An English name in the middle of a Hebrew line keeps its own direction and its place in the sentence.

  • No settings

    There is no language or direction to choose. Hebrew, Arabic, Persian and Urdu are all read in reading order.

  • Hebrew fields as JSON

    Set up a document type from Hebrew samples and get its fields as JSON, copied exactly from the file.

  • Into Excel

    Upload a batch of Hebrew files in the app and download one Excel or CSV file.

Limits

  • PDF and HTML files that contain text, up to 50 MB
  • Scanned Hebrew documents are not read: a scanned PDF is refused with a clear error
  • One document per file, whatever its page count

Price

Free: 100 documents a month. Starter: $20 a month for 20,000. Pro: $79 a month for 100,000.

Compare the plans

Questions

Why does text copied from a Hebrew PDF come out backwards?

Many PDFs store right-to-left text in the order it is drawn on the page, left to right, not the order it is read. A tool that returns the characters as stored gives each line reversed. 100sands puts each line back in reading order.

Do I need to set the language or the direction?

No. Right-to-left lines are put in reading order automatically, and lines in other languages on the same page are left as they are.

Can it read scanned Hebrew documents?

No. 100sands reads PDF and HTML files that contain text. A scanned PDF holds pictures of text, and is refused with a clear error.

Do numbers and English words stay in place?

Mostly. Numbers, dates and IDs keep their digits in order, and an English name in the middle of a Hebrew line stays where it is. One case to check: an amount followed by an English word, such as 1,234.56 USD, can come back as USD 1,234.56.

Blog

Try it on your own documents

100 documents a month free. No credit card.

Start free