File size: 463 Bytes
e0a78f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# pdftk thesis.pdf burst 

#using pdf2text, extract text for each page in assets/pdfs and store in asssets/txts with similar basename

for pdf in assets/pdfs/*.pdf
do
    echo
    #pdftotext $pdf assets/txts/$(basename $pdf .pdf).txt
    #pdf2txt.py -o assets/txts/$(basename $pdf .pdf).txt $pdf
done


for pdf in assets/pdfs/*.pdf
do
    convert -density 100 -quality 100 -colorspace RGB -alpha remove -alpha off $pdf assets/pngs/$(basename $pdf .pdf).png
done