General ⇒ Minimize plagiarism by disbale copy and paste, etc
-
- Posts: 1
- Joined: Wed Sep 01, 2010 7:14 pm
Minimize plagiarism by disbale copy and paste, etc
Is it possible to disable copy and paste from a PDF file to minimise casual/easy plagiarism?
I'd like to only allow users to view the PDF (and print a hard copy). Having to hand type the content of the orginal may deter some malicious users.
I am running ubuntu and typically create a pdf using the latex GUI called Texmaker.
I create my pdf images via pstricks, so my pdfs are created as follows:
dvi-to-ps and ps-to-pdf.
Perhaps there is a command-line argument to be passed to disable certain features such as copy and paste or to some extend print features.
regards,
Paddy.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Minimize plagiarism by disbale copy and paste, etc
Not directly with LaTeX. It will require tools like pdfk. But you should be aware of the fact that it is very easy to evade those protecting mechanisms. So I'm afraid that your efforts might come to nothing.paddyjoesoap wrote:[…] Is it possible to disable copy and paste from a PDF file to minimise casual/easy plagiarism? […]
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Minimize plagiarism by disbale copy and paste, etc
Anyway, I'm sure there's a much shorter and simpler command to do this, but in Ubuntu, I think you could use the following (change inputpdf="..." and outputpdf="..." for your desired filenames, and make sure there are no files named page*.jpg in the directory, or they'll get deleted):
Code: Select all
inputpdf="input.pdf" && outputpdf="output.pdf" && pages=$(pdfinfo $inputpdf | sed -n 's/Pages: *\([0-9]*\)/\1/p') && for page in $(seq -f %04.f $pages) ; do pdftoppm -jpeg -f $page -l $page "$inputpdf" > "page$page.jpg" ; done && convert page*.jpg -quality 65 $outputpdf && rm page*.jpg