Open PDF as read only

47 views
Skip to first unread message

Vincent D'Souza

unread,
Feb 7, 2017, 5:51:24 PM2/7/17
to PDFTron PDFNet SDK
In Android we can use setFlag at Field level or use Flatten at Page level to make the pdf read only. Even though PDFTron claims we can use setUserInteraction to false that did not work but other two are working.

That being said, is there a similar/equivalent way in iOS? Can you throw some ideas in there please?

- Vincent

Ryan

unread,
Feb 14, 2017, 7:50:58 PM2/14/17
to PDFTron PDFNet SDK
The exact answer depends on exactly what you mean by "read only" and what actions are (not) allowed. For example changing view modes? changing pages? annotating? form field filling?

Most likely what you are looking for is to do either or both of the following.

1. Set userInteractionEnabled to False.
2. Do not call setToolManager in your code.

Claire Poza

unread,
Jan 23, 2018, 12:45:59 PM1/23/18
to PDFTron PDFNet SDK
you'd think the set user interaction enabled would completely disable the user from reading the pdf?

Ryan

unread,
Jan 23, 2018, 1:12:08 PM1/23/18
to PDFTron PDFNet SDK
If you want to prevent certain users from simply reading a PDF, then you would use encryption.

Reply all
Reply to author
Forward
0 new messages