restricting usage of pdf file

restricting usage of pdf file

by Jirka Hladis -
Number of replies: 16

Hello,

Can a security feature be enabled in a Moodle online class, that restricts the usage of  pdf files? The best possibility would be for students to access the pdf, see it online, and have the option to print, but NOT to save or download.  Can anybody see if Moodle has this function? 

Thank you. Jirka

Average of ratings: -
In reply to Jirka Hladis

Re: restricting usage of pdf file

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

This is not a Moodle issue, this is a browser issue and impossible to control.   Plus it would make no difference - if you give them the option to print, most computers nowadays have the option to Print to Pdf so that would defeat the object.  You have to realize that people are going to be able to reproduce anything that is on the web if they want to.

In reply to Jirka Hladis

Re: restricting usage of pdf file

by Guillermo Madero -
In reply to Jirka Hladis

Re: restricting usage of pdf file

by Matt Bury -
Picture of Plugin developers

Hi Jirka,

As Emma has stated, it's a PDF issue rather than a Moodle one.

Yes, you can create "view and print only" PDFs with some PDF editing tools (e.g. Adobe Acrobat). However, in order to view them, like any files, they have to be downloaded. Normally, the browser downloads them into its cache before displaying them. It's possible and relatively easy to retrieve files viewed in the browser from the browser cache.

Also, even with protected/encrypted PDFs, there's nothing to stop users from taking screen shots of the text and rendering them into text with optical character recognition (OCR) software. The same goes for photos, graphs, illustrations, etc.

It's worth noting that when PDFs are marked "Restricted" when you open them, Linux ignores these restrictions and you can do pretty much anything you want with them. I'm pretty sure that "Restricted" doesn't mean encrypted.

I hope this helps smile

Average of ratings: Useful (1)
In reply to Matt Bury

Re: restricting usage of pdf file

by Guillermo Madero -
In reply to Guillermo Madero

Re: restricting usage of pdf file

by Matt Bury -
Picture of Plugin developers

Hi Guillermo and everyone on this discussion smile

(Guillermo linked to this thread from another on a similar topic).

Re: SWFs, you can put a little bit of code at the start of SWFs that detects the context and only displays the content if everything's OK. If the user has downloaded the SWF or any of a list of conditions aren't met, it won't show the content. However, SWFs are trivial to decompile (reverse engineer) using free and open source software and pull out any content from them and there's no effective way to encrypt them. One way around this is to write a SWF app that pulls the text and images directly from Moodle's database (via a back-end PHP script with user authentication) and displays them within the app. If the app isn't authenticated, e.g. downloaded, it can't load the text and content. This can also be made to work outside the browser as an app on mobile devices (Yes, iPads and Android tablets do support Flash, just not in the browser) but you may as well use ebooks in that case. Flash used to be terrible at formating and displaying text but it's got better lately.

BTW, SWFs can be made accessible; you just need to specify which objects accessibility software should read. They're not specified by default so that screen readers don't try to read everything in the SWF. You can also set the tab order for easier navigation. You can also embed/load an audio version of the text as an alternative.

Re: protecting content, I've seen copy/save/print protections on some news sites that presumably use a JavaScript solution to place the text on the web page and block some of the browser's controls. Perhaps this is an avenue worth exploring? There may be a way of modifying the Book module to incude some JavaScript protection as an option. Or have you looked into ebooks?

I hope this helps! smile

Average of ratings: Useful (1)
In reply to Matt Bury

Re: restricting usage of pdf file

by Guillermo Madero -

Hi Matt,

Great explanation. I'll just add that eBooks can also be "decompiled", or more specifically, converted into html (see Calibre for this), unless of course, they have DRM (what is DRM, DRMcontroversy, living DRM-free, liberate) which, in the end, can also be removed (see here for example or this plugin).

In reply to Guillermo Madero

Re: restricting usage of pdf file

by Matt Bury -
Picture of Plugin developers

Hi Guillermo,

When DRM is correctly implemented, i.e. they use strong encryption, it's very difficult to crack. But yes, DRM seems to raise more issues than it solves. The music industry were the first to implement it broadly and they found that it drove large numbers of legitimate buyers to piracy because they had so many problems with it.

Looks like publishers haven't learned from that and are keen to repeat the experiences of the music industry: Everything will work fine this time, honest.

In reply to Matt Bury

Re: restricting usage of pdf file

by Dave Perry -
Picture of Testers

Adobe's eBook format (Digital Editions?) seems to be a good tradeoff between implementing DRM that is reliable and doesn't get in average end user's way. We've had the client installed on all the PCs where I work (in our library) as several eResources publish in their format.

In reply to Dave Perry

Re: restricting usage of pdf file

by Matt Bury -
Picture of Plugin developers

Hi David,

Yes, Adobe's version of DRM seems to be fairly widely used by publishers and device manufacturers. For me, after buying my first ebook, which was DRM-ed by Adobe, I had so many problems with opening/viewing it (between my PC and my ereader) and using it for learning purposes, e.g. quoting and citing short sections of text, that I decided it wasn't worth the effort. I re-bought the book in hard copy (which is much easier to bookmark pages, slip notes in, zip back and forth between different pages, etc.), and then, in order to legally and legitimately quote and cite sections of text, which is "fair use" and by no means copyright infringement, I just use my smartphone's camera with built-in optical character recognition (OCR) to copy and paste. I guess you can scan texts in the same way on ereaders too.

