New level to protect your publications

dcrwilson

New member
Ok, so today I sat and thought of all the ways to copy my publication. So as of now there are ONLY two ways a user can copy your publication without your permission as @gdgsupport took care of the rest with the hardware lock, screen protect…etc. These are
  • By using an actual camera and snapping the screen
  • By allowing printing capabilities to the end user, and the user creates an entire hard copy of the publication
Now you may say that I can lock down the printing option and not allow an end user to print, but there are some publications which will need to allow printing (not for sharing or reproduction). So in that light I was thinking how about watermarking every page and came across this article.Watermark text repeated diagonally css/html. Now this works perfect but I need to pass the publication username into the above code. So instead of the word howbloggerz being repeated the publication’s username would be there instead. That way should a user print my publication and reproduce a hard copy of it, his name or the name of the publication’s user would be pasted all over the document. Anyone including @gdgsupport can you all help me achieve this please.
 
It’s possible to include the name of the user into the HTML code thanks to HEScript and JavaScript. See this code example:
1_2.png
Can the EBook display the activation code somewhere? SOLVED How to (HTML Executable)
My bad. The correct script: <script type="text/javascript"> window.external.runHEScriptCom("test.Details"); document.write(window.external.GetGlobalVariable("RegisteredUser", "Not registered")); </script> And for the activation code, modify the first script like this: procedure Details; var S: string begin if GetGlobalVar("hepubregistered", "0") = "1" then begin S := GetGlobalVar("hepubuserdata1", ""); if S <> "" then S := " (" + S + ")"; S := GetGlobalVar("hepubusername", "") + S; SetGlobalV…
And use JavaScript to write the following HTML code to the document, and replace howblog… by the call to window.external.GetGlobalVariable(“RegisteredUser”, “Not registered”)
Code:
<div class="watermarked" data-watermark="howbloggerz">
     
    </div>
 
Last edited:
Back
Top