2022-07-18 14:23:28 +02:00
|
|
|
#+options: toc:nil num:nil author:nil
|
|
|
|
|
|
|
|
* Convert pdf to text or html using poppler
|
|
|
|
|
|
|
|
Use poppler and redirect the text to a org file. ~pdftotext~ converts a pdf to
|
|
|
|
"txt" if no other format is specified
|
|
|
|
|
2022-09-02 22:58:30 +02:00
|
|
|
#+begin_example bash
|
2022-07-18 14:23:28 +02:00
|
|
|
pdftotext foo.pdf foo
|
2022-09-02 22:58:30 +02:00
|
|
|
#+end_example
|
2022-07-18 14:23:28 +02:00
|
|
|
|
|
|
|
Install poppler in Parabola GNU-Linux
|
|
|
|
|
2022-09-02 22:58:30 +02:00
|
|
|
#+begin_example bash
|
2022-07-18 14:23:28 +02:00
|
|
|
pacman -S poppler
|
2022-09-02 22:58:30 +02:00
|
|
|
#+end_example
|
2022-07-18 14:23:28 +02:00
|
|
|
|
2022-09-02 22:58:30 +02:00
|
|
|
#+begin_example bash
|
2022-07-18 14:23:28 +02:00
|
|
|
pdftotext foo.pdf ->> foo.org # first option
|
|
|
|
pdftotext foo.pdf foo.org # second option
|
2022-09-02 22:58:30 +02:00
|
|
|
#+end_example
|
2022-07-18 14:23:28 +02:00
|
|
|
|
|
|
|
Convert pdf to html
|
|
|
|
|
2022-09-02 22:58:30 +02:00
|
|
|
#+begin_example bash
|
|
|
|
pfdftohtml foo.pdf foo.html
|
|
|
|
#+end_example
|