Sure, ebooks are convenient for reading novels and maybe magazines but when you want to use texts for learning purposes, with the added obstacles from DRM, I don't think it's a workable solution. Not in my case anyway. Buying the hard copy means I own the book forever and it's not dependent on Adobe and whoever else they have contracts with for me to read it. You can't lend or sell your books. There's no second-hand ebook stores so that you can find out of print books. What if the publisher goes bust? What if Adobe or the publishers get taken over/change management/ change their policies? You soon realise that your personal library isn't actually yours.

If you think I'm being unreasonable or paranoid, in a fit of irony, Amazon remotely deleted its users' copies of George Orwell's books from their Kindles, including Nineteen Eighty-four, (which in many countries are in the public domain, i.e. the copyright has expired) http://www.slate.com/articles/technology/technology/2009/07/why_2024_will_be_like_nineteen_eightyfour.html Down the memory hole!

Amazon can and does do this. According to Amazon's actions and not their PR:

  • They don't need a court order - They unilaterally and arbitrarily decide what they will allow you to do and when.
  • There's no such thing as "fair use." - Your legal protections in this respect disappear.
  • You can't copy sections of books for quoting and citation purposes.
  • There's no such thing as ownership, unless it's Amazon's ownership. - You don't control your ereader so it effectively belongs to them.
  • There's no such thing as lending or borrowing. - Your effectively "renting" your ereader and ebooks from them.
  • There's no such thing as second hand - How many less than wealthy students find second hand text books a life-saver?
  • There's no such thing as public domain. Publishers are currently claiming copyright over everything, whether they own it or not.
  • Amazon hates public libraries.
  • You effectively have no consumer protections because anything you do with their ebooks is likely to be a breach of their terms of service.
  • This isn't limted to Amazon. Others are just as bad or worse, e.g. Apple/iTunes, and there are only a small handful of publishers than have more ethical and equitable ("balanced") terms of service.
  • ereaders typically monitor your reading habits; what you read, how long it takes you, where you read and when. They can do anything they want with this data.

I think for these reasons and others, the majority of people don't really trust ebooks and ereaders and would rather have hard copies (The percentage of sales of books on ebook has levelled off at a small percentage. Amazon's figures claiming that ebooks have overtaken hard copy are narrow and misleading, i.e. it's Amazon's own sales figures, not the overall publishing industry's). If you can print out a PDF/HTML page/text file, you can do so much with it that is useful for study; margin notes, highlighting, folding corners, slipping in extra pages, etc.

Average of ratings: Useful (1)
In reply to Matt Bury

Re: restricting usage of pdf file

by Dave Perry -
Picture of Testers

The Kindle tablet has been universally slammed in education I gather. And all I trust apple to do is sell me songs.

I buy physical things off amazon, but digitally, unless it was an MP3 (so no drm for them to remotely destroy it) then nah.

Average of ratings: Useful (1)
In reply to Matt Bury

Re: restricting usage of pdf file

by Guillermo Madero -

Couldn't have said it better. Indeed, the 1984 case is as representative as it can of the underlying situation. Hopefully, at some point in time industries will learn and then stop "protecting" info. People who is going to buy is going to buy, and people who isnt, well, they won't; there's no way around it. Anyway, kind of a game actually, but in the end, those who crack the codes outnumber those that create them, so this by itself should be more than enough to know that they are spending time and money in a lost cause.

Yes, for some type of content nothing will beat physical books; I still remember having the whole table filled with open books while doing some reaserch. And of course, nothing will ever substitute the sensorial experience of a book, its smell, its texture or everything behind its design. For other uses, however, well, ebook readers are just like heaven sent! I carry my whole study library in it, I don't strain trying to read small prints and I can read in any lighting situation.

Average of ratings: Useful (1)
In reply to Guillermo Madero

Re: restricting usage of pdf file

by Matt Bury -
Picture of Plugin developers

For research papers, which are almost always published as PDFs, I tried very hard to make them work on my ereader (a Kobo). I also checked out other ereaders from Amazon, Sony, iRiver, etc. and Kobo were by far the best for PDFs. Even then, it wasn't really usable. I ended up printing them out, and that's considering that printers were sent from hell to make us miserable: http://theoatmeal.com/comics/printers My guess is that newer tablets would be more suitable for PDFs.

The technology for portable reading/studying devices still has a long way to go.

Average of ratings: Useful (1)
In reply to Matt Bury

Re: restricting usage of pdf file

by Guillermo Madero -

PDF are not the best option as they were designed for other purposes. As I wasn't familiar with epub, etc., my first attempts were to use them, first on a Kindle Fire and then on a Whitepaper. Not a waste of time, one always learns by doing and testing, but it became clear that I better learn about real ebook formats.

Printers sent from hell? Indeed! LOL :D

In reply to Guillermo Madero

Re: restricting usage of pdf file

by Matt Bury -
Picture of Plugin developers

This is my favourite epub editor: https://code.google.com/p/sigil/

Later versions of http://calibre-ebook.com/ include some ebook editing facilities.

I think using both benefits from some knowledge of how HTML works. Ebooks are simply HTML pages + directories of files; images, CSS, etc.; in a zipped, compressed package.

In reply to Matt Bury

Re: restricting usage of pdf file

by Guillermo Madero -

Yes, that was my first, very good, surprise! Basic HTML smile One just needs to get familiar with OPF & NCX files to handle both, ebook metadata and some ebook reader options. I use Calibre, mainly for converting from MOBI to AZW3. I've been wanting to play a bit with Sigil but so far I haven't made some time for that... I need to clone myself smile

In reply to Jirka Hladis

Re: restricting usage of pdf file

by Jirka Hladis -

Thank you, everybody for your responses. This is very helpful!

With appreciation,

Jirka