Remove line breaks and extra spaces from PDF text for easier copying and pasting.
How it works: 1 break = same paragraph, 2 breaks = new paragraph, 3+ breaks = extra spacing.
In the input text, line breaks are replaced with spaces, and multiple consecutive line breaks are treated as paragraph breaks. Hyphenated words split across lines are merged back together.