PDF "problem" and Javascript question

7 replies
Here is a possible "problem" I encountered.
I am planning to create several reports that ppl can download after paying for them.
As usual I will offer a 30 day money-back guarantee.
One of the things that I am a bit worried about is that somebody buys the PDF, then ask the money back and still keep using the repport.
In the software I develop I always do a check on my server (over TCP/IP) whether the license is genuine, meaning, paid for and allowed to run on that machine (using the local IP address and a license code). If the person running that piece of software requested the money back then the software will not run. The value returned from the server tells the software not to run.
I do know that it is possible to insert Javascript into PDF Files.
Would it be possible to create some JavaScript that does exactly what I described above?

Hoping to hear from you all.
#javascript #pdf #problem #question
  • Profile picture of the author ussher
    no.

    you might be able to get the JS into the file, but the user would always have the option of not letting adobe access the internet.

    Feels like about the same as "if someone bought my book, how could i stop them from photocopying pages then returning it to the store for a refund."
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[6012107].message }}
  • Profile picture of the author Earnie Boyd
    You could use the javascript to validate/invalidate the key stored in the client computers registry. The sale/refund is offered online and the key must be purchased/refunded online. You store the key in the client computers registry so they don't need to be connected to the internet to validate the key. When refunded you set the value to indicate the purchase was refunded and when they reopen the product you offer the key for purchase again. You could even program the javascript to allow the user to preview up to and including the glossary of the book and allow the book to be downloaded for preview for free.
    Signature
    {{ DiscussionBoard.errors[6013534].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by Earnie Boyd View Post

      You could use the javascript to validate/invalidate the key stored in the client computers registry. The sale/refund is offered online and the key must be purchased/refunded online. You store the key in the client computers registry so they don't need to be connected to the internet to validate the key. When refunded you set the value to indicate the purchase was refunded and when they reopen the product you offer the key for purchase again. You could even program the javascript to allow the user to preview up to and including the glossary of the book and allow the book to be downloaded for preview for free.
      Sounds good in theory, but the user can easily block Javascript from being executed in a PDF file, and as ussher mentioned, they can also block the PDF from accessing the internet.

      There is really no foolproof way to "protect" a PDF from piracy (or even an .exe ebook, for that matter).
      Signature

      {{ DiscussionBoard.errors[6013810].message }}
      • Profile picture of the author Earnie Boyd
        Originally Posted by Brandon Tanner View Post

        Sounds good in theory, but the user can easily block Javascript from being executed in a PDF file, and as ussher mentioned, they can also block the PDF from accessing the internet.

        There is really no foolproof way to "protect" a PDF from piracy (or even an .exe ebook, for that matter).
        I don't disagree but if it is important enough and the trust relationship between buyer and seller is strong enough the buyer will enable the disabled javascript to allow interaction for the purchase/refund. A PDF is a database of text and that text can be encrypted and decrypted only when a validated key is applied. The question isn't whether or not javascript is disabled, the question is how to use javascript to transact a key purchase/refund, and it can be done assuming the buyer trusts the seller to have javascript enabled.
        Signature
        {{ DiscussionBoard.errors[6013924].message }}
        • Profile picture of the author Brandon Tanner
          Originally Posted by Earnie Boyd View Post

          I don't disagree but if it is important enough and the trust relationship between buyer and seller is strong enough the buyer will enable the disabled javascript to allow interaction for the purchase/refund.
          Yeah, but if the buyer refunds right after they purchase then it's probably a pretty safe bet that they don't have (or want) a "trust relationship" with the seller.

          Technically speaking... I'm sure you could get a certain percentage of your customers to enable Javascript in your PDF if you asked them to, but the ones who want to steal it outright are not going to do that, so I just think it would be an exercise in futility.
          Signature

          {{ DiscussionBoard.errors[6014728].message }}
  • Profile picture of the author Darknite7
    Once you "hand" over content, its gone. Pure and simple.

    A better approach is constantly pushing out NEW content, and then have "subscription" based access to the new content.
    {{ DiscussionBoard.errors[6015233].message }}
  • Profile picture of the author ussher
    Even if you could get javascript to check for a key in the registry, not all operating systems have registries and adobe is not the only program capable of reading pdf files.

    One way I have seen that PDF's use the 'getting stolen' effect to their advantage is to create the PDF in such a way as it instructs on the HOW to do something, then directs to your stores that sell the tools necessary.

    If you can create this kind of setup, the price on the ebook is just for show. to create the perception of value. (but in your mind your thinking, buy it, steal it, i dont care because everyone who reads it is coming back to me to buy the tools any how.)
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[6017965].message }}

Trending Topics