Comment corriger les sauts de ligne d'un texte copié depuis un PDF
- Collez le texte
- Choisissez conserver les paragraphes
- Copiez le résultat
Text copied from a PDF has a line break at the end of each line, so sentences break midway where you paste them. Remove and Tidy Line Breaks in Text can fix these line breaks.
Étapes
- Open the PDF and copy the text.
- Open this tool and paste into the "Paste text" field.
- Under "Tidying method", choose "Keep paragraphs (blank lines)".
- Check in "After tidying" that the line breaks are fixed.
- Copy with "Copy result" and use it.
Why the line breaks appear
A PDF places text line by line like paper. So when copied, the end of each line comes as a line break. They are not line breaks as part of the flow of the text.
Choosing the method
- Paragraph breaks come as blank lines → "Keep paragraphs (blank lines)"
- Paragraph breaks are hard to tell or you want everything joined → "Remove all line breaks"
- You want one sentence per line → "Break after sentence ends (。!?)"
Also fix extra spaces
Copying from a PDF can put extra spaces mid-line. Ticking "Remove extra spaces" tidies them too.
Combining with the text extraction tool
You can also use the separate tool that extracts text from a PDF to get the whole PDF's text, then tidy line breaks with this tool.
Vertical-writing PDFs
Copying from a vertical-writing PDF can scramble the order. Tidying line breaks with this tool does not fix the order.
Exemple
Copied a paragraph from a paper's PDF, tidied it with "Keep paragraphs (blank lines)" and pasted it into a translation tool. Sentences did not break midway and translated correctly.
Common stumbling blocks
- Paragraphs became indistinguishable: you may have chosen "Remove all line breaks". Use "Keep paragraphs (blank lines)".
- Words split by hyphens (English): fix end-of-line hyphens manually.
- Garbled text: the PDF's text could not be extracted correctly.
Frequently asked questions
Can I undo after tidying line breaks?
If you keep the original pasted text, you can redo it.
En résumé
For PDF copies, "Keep paragraphs (blank lines)" is the basic tidy-up. Reselect according to the content.
Utiliser « Supprimer et nettoyer les sauts de ligne d'un texte » (gratuit)Outils complémentaires
- Compteur de caractères (candidatures et rapports): Comptez les caractères, les lignes et les feuilles de manuscrit de votre texte.
- Extraire le texte d'un PDF: Extrayez le texte d'un PDF pour le copier ou l'enregistrer.
- Convertir pleine chasse, demi-chasse, hiragana et katakana: Convertissez pleine chasse/demi-chasse et hiragana/katakana.
Si ce guide vous a aidé, un petit pourboire nous ferait très plaisir.
Laisser un pourboire (300 ¥)Offrir un cadeau (liste d'envies Amazon)Autres guides pour cet outil
- Comment supprimer les sauts de ligne d'un texte (gratuit, compatible téléphone)
- Comment conserver les paragraphes et ne supprimer que les sauts de ligne
- Comment mettre chaque phrase sur sa propre ligne
- Remarques sur la suppression des sauts de ligne dans un texte anglais
- Comment supprimer aussi les espaces superflus
- Que faire si des sauts de ligne subsistent