搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

When a pdf page is displayed and I copy some text and paste it, lines wrap. How to get the original line lengths?

  • 3 个回答
  • 1 人有此问题
  • 37 次查看
  • 最后回复者为 DonDilworth

more options

I put example input on my website in pdf format. The user can copy and paste that text into an editor to run the examples. But when pasted, the lines wrap in many places, causing format errors when the program tries to interpret them. How can I arrange that the pasted text is exactly the same as in the displayed pdf file?

I put example input on my website in pdf format. The user can copy and paste that text into an editor to run the examples. But when pasted, the lines wrap in many places, causing format errors when the program tries to interpret them. How can I arrange that the pasted text is exactly the same as in the displayed pdf file?

被采纳的解决方案

Copy/paste from the PDF Viewer is broken in many ways, like selection. Many bugs have been open about that on the bug tracker.

If you really need to copy and paste without issue, maybe use a different PDF viewer like Sumatra PDF.

定位到答案原位置 👍 0

所有回复 (3)

more options

选择的解决方案

Copy/paste from the PDF Viewer is broken in many ways, like selection. Many bugs have been open about that on the bug tracker.

If you really need to copy and paste without issue, maybe use a different PDF viewer like Sumatra PDF.

more options

Some PDFs trigger a message in Firefox that they might not display well in the built-in PDF viewer. I don't know how the viewer determines that, but it would be handy if you could trigger that message, since readers then would be encouraged to download the PDF and view it in their stand-alone viewer (e.g., Adobe Reader). Hmm...

more options

Very helpful replies, thank you. It seems pdf copy/paste is indeed broken. So I modified my website so the user sees docx files instead of pdf. Those open in Word just fine, and C/P works as well.

So I'm happy.