Removing Demo stamp and multiple selection

501 views
Skip to first unread message

Mirko Lugano

unread,
May 29, 2015, 12:44:02 PM5/29/15
to pdfnet-w...@googlegroups.com
Hi I am testing the new version of webViewer (2.0) HTML 5.
I wanted to ask 2 things:

- Is multiple text selection (like selecting some text, holding CTRL and selecting some other text) still not supported? (I guess not since I tried and it didn't work and I didn't see it in the 'What's new' section). Is this feature planned to be supported in further releases?

- In the docs and specifically in this pdf 
http://www.pdftron.com/webviewer/demo/doc/WebViewer_Developer_Guide.pdf
it says
'To display PDF documents without a demo stamp you’ll need to input your PDFNet.js license key as an option, e.g. l: "Your License Key Here"'
I have not tried it yet since I don't have a license key yet, but to my understanding the code 
l: "Your License Key Here"
which is to be placed inside the configuration options of the webViewer looks like clear text in a javascript file which could therefore be viewable by anyone inspecting the page with some developer tools (please correct me if I am wrong). Can another person who finds this code use it in his website? (Which would not be good)
Thank you

Matt Parizeau

unread,
May 29, 2015, 1:25:31 PM5/29/15
to pdfnet-w...@googlegroups.com
Hi Mirko,

You're correct, multiple selection isn't supported in WebViewer 2.0. We don't currently have this feature in our plans for a future release but if you are quite interested you could make a custom project request (https://www.pdftron.com/support/professionalservices.html) for us to prioritize this feature.

That's correct about the license key. Since the license key needs to be in client side JavaScript it's not going to be possible to completely remove this risk. To make it more difficult for someone inspecting the code then you could run some obfuscation function on the string beforehand and then unobfuscate it in JavaScript before passing it to WebViewer. For example http://stackoverflow.com/questions/14458819/simplest-way-to-obfuscate-and-unobfuscate-a-string-in-javascript. You could also run your WebViewer creation code through a JavaScript obfuscator to make it more confusing to read.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Support

unread,
Jun 3, 2015, 2:22:05 AM6/3/15
to pdfnet-w...@googlegroups.com

> Can another person who finds this code use it in his website? (Which would not be good)

They could, but they would be violating the copyright & using the software not in accordance to license agreement. Is this of concern for you though?

Mirko Lugano

unread,
Jun 3, 2015, 12:43:30 PM6/3/15
to pdfnet-w...@googlegroups.com
Thank you for your support, I will see about posting a feature request.
My only concern about licensing is that if someone else would use my key (of course illegally) I would be billed for the conversions run by them (until I find that out). I will try key obfuscation though.

Matt Parizeau

unread,
Jun 3, 2015, 2:46:22 PM6/3/15
to pdfnet-w...@googlegroups.com
Hi Mirko,

The key for viewing PDFs with WebViewer is a separate key from your PDFNet or DocPub key that would be used to run conversions. The WebViewer key is only valid for PDF viewing with WebViewer so you don't have to worry about being billed for someone else using that key. Sorry for the confusion!

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Mirko Lugano

unread,
Jun 4, 2015, 12:36:49 PM6/4/15
to pdfnet-w...@googlegroups.com
Sorry I had mistakenly written 'conversion' while I meant viewing PDFs directly within the web viewer without converting them. Thank you for the clarification though.

But now I am still a bit confused. Does this mean that the javascript license is free of charge? 
I have then logged in into the pdftron website (I have so far a free account) but I can't understand how to retrieve it... on the website I could not find any information about this either. (please excuse me if I just missed it).


Il giorno venerdì 29 maggio 2015 18:44:02 UTC+2, Mirko Lugano ha scritto:

Matt Parizeau

unread,
Jun 4, 2015, 1:57:21 PM6/4/15
to pdfnet-w...@googlegroups.com
I think the website may not be completely updated with the licensing details yet. For the PDF JavaScript license you can contact sa...@pdftron.com to inquire about the costs and receive a license key.

Matt Parizeau
Software Developer
PDFTron Systems Inc.
Reply all
Reply to author
Forward
0 new messages