Copy link to clipboard
Copied
I have pdf files that each have a layer called "Centerline (ANSI)" (see attached snapshot "Centerline (ANSI)" . Before I distribute these files to customers, I want to have this layer permanently hidden or removed. I know how to go into "Layer Properties", turn the "Default State" to "Off", lock it, and then apply password protection to the document to prevent changes (see attached file "Default state -off) but my issue is I have about 200 of these pdf files and this would be time-consuming. Is there a way to automate this process through scripting? Is this done through some kind of batch processing? I know "some" javascript but would know where to begin with this. The goal of the scripting is to PERMANENTLY turn off or delete the centerline layer/ocg of each file through scripting - such as a batch process - without having to go into each file and turn off the layer manually. Is this possible? |
Copy link to clipboard
Copied
Hello @Eric22562456ozqr,
You can do this without scripting, you can apply password protection and remove the layer named Centerline (ANSI) in a Acrobat Action.
1. Create a custom preflight profile with custom fixups to remove the layer named Centerline (ANSI)
2. Create a Acrobat Action to run the preflight profile, apply password protection and save the file(s), when creating the action you can point the action to a folder with all the files in the right column near the top.
3. Set the password/protection settings in the specify settings
Let me know if this make sense or if you have any questions.
Regards,
Mike
Copy link to clipboard
Copied
Hello @Eric22562456ozqr,
You can do this without scripting, you can apply password protection and remove the layer named Centerline (ANSI) in a Acrobat Action.
1. Create a custom preflight profile with custom fixups to remove the layer named Centerline (ANSI)
2. Create a Acrobat Action to run the preflight profile, apply password protection and save the file(s), when creating the action you can point the action to a folder with all the files in the right column near the top.
3. Set the password/protection settings in the specify settings
Let me know if this make sense or if you have any questions.
Regards,
Mike
Copy link to clipboard
Copied
MIKE YOU ARE A LIFESAVER!!!!!!!!!!!!
THANK YOU!