Thread View: comp.os.linux.misc
19 messages
19 total messages
Started by horacio
Wed, 22 Sep 2004 16:39
Extract equations from a PDF file
Author: horacio
Date: Wed, 22 Sep 2004 16:39
Date: Wed, 22 Sep 2004 16:39
11 lines
1736 bytes
1736 bytes
Hello everybody, could somebody tell me if it is possible to extract equations from a paper in a PDF file ? My objective is to paste them to a TEX file, and to render after to a DVI file to achieve the same result than in the original PDF file (I understand papers are usually written in TEX files and rendered after to DVI or PDF files). I know I can do this with plain text, but I do not know how to handle this situation with equations (although it is possible to copy them as images and then paste). Thanks in advance.
Re: Extract equations from a PDF file
Author: Larry T.
Date: Wed, 22 Sep 2004 20:21
Date: Wed, 22 Sep 2004 20:21
8 lines
1362 bytes
1362 bytes
Hi, Due to the nature of PDF's it would be difficult to do what you want. Best bet would be to use an OCR program to retrive the equations. You are right, it is possible to copy them as images because basically, they are. The OCR package may help, but with equations it is even more of a problem. Larry T.
Re: Extract equations from a PDF file
Author: Ryan Wheeler
Date: Wed, 22 Sep 2004 23:19
Date: Wed, 22 Sep 2004 23:19
16 lines
1869 bytes
1869 bytes
<horacio@NOSPAMum.es> wrote: > Hello everybody, > > could somebody tell me if it is possible to extract equations from a > paper in a PDF file ? My objective is to paste them to a TEX file, > and to render after to a DVI file to achieve the same result than in > the original PDF file (I understand papers are usually written in TEX > files and rendered after to DVI or PDF files). I know I can do this > with plain text, but I do not know how to handle this situation with > equations (although it is possible to copy them as images and then > paste). > > Thanks in advance. there is a program called pdf editor. would that do?
Re: Extract equations from a PDF file
Author: Fajar Suryawan
Date: Thu, 23 Sep 2004 02:29
Date: Thu, 23 Sep 2004 02:29
12 lines
1441 bytes
1441 bytes
<horacio@NOSPAMum.es> wrote in message news:<cis9ma$svj$1@unida.um.es>... > Hello everybody, > > could somebody tell me if it is possible to extract equations from a paper > in a PDF file ? Simple answer, you don't. PDF is printer language. There's no information on the mathematics' original LaTeX-code. Reverse engineering is nice, but not easy. F
Re: Extract equations from a PDF file
Author: Alan Connor
Date: Thu, 23 Sep 2004 03:05
Date: Thu, 23 Sep 2004 03:05
25 lines
1949 bytes
1949 bytes
On 22 Sep 2004 19:29:05 -0700, Fajar Suryawan
<fajar96te@yahoo.com> wrote:
><horacio@NOSPAMum.es> wrote in message
>news:<cis9ma$svj$1@unida.um.es>...
>
>> Hello everybody,
>>
>> could somebody tell me if it is possible to extract equations
>> from a paper in a PDF file ?
>
> Simple answer, you don't. PDF is printer language. There's no
> information on the mathematics' original LaTeX-code. Reverse
> engineering is nice, but not easy.
>
> F
pstotext produces text files from ps or pdf that are far from
perfect, but it may help the OP.
pdf2ps would turn the file into ps, which is at least ascii,
and easier to do stuff with.
AC
Re: Extract equations from a PDF file
Author: Alexander Skwar
Date: Thu, 23 Sep 2004 04:42
Date: Thu, 23 Sep 2004 04:42
13 lines
1768 bytes
1768 bytes
Larry T. wrote: > Hi, > > Due to the nature of PDF's it would be difficult to do what you want. Why is the Acrobat reader v6 on Windows able to copy texts (and equations)? Alexander Skwar -- There are weapons you cannot hold in your hand. You can only hold them in your mind. -- Bene Gesserit Teaching ������������������������������������������������������������������������
Re: Extract equations from a PDF file
Author: Lloyd Sumpter
Date: Thu, 23 Sep 2004 05:10
Date: Thu, 23 Sep 2004 05:10
19 lines
1902 bytes
1902 bytes
On Wed, 22 Sep 2004 18:39:29 +0200, horacio wrote: > Hello everybody, > > could somebody tell me if it is possible to extract equations from a paper > in a PDF file ? My objective is to paste them to a TEX file, and to render > after to a DVI file to achieve the same result than in the original PDF file > (I understand papers are usually written in TEX files and rendered after to > DVI or PDF files). I know I can do this with plain text, but I do not know > how to handle this situation with equations (although it is possible to copy > them as images and then paste). > > Thanks in advance. Again, I'm not sure if this is what you want, but pstoedit converts ps or pdf files to one of many editable formats, including "latex2e", and "Mathematica Graphics". Check it out! Lloyd Sumpter
Re: Extract equations from a PDF file
Author: ynotssor
Date: Thu, 23 Sep 2004 05:16
Date: Thu, 23 Sep 2004 05:16
12 lines
1474 bytes
1474 bytes
"Alexander Skwar" <from@alexander.skwar.name> wrote in message news:4152543D.1070509@von.digitalprojects.com >> Due to the nature of PDF's it would be difficult to do what you want. > > Why is the Acrobat reader v6 on Windows able to copy texts (and > equations)? What does that have to do with converting said equations to TEX syntax? -- use hotmail for email replies
Re: Extract equations from a PDF file
Author: Alan Connor
Date: Thu, 23 Sep 2004 05:55
Date: Thu, 23 Sep 2004 05:55
55 lines
2983 bytes
2983 bytes
On Wed, 22 Sep 2004 22:10:46 -0700, Lloyd Sumpter <lsumpter@dccnet.com> wrote: > On Wed, 22 Sep 2004 18:39:29 +0200, horacio wrote: > >> Hello everybody, >> >> could somebody tell me if it is possible to extract equations >> from a paper in a PDF file ? My objective is to paste them to >> a TEX file, and to render after to a DVI file to achieve the >> same result than in the original PDF file (I understand papers >> are usually written in TEX files and rendered after to DVI or >> PDF files). I know I can do this with plain text, but I do not >> know how to handle this situation with equations (although it >> is possible to copy them as images and then paste). >> >> Thanks in advance. > > Again, I'm not sure if this is what you want, but pstoedit > converts ps or pdf files to one of many editable formats, > including "latex2e", and "Mathematica Graphics". Check it out! > > Lloyd Sumpter > Debian stable package description: Package: pstoedit Priority: optional Section: graphics Installed-Size: 763 Maintainer: J.H.M. Dassen (Ray) <jdassen@debian.org> Architecture: i386 Version: 3.21-2 Depends: libc6 (>= 2.2.3-1), libstdc++2.10-glibc2.2, gs Suggests: xfig | ivtools-bin | tgif | transfig Filename: pool/main/p/pstoedit/pstoedit_3.21-2_i386.deb Size: 231664 MD5sum: 0a9a45aafa16bc7c3b477f97d56ea68d Description: PostScript and PDF files to editable vector graphics converter. pstoedit converts Postscript and PDF files to various editable vector graphic formats including tgif, xfig, PDF graphics, gnuplot format, idraw, MetaPost, GNU Metafile, PIC, Killustrator and flattened PostScript. Task: tex -------------- How does one edit files like those? AC
Re: Extract equations from a PDF file
Author: horacio
Date: Thu, 23 Sep 2004 13:30
Date: Thu, 23 Sep 2004 13:30
43 lines
2555 bytes
2555 bytes
I've tried "pstoedit" and at the beginning it seems to be very good, but I don't know how to make it work. I've tried to do: pstoedit -f latex2e input.pdf output.tex (where input.pdf is a paper with figures and equations) but it gives me a lot of errors that I don't know how to solve. Thanks anyway "Lloyd Sumpter" <lsumpter@dccnet.com> escribi� en el mensaje news:pan.2004.09.23.05.10.42.877797@dccnet.com... > On Wed, 22 Sep 2004 18:39:29 +0200, horacio wrote: > > > Hello everybody, > > > > could somebody tell me if it is possible to extract equations from a paper > > in a PDF file ? My objective is to paste them to a TEX file, and to render > > after to a DVI file to achieve the same result than in the original PDF file > > (I understand papers are usually written in TEX files and rendered after to > > DVI or PDF files). I know I can do this with plain text, but I do not know > > how to handle this situation with equations (although it is possible to copy > > them as images and then paste). > > > > Thanks in advance. > > Again, I'm not sure if this is what you want, but pstoedit converts ps or > pdf files to one of many editable formats, including "latex2e", and > "Mathematica Graphics". Check it out! > > Lloyd Sumpter >
Re: Extract equations from a PDF file
Author: Larry T.
Date: Thu, 23 Sep 2004 14:37
Date: Thu, 23 Sep 2004 14:37
14 lines
2079 bytes
2079 bytes
Hi Aleexander, Acrobat reader can search and find information within a PDF but the information is not plain text, but rather a highly processed and vectorized peice of information that is defined within the pdf spec. You can get a good tutorial and explanation at the Adobe web site. If you tried to search a pdf with any other editor (or even loaded it in) you would see that it is a problem. There is a difference between an ASCII "a" and a pdf represenation of the "a" is quite different. PDF's were not meant to be edited, but through common use, growth and universal acceptance users have demanded additonal capability and of course software vendors have complied. It is amazing the variety and technology now available for PDF applications. If you are interested check out www.pdfzone.com which is a good clearing house for pdf software. Thanks, Larry T.
Re: Extract equations from a PDF file
Author: Julian V. Noble
Date: Thu, 23 Sep 2004 20:11
Date: Thu, 23 Sep 2004 20:11
33 lines
2558 bytes
2558 bytes
Fajar Suryawan wrote:
>
> <horacio@NOSPAMum.es> wrote in message news:<cis9ma$svj$1@unida.um.es>...
> > Hello everybody,
> >
> > could somebody tell me if it is possible to extract equations from a paper
> > in a PDF file ?
>
> Simple answer, you don't.
> PDF is printer language. There's no information on the mathematics'
> original LaTeX-code.
> Reverse engineering is nice, but not easy.
>
> F
This is basically correct. It is straightforward to turn pig into
sausage, but no one has found a simple way to reverse this. So
you can't retrieve LaTeX source for equations from an image without
solving some fairly deep problems in CS.
Why not simply retype them using MathType, which is WYSIWYG and can
output LaTeX in various forms?
--
Julian V. Noble
Professor Emeritus of Physics
jvn@lessspamformother.virginia.edu
^^^^^^^^^^^^^^^^^^
http://galileo.phys.virginia.edu/~jvn/
"For there was never yet philosopher that could endure the toothache
patiently." -- Wm. Shakespeare, Much Ado about Nothing. Act v. Sc. 1.
Re: Extract equations from a PDF file
Author: Jose Maria Lopez Hernandez
Date: Sun, 26 Sep 2004 22:39
Date: Sun, 26 Sep 2004 22:39
48 lines
2962 bytes
2962 bytes
Alan Connor wrote:
> On 22 Sep 2004 19:29:05 -0700, Fajar Suryawan
> <fajar96te@yahoo.com> wrote:
>
>
>><horacio@NOSPAMum.es> wrote in message
>>news:<cis9ma$svj$1@unida.um.es>...
>>
>>
>>>Hello everybody,
>>>
>>>could somebody tell me if it is possible to extract equations
>>>from a paper in a PDF file ?
>>
>>Simple answer, you don't. PDF is printer language. There's no
>>information on the mathematics' original LaTeX-code. Reverse
>>engineering is nice, but not easy.
>>
>>F
>
>
> pstotext produces text files from ps or pdf that are far from
> perfect, but it may help the OP.
Would break the equations.
>
> pdf2ps would turn the file into ps, which is at least ascii,
> and easier to do stuff with.
Ps it's not more useful to be edited than pdf.
The real thing is that you can't edit a pdf file.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPA�A
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Re: Extract equations from a PDF file
Author: Alan Connor
Date: Mon, 27 Sep 2004 00:34
Date: Mon, 27 Sep 2004 00:34
50 lines
2686 bytes
2686 bytes
On Thu, 23 Sep 2004 03:05:10 GMT, Alan Connor <zzzzzz@xxx.yyy> wrote: > > > On 22 Sep 2004 19:29:05 -0700, Fajar Suryawan ><fajar96te@yahoo.com> wrote: > >><horacio@NOSPAMum.es> wrote in message >>news:<cis9ma$svj$1@unida.um.es>... >> >>> Hello everybody, >>> >>> could somebody tell me if it is possible to extract equations >>> from a paper in a PDF file ? >> >> Simple answer, you don't. PDF is printer language. There's no >> information on the mathematics' original LaTeX-code. Reverse >> engineering is nice, but not easy. >> >> F > > pstotext produces text files from ps or pdf that are far from > perfect, but it may help the OP. > > pdf2ps would turn the file into ps, which is at least ascii, > and easier to do stuff with. > > > AC > > Sorry, "Jose Maria". You have a grossly out-of-line sig, and I don't read the posts of people who abuse the Usenet this way. The Netiquette standard is a delimeter "-- " on a line by itself, followed by a maximum of 4 lines, blank or otherwise. It is supposed to be a _sig_, not a bulletin board. It is not supposed to be *intrusive*. Thank you anyway, AC -- Pass-list --> Block-list --> Challenge-Response The key to taking control of your mailboxes http://tinyurl.com/3c3agp http://tinyurl.com/2t5kp http://tinyurl.com/yrfjb
Re: Extract equations from a PDF file
Author: Jose Maria Lopez Hernandez
Date: Mon, 27 Sep 2004 00:44
Date: Mon, 27 Sep 2004 00:44
34 lines
2814 bytes
2814 bytes
Alan Connor wrote:
> Sorry, "Jose Maria". You have a grossly out-of-line sig, and I
> don't read the posts of people who abuse the Usenet this way.
>
> The Netiquette standard is a delimeter "-- " on a line by itself,
> followed by a maximum of 4 lines, blank or otherwise.
>
> It is supposed to be a _sig_, not a bulletin board. It is not
> supposed to be *intrusive*.
>
> Thank you anyway,
What about cutting the messages?
That's also nettiquete, and it takes much more time to
pass over it than my sig, that anyway nobody reads.
I'm signing this way since 5 years ago and I'm not
gonna change it.
You can ignore my posts. I dont't mind at all.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPA�A
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Re: Extract equations from a PDF file
Author: Victor Eijkhout
Date: Mon, 27 Sep 2004 00:45
Date: Mon, 27 Sep 2004 00:45
11 lines
1357 bytes
1357 bytes
Alan Connor <zzzzzz@xxx.yyy> wrote: > Sorry, "Jose Maria". Your argument would have been more impressive if you had actually followed up to one of Jose Maria's posts. V. -- email: lastname at cs utk edu homepage: www cs utk edu tilde lastname
Re: Extract equations from a PDF file
Author: Larry T.
Date: Mon, 27 Sep 2004 14:02
Date: Mon, 27 Sep 2004 14:02
9 lines
1642 bytes
1642 bytes
HI, (off topic) I really didn't see the problem with Jose's sig. line, a bit long perhaps, but then I did some of the Rt. 66 with the wife this summer traveling out through Texas, Okalahoma and New Mexico while listing to a CD of "On the Road". Fun trip, lots of interesting little stops and things to explore. Back on topic, sounds like you understand the PDF side. Larry T.
Re: Extract equations from a PDF file
Author: MetaMorph
Date: Tue, 28 Sep 2004 01:48
Date: Tue, 28 Sep 2004 01:48
5 lines
1669 bytes
1669 bytes
> Sorry, "Jose Maria". You have a grossly out-of-line sig, and I > don't read the posts of people who abuse the Usenet this way. COR Get a bloody life
Re: Extract equations from a PDF file
Author: MetaMorph
Date: Wed, 01 Dec 2004 07:33
Date: Wed, 01 Dec 2004 07:33
40 lines
3149 bytes
3149 bytes
The case raises significant issues of freedom of speech and assembly,
privacy and government accountability.
In response to an FOIA asking why this happened, the Secret Service
responded: "We are sure no one knows why we had the meeting disrupted".
They have made a mockery of FOIA.
This mockery of FOIA is still being litigated by EPIC.
An intentional illegal government surveillance program...it just never stops.
Marc Rotenberg has gotten the Secret Service to admit in court that this was
done to "investigate hacking into a company's telephone switch."
Since when did the "investigative" techniques used by the Secret Service
become valid for use in the United States? Going up to a bunch of mall
patrons and DEMANDING IDENTIFICATION from them and searching them?
How exactly was this supposed to further investigate a switch hacking?
For extended details of this governmental persecution of the politically
incorrect, see http://www.2600.com.
******************************************************************************
Secret Service: Vile Persecution of Ed Cummings
------ ------- ---- ----------- -- -- --------
Source material from http://www.2600.com, by someone calling themselves
"Emmanuel Goldstein", which in the book '1984' was known as the Hated Enemy
of the People.
2600, "The Hacker's Quarterly", is unhappy about what the Secret Service
did to one of its correspondents, Ed Cummings.
> The Secret Service has locked Ed Cummings up with violent criminals for
> nearly a year, solely because of
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads