9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: dvd@davidashen.net
To: 9fans@cse.psu.edu
Subject: RE: [9fans] text search in PDF?
Date: Fri, 14 May 2004 19:22:06 +0500	[thread overview]
Message-ID: <c1ca538f2192524b716f2dab5c45ed06@davidashen.net> (raw)
In-Reply-To: <D691F041928C1049808A0670D2252BE006334441@nj9620exch001u.mh.lucent.com>

> it's not strictly PS, though they share the imaging model and "The PDF
> operators for setting the graphics state and painting graphics
> objects are similar to the corresponding operators in the
> PostScript language".  Close enough to PS for text searching.
> The main annoyance is that PDF files usually compress their
> content after a short bit of PS-like prolog.

Both Postscript and PDF use text strings to represent strings.
Rare cases when rasterized images of text pages are wrapped
into Postscript or PDF formats are mostly due to a need to
somehow publish scanned documents; or due to faulty conversion
toolchain.

Compression is not a problem. To render a PDF, one has to uncompress
its contents anyway. And decompression is trivial.

The problem is high quality formatting -- most documents which are
kerned  are kerned explicitely -- words are broken into parts, and displacements
are set for word parts, which makes searching for whole words impossible.

David Tolpin



  reply	other threads:[~2004-05-14 14:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-14 13:04 Trickey, Howard W (Howard)
2004-05-14 14:22 ` dvd [this message]
2004-05-14 15:47   ` splite
2004-05-14 16:45   ` a
  -- strict thread matches above, loose matches on Subject: below --
2004-05-14  6:03 cej
2004-05-14 10:05 ` a
2004-05-14 12:48   ` boyd, rounin
2004-05-14 17:17     ` Lyndon Nerenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1ca538f2192524b716f2dab5c45ed06@davidashen.net \
    --to=dvd@davidashen.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).