What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Is it possible to embed a pdf so that it can not be printed or copied? - RESOLVEDAsked by AA_C on February 08, 2017 at 04:41 PM
We have a new rulebook in pdf format.
We create two copies, one that has no security and one that has security.
The unsecured copy is for our paid members only so it is placed in the members area only.
The secured copy which restricts printing and copying is available to anyone.
My question is, if I embed the secured copy in a form, can I add extra security for disabling downloading and printing?
Unfortunately, will be a bit hard to avoid someone to download the PDF embedded file, what you could do is to upload your file to Google Drive and get the sharable link, on the settings you could also disable the download or print options for this file:
Then you will provide the get link in the iFrame JotForm's widget and the document should be displayed without the download or print ability.
This guide will help you to get the link of a file in Google Drive: https://support.google.com/docs/answer/2494822?co=GENIE.Platform%3DDesktop&hl=en
Another possibility that I can think would be to add an HTML element as cover for the iFrame widget and set the higher z-index value with custom CSS, this way even though the download or print buttons are visible they will not be clicked, this HTML element would need to have the same size as the iFrame widget where the file is displayed, this way only the scroll bar will be available so they can use it to read the entire document.
This is a sample code that you may use:
This has been applied to an HTML text field added to the form:
And you can see the form working here: https://form.jotform.com/60838735487975
Feel free to clone it.
Here's also the link to the iFrame widget: https://widgets.jotform.com/widget/iframe_embed
Hope this helps.
I will try both of these options.... many thanks Robert
I have cloned the form above as, 70393698588982.
I can't get the css code to be able to view the right edge of the pdf file.
Note: I made a few css changes so the li#id_3 is now li#id_2 , there is no longer a li id_3
"This has been applied to an HTML text field added to the form:" by Kevin_G
In any case I need a bit of help with this css code.
I tried the Google option and embed the url into the iframe, 70393760717966
When I try to view the form in a browser I get this message.
This content can’t be shown in a frame
There is supposed to be some content here, but the publisher doesn’t allow it to be displayed in a frame. This is to help protect the security of any information you might enter into this site.
So it appears that Google is blocking it. I can view it with the Google link.
Is there another option that might work for this?
I'm not sure I understood the problem completely, I checked your previous version of the form and I wasn't able to print the form with PDF or to download the PDF:
That was the original issue right?
Yes that was the issue, but I can't see the complete pdf file. The right side is clipped off. Is this not happening to you?
I will try it in IE11 and see what happens. I was using Chrome
I tested it in IE11, Firefox and Safari, it works as it should but in Chrome the right edge is cut off?
OOPS! Just noticed the slider at the bottom of the Chrome display
Thank you one and all ... Option 2 working very well
The width of the PDF widget is bigger than the form width. You have to adjust it, less than 50 maybe. I've fixed it for you. Can you check?
I had a look and didn't see any change. Did you adjust 70393698588982?
I just cloned it to use for the french pdf and it works perfectly (70395753999982).
I don't understand why one works and not the other???
When it is opened, at first appears OK then it jumps to the right.
The French version fits perfectly.
I have cloned your English version and noticed that it does not work because the text HTML field was added at the bottom of the form, right below the iFrame where the embedded PDF is displayed, what you need to do is to move the free HTML field right above the iFrame widget, then it will start working, here's my cloned form of your English version where you can see how it works: https://form.jotform.com/70396358939978
I noticed in your French version the free HTML field is placed correctly right above the iFrame widget and this is why it works.
Please, do the change and let us know how it goes for you.
I have cloned the French one and edited it for English.... Now it is working as it should.
I have deleted the two others.
Many thanks to ALL of you for the support and resolution to the issue.
Thank you for sharing your solution.
On behalf of my colleagues, you're welcome.