PDF Preferences (OpenInsight 64-bit)
At 20 JUL 2022 10:30:55AM Dave Boyle wrote:
Hi alll,
Just wondering if it is possible to set the items highlighted in the image below to be unchecked by default when saving a pdf from the preview window?
At 20 JUL 2022 10:32AM Dave Boyle wrote:
At 20 JUL 2022 12:20PM bshumsky wrote:
oops, image now attached
Hi, Dave. You're running this in OI 10? If so, there is an extension to the INIT parameters that lets you control some of these PDF values.
INIT param one is listed as the "FILENAME" parameter, and the on-line help shows values for fields 1-4. Field 5 in OI 10.1+ is the "export details", which can take the following values:
<5,1>: owner password
<5,2>: user password
<5,3>: permissions (see below)
<5,4>: Preview afterwards? (1=yes, 0=no)
Values <5,1>, <5,2>, and <5,3> only apply to PDF exports, but <5,4> applies to any of the export formats that support a "Preview" option.
If <5,3> is null, then there are no document restrictions; if <5,3> is NOT null, then the following letters indicate the permissions you want to set:
"C": Allow copying
"E": Allow editing
"P": Allow printing
"A": Allow annotations editing
So, if you wanted to allow printing and copying, you would set <5,3> to be CP (or PC, the order isn't important):
filenameParam = ""
filenameParam<5,1> = "myOwnerPasswordHere"
filenameParam<5,3> = "CP" ;* copy and print is allowed
If you wanted to disable ALL the permissions, then you have to put SOMETHING into <5,3>, just make sure it's not one of the defined values - so to forbid ALL permissions, you can set <5,3> to N (for none), for example:
filenameParam = ""
filenameParam<5,1> = "myOwnerPasswordHere"
filenameParam<5,3> = "N" ;* everything is forbidden
Note that if you want to restrict the permissions in any way, you MUST also set the owner password.
Also note that this is only applicable to OIPI.Net prior to release 10.2; in OI 10.2, however, it will work for both OIPI.Net and OIPI "Classic".
Hope that helps,
- Bryan Shumsky
At 21 JUL 2022 04:45AM Dave Boyle wrote:
Hi Bryan,
Thanks, running OI 9.4. i've check ed teh help and it doesnt appear to be in there. I assume theres no other way to do this in OI 9?
Thanks,
Dave
At 21 JUL 2022 10:16AM bshumsky wrote:
Hi Bryan,
Thanks, running OI 9.4. i've check ed teh help and it doesnt appear to be in there. I assume theres no other way to do this in OI 9?
Thanks,
Dave
Hi, Dave. Sorry for the confusion; since you posted this in the OpenInsight 64 bit category, I thought you were running OI10.
It's possible this engagement was available back in 9.4 for oipi.net; I don't recall when it was introduced. As I mentioned, it's not documented, so it might still be available even though it's not showing in the help. You can give it a try, and if it doesn't work, it won't hurt anything.
- Bryan Shumsky