Solved BUG: PDF viewer, we can't copy...
-
In the PDF viewer, we can't copy selected content. When we use CTRL+C, nothing happens. Please fix.
[bug reported VB-89376]
-
@TsunamiZ As shown by @LorenAmelang, this file does not allow copying text. First, you need a password to remove the security options and only then you can enable the permission to copy the text. Vivaldi's behaviour is consistent with Adobe Reader and MS Edge in this case, so it looks like there's no bug to fix here, I'm afraid,
-
@TsunamiZ When Ctrl+C fails, does Right Click -> Copy work for you? I see that quite often in Vivaldi PDF views...
-
i tested this some more, and copying works for some PDF files but not all.
-
Remember that a pdf can be only including images and NO text, if there isn't a text part embedded, you don't have anything to search or copy.
Example
https://nlsblog.org/wp-content/uploads/2020/06/image-based-pdf-sample.pdfInstead, this one have text and I can select some text and ctrl-c to clipboard with internal pdf viewer
http://www.africau.edu/images/default/sample.pdfWhich pdf are you checking?
-
but it does have text. here is a PDF with the problem...
https://dlcdnets.asus.com/pub/ASUS/mb/SocketAM4/PRIME_X570-P/E17441_PRIME_X570-P_UM_v3_WEB.pdf
-
@TsunamiZ Strange - my Vivaldi lets me select text, but won't Ctrl+C it, and won't show me the Right click Copy - it shows "rotate", like for an image... But usually clicking in an image PDF selects the whole page...
Sumatra PDF and Adobe Reader both copy text from it.But Adobe shows:
"Content Copying - Not Allowed" Except for accessibility - wonder what that means... They definitely let me copy text!
-
i sent the devs a link to the pdf. hopefully they can fix this.
-
@TsunamiZ As shown by @LorenAmelang, this file does not allow copying text. First, you need a password to remove the security options and only then you can enable the permission to copy the text. Vivaldi's behaviour is consistent with Adobe Reader and MS Edge in this case, so it looks like there's no bug to fix here, I'm afraid,
-
Ppafflick moved this topic from Vivaldi for Windows on
-
Ppafflick marked this topic as a question on
-
Ppafflick has marked this topic as solved on
-
@pafflick To be fair, there is no password to give to allow copying text in that PDF but it's only needed to ignore the flag that "disallows" copying it. Sure, it means to not respect author's will to not allow reading and copy the text information in his PDF but it's really just a matter of commenting a instruction in the library.
if (!doc->okToCopy()) {
Here's the whole text extacted from that PDF with pdftotext, a program from XPDF, that I modified to exactly ignore those flags.
https://www.dropbox.com/s/iv8akh1sd0stlfa/E17441_PRIME_X570-P_UM_v3_WEB.txt?dl=0
In other words, it's just a matter of wanting to do it -
is it possible to simply use some kind of PDF editor to resave that PDF into a new version that allows copying?
-
@pafflick said in BUG: PDF viewer, we can't copy...:
@TsunamiZ As shown by @LorenAmelang, this file does not allow copying text. First, you need a password to remove the security options and only then you can enable the permission to copy the text. Vivaldi's behaviour is consistent with Adobe Reader and MS Edge in this case, so it looks like there's no bug to fix here, I'm afraid,
But... My Adobe Reader was perfectly willing to Ctrl+C copy any text from the very document that showed that prohibition! Maybe they ignore their own rules? Does your Adobe enforce them?
Edge allows selecting text, but only for "read aloud" - accessibility like in the Properties. Shows the Rotate options like Vivaldi.
-
@LorenAmelang said in BUG: PDF viewer, we can't copy...:
Maybe they ignore their own rules?
more than likely yes
-
@TsunamiZ https://github.com/qpdf/qpdf/releases
qpdf.exe --decrypt E17441_PRIME_X570-P_UM_v3_WEB.pdf E17_fixed.pdf
the text in output E17_fixed.pdf can be copied -
@iAN-CooG The password is required for removing the document's restrictions (including Content Copying) in a "non-hacky" way. I'm not sure if bypassing (or not respecting) such policies in the default PDF reader should be a feature. If anything, it's up to the Chromium project to take on this matter.
-
yes, bypassing copy restrictions should be an added feature in vivaldi. and it is probably easy to add too.