How to Optimize a Layered PDF Without Merging Layers
Question details
Reduce the size of a PDF document originally created in Illustrator while ensuring that all layers remain separate and editable.

- Product
- PDF Editor / Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Compressing a large, complex layered PDF file for easier sharing or archiving without losing the ability to edit or view individual layers.
- Observed behavior
- The user needs to optimize the file size without the software automatically discarding hidden layers or flattening the document into a single layer.
Before proceeding, save a backup copy of your original Illustrator-created PDF to ensure you do not accidentally overwrite your master file with a flattened version.
Use Advanced PDF Optimizer Settings
Adjust the specific settings within the PDF Optimizer to compress the file size while explicitly instructing the software not to discard or merge layer content.
By default, some compression profiles may remove hidden content or flatten layers to save space. To prevent this, you must customize the optimization profile to retain PDF layers by setting the correct compatibility version and unchecking layer-removal options.
Launch your advanced PDF editing software (such as Acrobat), go to the File or Tools menu, and select 'Save as Other' or directly open the 'PDF Optimizer' tool.
In the Optimizer window, change the 'Make compatible with' dropdown setting to Acrobat 6.0 (PDF 1.5) or a later version. Earlier versions do not support layering and will force the document to flatten.
Navigate to the 'Discard User Data' or 'Clean Up' panel within the Optimizer settings. Locate the option labeled 'Discard hidden layer content and flatten visible layers' and make sure it is completely unchecked.
Save these current settings as a custom optimizer profile for future use. Click 'OK' to run the optimization process and save the new compressed file.
Open the newly optimized PDF, open the Layers panel from the navigation pane, and verify that all your original layers are still present and toggleable.

Compress and Manage PDFs Seamlessly with WPS Office
WPS Office provides a highly efficient, built-in PDF toolkit that allows you to read, edit, and compress PDF files while preserving essential document structures and maintaining high visual quality.
- 1. Open WPS Office: Launch the WPS Office application and click on the 'PDF' tab from the main interface.
- 2. Import Your PDF: Click 'Open' and select the large PDF file you wish to optimize.
- 3. Access the Compress Tool: Navigate to the 'Tools' menu on the top ribbon and select the 'Compress' option.
- 4. Select Compression Level: Choose your desired compression ratio (e.g., HD, Normal, or Basic) based on your file size needs, then click 'Compress' to save the optimized PDF.

Frequently Asked Questions
Why does my PDF lose its layers when I try to reduce the file size?
Many default optimization tools prioritize maximum file size reduction, which often includes flattening the document or removing hidden layers. You must manually configure advanced optimization settings to prevent the software from discarding this layer data.
What PDF version is required to support layers?
PDF layers (technically known as Optional Content Groups or OCGs) were introduced in PDF 1.5. Therefore, you must ensure your document's compatibility is set to Acrobat 6.0 (PDF 1.5) or higher to preserve layered structures.
Can I still edit the optimized PDF back in Illustrator?
Yes, as long as you saved the original PDF with the 'Preserve Illustrator Editing Capabilities' option checked and successfully retained the layers during optimization without flattening the file.
How do I check if my PDF layers are still active?
Open your PDF document in a compatible PDF reader or editor, navigate to the View menu, and open the Layers panel (usually found in the left-hand navigation pane). If the optimization was successful, your layers will be listed there.




