Hi Chin Khun,
That's cool to hear that you're working on reversing this problem which is just 
on our plan.
It should integrate with ocr solution.


d.j.


------------------ Original ------------------
From:  "Peter Murray-Rust";<[email protected]>;
Date:  Wed, Sep 25, 2013 03:16 PM
To:  "users"<[email protected]>; "chinkhun"<[email protected]>; 

Subject:  Re: How to convert a text to curve?



I ran into this with early versions of PDFBox (see
http://mail-archives.apache.org/mod_mbox/pdfbox-users/201204.mbox/%3ccad2k14ojb02+u+klrtykl6xzou_++f-hvnw6myvh5lroj1l...@mail.gmail.com%3E).
I was trying to create characters from PDFBox to pass into Batik and
(I
thinkPDFBox 1.6) output vectors (curves) instead. Later versions output
characters. Of course you will have to translate the SVG into PDF.

So I think there are tools which can be chained to solve your problem but
you will probably have to spend some time glueing them together.

I  am working on the reverse problem - trying to discover the characters
from their curves (some documents only store the glyphs). That's much
harder but it's possible. So really determined people may be able to
reconstruct characters from curves (e.g. by writing to a canvas and OCR)
but it's a lot of work.



On Wed, Sep 25, 2013 at 7:50 AM, <[email protected]> wrote:

> There are steps converting text to curve in adobe acrobat pro. You can
> google it. Or you can look at
> www.ehow.com/how_5692578_convert-fonts-curves-acrobat.html
>
> Maybe PDF Box team can reverse engineer it?
>
> Chin Khun
>
> Sent from my BlackBerry  via Smartfren EVDO Network
>
> -----Original Message-----
> From: Maruan Sahyoun <[email protected]>
> Date: Wed, 25 Sep 2013 08:39:45
> To: <[email protected]>
> Reply-To: [email protected]
> Subject: Re: How to convert a text to curve?
>
> Hi,
>
> unfortunately I don't know of a processing lib handling that task. All the
> solutions I know of are dealing with that topic when the PDF is originally
> created. There are some manual ways e.g. using Acrobat or Illustrator.
>
> BR
>
> Maruan
>
> Am 24.09.2013 um 18:21 schrieb daijun <[email protected]>:
>
> > Thank you Maruan Sahyoun. You help me a lot.
> > Do you any other PDF tools can convet text to a curve?
> > d.j.
> >
> >
> >
> >
> > ------------------ Original ------------------
> > From:  "Maruan Sahyoun";<[email protected]>;
> > Date:  Tue, Sep 24, 2013 11:46 PM
> > To:  "users"<[email protected]>;
> >
> > Subject:  Re: How to convert a text to curve?
> >
> >
> >
> > Hi,
> >
> > converting text to a curve is a major effort. There is no specific
> function for that in PDFBox. But you could e.g. set a permission in PDF to
> disallow text extraction
> http://pdfbox.apache.org/apidocs/org/apache/pdfbox/pdmodel/encryption/AccessPermission.html
> >
> > BR
> >
> > Maruan Sahyoun
> >
> > Am 24.09.2013 um 17:10 schrieb daijun <[email protected]>:
> >
> >> Dears,
> >>
> >>
> >> I want to convert a text in a pdf to a curve. i.e. convert a text such
> as "hello" to a pen curve "hello"(change to token c) so that the text can
> not be copied.
> >>
> >>
> >> Thank you in advance!
> >>
> >>
> >> d.j.
>
>
>


-- 
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069

Reply via email to