« Logiciels terminal » : différence entre les versions
Aucun résumé des modifications Balise : Révoqué |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 919 : | Ligne 919 : | ||
✅ Extraction rapide du texte ✅ Outil léger et scriptable ✅ Parfait pour OCR / indexation ✅ Intégration facile dans des pipelines shell | ✅ Extraction rapide du texte ✅ Outil léger et scriptable ✅ Parfait pour OCR / indexation ✅ Intégration facile dans des pipelines shell | ||
----- | |||
== '''🧰 <code>qpdf</code> ''' == | |||
'''<code>QPDF</code>''' est un outil en ligne de commande permettant de manipuler, | |||
inspecter et transformer des fichiers PDF. | |||
Il est couramment utilisé pour le chiffrement, le déchiffrement, | |||
la réparation et l’optimisation de PDF. | |||
------------------------------------------------------------------------ | |||
=== 📦 '''Installation de qpdf''' === | |||
<syntaxhighlight lang="bash"> | |||
sudo apt install qpdf | |||
</syntaxhighlight> | |||
----- | ----- | ||
=== 🚀 '''Utilisation de base''' === | |||
<ol style="list-style-type: decimal;"> | |||
<li><p>'''Déchiffrer un PDF protégé par mot de passe''' :</p> | |||
<syntaxhighlight lang="bash">qpdf --password=secret --decrypt input.pdf output.pdf</syntaxhighlight></li> | |||
<li><p>'''Fusionner des PDF''' :</p> | |||
<syntaxhighlight lang="bash">qpdf --empty --pages a.pdf b.pdf -- output.pdf</syntaxhighlight></li> | |||
<li><p>'''Inspecter la structure d’un PDF''' :</p> | |||
<syntaxhighlight lang="bash">qpdf --check document.pdf</syntaxhighlight></li></ol> | |||
----- | |||
=== 🔧 '''Options courantes''' === | |||
{| class="wikitable" | |||
|- | |||
! Option | |||
! Description | |||
|- | |||
| <code>--decrypt</code> | |||
| Supprime la protection | |||
|- | |||
| <code>--encrypt</code> | |||
| Chiffre un PDF | |||
|- | |||
| <code>--check</code> | |||
| Vérifie l’intégrité | |||
|- | |||
| <code>--pages</code> | |||
| Sélection de pages | |||
|- | |||
| <code>--linearize</code> | |||
| Optimisation web | |||
|- | |||
| <code>--show-npages</code> | |||
| Nombre de pages | |||
|- | |||
| <code>--help</code> | |||
| Aide complète | |||
|} | |||
----- | |||
=== 💡 '''Exemples pratiques''' === | |||
<ul> | |||
<li><p>'''Extraire certaines pages''' :</p> | |||
<syntaxhighlight lang="bash">qpdf input.pdf --pages input.pdf 1-5 -- output.pdf</syntaxhighlight></li> | |||
<li><p>'''Optimiser un PDF pour le web''' :</p> | |||
<syntaxhighlight lang="bash">qpdf --linearize input.pdf output.pdf</syntaxhighlight></li> | |||
<li><p>'''Afficher le nombre de pages''' :</p> | |||
<syntaxhighlight lang="bash">qpdf --show-npages document.pdf</syntaxhighlight></li></ul> | |||
----- | |||
=== 📌 '''Pourquoi utiliser QPDF ?''' === | |||
✅ Manipulation PDF avancée ✅ Sécurisation et déchiffrement ✅ Très fiable pour l’automatisation ✅ Aucun rendu graphique nécessaire | |||
----- | |||
[[Catégorie: Terminal Tools]] | [[Catégorie: Terminal Tools]] | ||