Hi I have a fillable pdf with information. I want to convert the fillable pdf to read only programmatically using vba. Is it possible to do so? If so can someone help me with the code?
Please define exactly what you mean by “read only“. Perhaps describe what you would do to make this change manually.
So i want to print data into a pdf and make it read only meaning the data cannot be changed manually after the data is inserted programatically.
No. There are empty fields. i want to fill them using vba and make it un-editable (read only).
setting form fields from VB is certainly possible. You mean unfillable? Or do you mean something else by uneditable? Read only is certainly something else.
Ok since you just keep repeating the same word without explaining it, please explain what you would do to make this happen manually (not in a program).
Sorry i couldn't explain this better. I'm showing you the manual steps.
Use Adobe Acrobat to open the PDF file you want to restrict as Read-Only. You can adjust security settings only after you convert a file to a PDF.
Open "Properties" under the File menu. In the new window that opens, select "Security."
Select "Password Security" in the dropdown menu for "Security Method." This is the simplest method to create a read-only document. A new window opens for Password Security Settings.
Leave unchecked the option to require a password to open the PDF if you don't want to restrict anyone from reading the file.
Checkmark the option under Permissions to "Restrict editing and printing of the document." Enter a password that will be required to make any changes in the file or its security.
Select "None" in the drop-down options next to "Printing Allowed:" to prevent printing. Choose "Low Resolution (150 DPI) to allow low quality printing.
Select "None" for "Changes Allowed." Your other choices include allowing a viewer to fill in form fields and add comments with attached notes.
Leave unchecked the option to enable copying of text, images and other content. Then click "OK." In a new window, verify your password to enable the security settings
This is not possible with VBA.