• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to remove extra Line Breaks when copy / pasting after exporting to PDF

New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

After exporting my InDesign file to a PDF, I noticed that line breaks are added when copy / pasting text from the PDF.

 

So, for example, a snippet of exported placeholder text pastes as

Xero moluptae nisit et hillestiis re nectorios porunt as aborum aut veliqui cumqui
volorep udaest aut la peliquam eatis aut rerum nobit, odici cum fugit dunt eum
quiasse cuptasp ernates nonsend itiurib erumquam haris sinctur, sae non repra
quod ma volo into omnihit dolum volorae deseque nihil into quid ut fugia quam,
seremquam quibus, seque vit, quis volore voloria de sitem inum aciasit aperios

Instead of the expected format of

Xero moluptae nisit et hillestiis re nectorios porunt as aborum aut veliqui cumqui volorep udaest aut la peliquam eatis aut rerum nobit, odici cum fugit dunt eum quiasse cuptasp ernates nonsend itiurib erumquam haris sinctur, sae non repra quod ma volo into omnihit dolum volorae deseque nihil into quid ut fugia quam, seremquam quibus, seque vit, quis volore voloria de sitem inum aciasit aperios

 

Is there a way to prevent this from happening?

TOPICS
How to

Views

3.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 03, 2021 Feb 03, 2021

Hi Drow17,

text in a PDF does not know that it belongs to a paragraph optically.

But Acrobat Pro has a mode where Acrobat tries to hold text together that has line breaks or uses hyphenation.

 

Select the text when in Edit PDF and copy it:

EditTextMode-CopyText-AcrobatPro.png

 

In my case the hyphenated words are detected as hyphenated; in the pasted text the hyphens will not show up:

EditTextMode-TextCopyPastedFrom-AcrobatPro-to-Editor.png

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate
Community Expert ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Copying text from the PDF into ... what? In my experience, while some PDFs allow copying text, that is all you get: text.

Mike Witherell

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

I just wasn't sure if there was a way to prevent the exported text in the PDF from adding the additional line breaks. (My example above formatted differently before posting, so it's not very useful.)

 

Essentially, the PDF could have a line of text that says "This is a line of text" that spans across two separate lines. When I copy / paste it anywhere, it will include that line break, instead of pasting all into a single line

 

"This is a line

of text".

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 03, 2021 Feb 03, 2021

Copy link to clipboard

Copied

Hi Drow17,

text in a PDF does not know that it belongs to a paragraph optically.

But Acrobat Pro has a mode where Acrobat tries to hold text together that has line breaks or uses hyphenation.

 

Select the text when in Edit PDF and copy it:

EditTextMode-CopyText-AcrobatPro.png

 

In my case the hyphenated words are detected as hyphenated; in the pasted text the hyphens will not show up:

EditTextMode-TextCopyPastedFrom-AcrobatPro-to-Editor.png

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 28, 2023 Dec 28, 2023

Copy link to clipboard

Copied

LATEST

Yes, PDFs know which lines belong to which, how could you even select them together, across lines if they didn't? The need for edit mode is really unconvenient, there are PDF viewers however, like Abby Finereader that let you select text without extra breaks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines