Accueil > Linux > transformer d’un format en un autre ( ps,pdf,html,djvu, jpg...)
transformer d’un format en un autre ( ps,pdf,html,djvu, jpg...)
Publié le 8 mars 2007, dernière mise-à-jour le 24 septembre 2024, > 23 visites, >> visites totales.
- programmes :
any2djvu atp bhl cjb2 convert ddjvu devtodo djvudigital djvutoxml djvutxt dvi2ps dvipdfmx dvipng e2ps enscript gif2png gif2tiff markdown pdf2ps pdftohtml pdftoppm ppm2tiff ps2pdf14 psedit pstoedit pstotext sam2p text2html tiff2pdf tiffsplit tifftopnm tth xmlto xpdf - installation 2024 (deb13/trixie) :
apt-get install devtodo djvulibre-bin dvipng e2ps enscript ghostscript libtiff-tools markdown netpbm poppler-utils pstoedit texlive-binaries tth xmlto xpdf ytfzf
- installation 2024 (deb12/bookworm) :
apt-get install devtodo djvulibre-bin dvi2ps dvipng e2ps enscript ghostscript graphicsmagick-imagemagick-compat libtiff-tools markdown netpbm poppler-utils pstoedit texlive-binaries tth xmlto xpdf ytfzf
html vers pdf : weasyprint fich.html fich.pdf
2019 : calibre
2018 :
apt-get install devtodo djvulibre-bin djvulibre-plugin dvi2ps dvipdfmx dvipng e2ps enscript gif2png imagemagick libtiff-tools markdown pdftohtml pstoedit pstotext psutils tth xmlto xpdf
dernières commandes :
-
ddjvu -format=pdf initial.djvu final.pdf
- format dans { pbm, pgm, ppm, pnm, rle, tiff, pdf }
- pages 5,6,7,8,9,12 :
-page=5-9,12
-
pdf2htmlEX initial.pdf final.html
- pages 5,6,7,8,9 :
pdf2htmlEX -f 5 -l 9 initial.pdf final.html
- pages 5,6,7,8,9 :
- firefox : jsonlz4 -> json
- about.config ; mettre devtools.chrome.enabled à true puis
- console du navigateur ( CTRL+MAJ+J ou Outils->Dev->Console )
- copier coller dans la console :
- choisir le fichier automatiquement transformé en json
-
xmlto pdf initial.xml final.pdf
: pas utilisé- format dans { awt, dvi, epub, fo, html, javahelp, mif, pcl, pdf, ps, svg, txt, xhtml, }
pdf2odt
https://convertio.co/fr/pdf-odt/ : marche très bien , très rapide, très léger (Mopdf x1.3) ;1 essai
https://tools.pdf24.org/fr/pdf-en-odt : marche très bien , peu rapide, lourd (Mopdf x 16) ; 1 essai
https://2pdf.com/fr/convert-pdf-to-odt/ : ne marche pas
pdf2odt : imparfait et ne marche pas sur raspbian bookworm
python3 -m venv ytdlp-poub&& source ytdlp-poub/bin/activate && pip install pdf2odt tesseract pytz && pdf2odt --pdf machin.pdf --tesseract machin.odt ; echo "ne pas oublier de détruire le dossier ytdlp-poub"
2007 :