Question
I have a document with multiple layers, and I want to invert the current visibility of layers. How do I do this?
Answer
Press Ctrl+L to open the Layers pane:
Press Ctrl+A to select all layers, then press the spacebar to invert the visibility of layers:
It's also possible to use JavaScript in order to perform this operation, as detailed below:
1. Open PDF-XChange Editor, then press Ctrl+J to open the JavaScript Console.
2. Enter the following JavaScript in the window of the JavaScript Console:
var ocgArray = this.getOCGs();
for (var i=0; i < ocgArray.length; i++) {
ocgArray[i].state = !ocgArray[i].state;
}
3. Once the JavaScript has been added to the JavaScript Console, simply press Ctrl+Enter to run it and invert the current visibility of document layers.
Cookies are necessary in order to enable you to move around the website and use its features, including making purchases through our online store.
We need cookies in order to determine the number of unique users who visit the site, and to provide certain features, such as the login functionality.
We do not use cookies for advertising purposes.
By clicking Accept (or continuing to use the site) you are agreeing to our use of these tools. Learn More
These cookies are necessary for the website to function and cannot be switched off in PDF-XChange systems.
They are usually only set in response to actions made by you that result in a request for services, such as setting your privacy preferences, logging in, or filling in forms.
You can change the settings in your browser to block or alert you about these cookies, but doing so will result in some parts of the site losing functionality.
These cookies do not store any personally identifiable information.
You can contact us by phone, email or our social media accounts — we are here to assist you.