caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Armaël Guéneau" <armael.gueneau@ens-lyon.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ANN: CamlPDF 1.7
Date: Fri, 16 Aug 2013 12:53:16 +0200	[thread overview]
Message-ID: <520E049C.5020502@ens-lyon.fr> (raw)
In-Reply-To: <520CB9C8.7010108@coherentgraphics.co.uk>

[-- Attachment #1: Type: text/plain, Size: 970 bytes --]

Hi,

Le 15/08/2013 13:21, John Whitington a écrit :
> The first new release of the CamlPDF library for a while is here:
>
> http://www.github.com/johnwhitington/camlpdf
>
> (Or, shortly, via OPAM.)
Thanks!

I have been playing with CamlPDF a bit, trying to do text extraction.
I'm a total novice about the PDF format, so i might be doing it wrong,
but I was wondering if there were facilities, in CamlPDF, to handle
diacritics and ligatures.

For example, when reading the PDF operators for "Université", I get

Pdfops_TJ (Pdf.Array [Pdf.String "Universit"; Pdf.String "\019"; Pdf.Real 486.; 
Pdf.String "e"])

For "efficient", with "ffi" being ligated, I get

   Pdfops_TJ (Pdf.Array [Pdf.String "e\014cient"])

How can I convert these back, especially the ligature? I tried to use the
conversion functions of Pdftext, like codepoints_of_text followed by
utf8_of_codepoints, but that didn't seem to work. It's highly possible
that I'm also doing it wrong here.

Armaël

[-- Attachment #2: Type: text/html, Size: 1923 bytes --]

  parent reply	other threads:[~2013-08-16 10:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 11:21 John Whitington
2013-08-15 14:21 ` oliver
2013-08-15 14:28   ` John Whitington
2013-08-15 16:17     ` Gerd Stolpmann
2013-08-15 18:39       ` oliver
2013-08-18 12:04         ` Adrien Nader
2013-08-18 14:04           ` Florent Monnier
2013-08-18 18:23             ` oliver
2013-08-15 18:40 ` oliver
2013-08-15 18:42   ` oliver
2013-08-16 10:53 ` Armaël Guéneau [this message]
2013-08-16 11:06   ` John Whitington
2013-08-16 11:45     ` Armaël Guéneau
2013-08-16 14:26       ` John Whitington
2013-08-21 12:01 ` oliver

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=520E049C.5020502@ens-lyon.fr \
    --to=armael.gueneau@ens-lyon.fr \
    --cc=caml-list@inria.fr \
    /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).