Benches macOS

13

Preview: Can't copy text if it is highlig…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Continuation of this thread: https://discussions.apple.com/thread/8278082

"I'm trying to copy some highlighted text from a PDF but Preview does not let me to do so. However, I am able to copy it if I remove the highlight beforehand. Is anyone experiencing the same problem? Is there a way to fix it?"

I am experiencing that exact problem, and I am here to ask why it hasn't been addressed a year after it's been first mentioned. To specify the issue, by highlighted text we mean text that was highlighted using the marker pen tool, putting a permanent colored box behind the text.

Not allowing highlighted text to be copied does not have any advantages to the user. It will also overwrite the previous clipboard item with an empty string, which seems rather useless. And if I recall correctly, the copy function worked rather flawlessly in older versions of Preview, regardless of whether text was highlighted or not.

Apple: Just because nobody replied to the thread in a while doesn't mean the issue was miraculously fixed. I suggest closing a bug report only once the issue is fixed, not before. Get it together, please.

To users experiencing the same issue: As far as I know, the only workaround is to use a different PDF viewer, such as Skim.

13 replies

Sign in or join Beachball Help to reply.

  1. 0

    dialabrain

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    How is it true??? Highlight some text in a PDF…

    then select that same text and right/control click or choose "Copy" from the Edit menu and see if you can "copy" the text.

    You have to "Remove Highlight" before the selection can be copied.

  2. 0

    dallasmacguy

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I concur with dialabrain, for Preview 10.1 and Mojave 10.14.3 copy and paste of "highlighted" text is broken.

    For a pdf with text and highlighting as in the image above:

    456 will not copy to the clipboard.

    3456 will copy to and paste from the clipboard (if you right click on the 3).

    678 will not copy to the clipboard.

  3. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Could it be this?

    For some reason, Mojave's default highlighting color matches the white color of text documents in Preview. So even though it doesn't look like you're highlighting text, you actually are! Crazy, I know. To fix this, go to System Preferences --> General --> then change the highlighting color to a different color. I did this, and now I can see that I've been highlighting text this whole time. Weird that Apple defaulted the highlighting color like that, but so it goes...

    https://www.reddit.com/r/applehelp/comments/9jmunj/preview_app_cant_select_text_for_copyingpasting/

  4. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    In the Preview app on your Mac, open the PDF you want to change.

    If the Markup toolbar isn’t showing, click the Show Markup Toolbar button , then do any of the following:

    Copy text: Click the Text Selection button , drag over the text, then choose Edit > Copy.

    Copy a portion of text vertically: Click the Text Selection button , hold down the Option key as you select the text, then choose Edit > Copy. (This is useful for copying a column in a table.)

    Copy a portion of the page as a graphic image: Click the Rectangular Selection button , drag over a portion of the page, then choose Edit > Copy.

  5. 0

    dallasmacguy

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    As a work around: be sure to included in your selection at least 1 character of un-highlighted text _preceeding_ the highlighted text. Then right click on the selected but unhighlighted character to copy.

  6. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I posted in the context of Preview 10 on High Sierra. Even said so — because this is a High Sierra community.

    I don't disagree with you about Mojave, because the methods in the PDFKit framework that are supposed to return the text of a highlighted string also return nothing. Wrote a PyObjC script that could detect the Highlight, even knew the coordinates for the beginning and ending of the highlight, but the highlighted string itself was null. Tools that do not use Apple's PDFKit apparently can capture the Highlighted string.

  7. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Here is what I intended to post, no what the hosting software would allow though before it blocked the post.

    I don't disagree with you about Mojave, because the methods in the PDFKit framework that are supposed to return the text of a highlighted string simply return nothing. Wrote a PyObjC script to test that with PDFKit.

    However, if one opens the same PDF in Adobe Acrobat Reader DC v2019.010, and do not select the highlighted text — a right-click will produce a secondary menu with a Copy Text menu item that correctly places the highlighted text on the clipboard. Clearly throws shade on Apple's Preview and its underlying dependency on PDFKit.

  8. 0

    dialabrain

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I posted in the context of Preview 10 on High Sierra. Even said so — because this is a High Sierra community.

    Yes, you did say that. However I get the same results in High Sierra so I didn't make mention of the fact.

  9. 0

    dialabrain

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    FWIW, Apple is not here. This is a users for users forum and we have no insight as to what Apple may or may not be fixing.

    You can send Apple feedback: Feedback - macOS - Apple

  10. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    .

  11. 0

    dialabrain

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    FWIW, it's not that. It's true that in Preview you can't copy text that has had highlighting added.

  12. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    How is that true? I just copied and pasted some highlighted text from Preview 10.0 on High Sierra 10.13.6 (17G5019) into another document, and the Terminal.

  13. 0

    dialabrain

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Indeed.