Amrendra Kumar
Amrendra Kumar

Reputation: 1816

How can I make a PDF with text that no one can copy?

I want to make this block content read-only in the PDF output, so that no one can copy it:

<fo:block font-family="TimesNewRoman" font-size="10pt"  space-before="4pt" text-align="left">
    <fo:inline font-weight="bold" font-size="12pt">
        <xsl:value-of select="/root/personal/name"/>
    </fo:inline>
</fo:block>

Upvotes: -1

Views: 129

Answers (2)

K J
K J

Reputation: 11882

It is not possible to block text permanently from copy only temporarily in some conformant viewers such as Acrobat or partners. (The base file will be editable in other application/pdf s) Here is an example

No functions are allowed

enter image description here

Same File different Browser everything is allowed,

(subject to availability in a browser (all are editors) near your clients location.) enter image description here

First Browser again

(after file is unlocked, because the locks are optional) Do not think that increasing security level will make any difference, if the file is public on the web for viewing in a PDF viewer (thus word editor) it can be copied or reprinted and if images only then OCR.

enter image description here

Upvotes: 0

Tony Graham
Tony Graham

Reputation: 8068

If you are using AH Formatter, for example, you could put the text in a PDF layer for which printing and export is disabled and the layer is locked. See https://www.antenna.co.jp/AHF/help/en/ahf-ext.html#pdf-layer

However, I don't see how you would stop someone taking a screenshot or somebody typing what they read on the screen into a text editor.

Upvotes: 2

Related Questions