How to Show or Hide Images When Exporting Word to PDF
Question details
The user wants to generate two versions of a PDF (with and without images) from a single Word document, typically for student and answer-key materials.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating educational materials where specific answer images need to be hidden for the student version and displayed for the answer-key version.
- Observed behavior
- The user needs an efficient method to toggle the visibility of selected images before exporting the document to PDF without having to maintain two separate files.
Ensure your document layout and text formatting are fully finalized before adjusting image visibility, as hiding images might shift subsequent paragraphs depending on the method used.
Use Text Boxes and Custom Styles to Collapse Images
This method hides the images and completely collapses the space they occupy by adjusting paragraph line spacing via a custom style.
By placing images inside borderless text boxes and linking them to a dedicated paragraph style, you can control the visibility and space of all answer images simultaneously.
Place each answer image inside a borderless, transparent text box. Ensure the text box is set to sit inline with your text where appropriate.
Select the paragraph containing the text box and create a new custom style (e.g., 'AnswerTextBox'). Apply this style to all text boxes that contain answer images.
To hide the images, open the Styles pane, right-click your 'AnswerTextBox' style, and select Modify. Go to Paragraph formatting and set Line Spacing to 'Exactly' with a very small value (like 1 pt). Export the document to PDF.
To show the images again, modify the 'AnswerTextBox' style once more and restore the Line Spacing to 'Single'. Export the document to generate your answer-key PDF.

Adjust Picture Brightness to Make Images Invisible
If you want to hide the image but keep the exact blank space it occupies in the document, changing the brightness to 100% is the fastest solution.
Batch Modify Images Using the Styles Pane
Use the Styles pane to quickly select all answer images formatted with a specific style, allowing you to bulk-adjust brightness or transparency.
Easily Manage Document Layouts and PDF Exports with WPS Office
WPS Office provides intuitive layout tools and advanced style management, making it incredibly easy to toggle image visibility and export professional PDFs without formatting headaches.
- 1. Open Your Document: Launch WPS Writer and open your .docx file containing the educational materials.
- 2. Apply and Modify Styles: Use the highly accessible Styles pane to apply a unified style to your answer images and modify line spacing or brightness settings in seconds.
- 3. Export to PDF: Click 'Menu' > 'Export to PDF' to generate your student version, then restore the images and repeat the export for the answer key.

Frequently Asked Questions
Does hiding images affect the pagination of my Word document?
It depends on the method used. If you use the line spacing method to collapse text boxes, it will shift content up, altering pagination. If you adjust picture brightness to 100%, the empty space is preserved, keeping your pagination exactly the same.
Will the hidden images be visible if a student converts the PDF back to Word?
If you use the 100% brightness or high transparency method, the image data is still embedded in the PDF and could theoretically be extracted or restored by a tech-savvy user. For completely secure student versions, deleting the images from a duplicate file before exporting is the safest route.
Can I use Macros to automate showing and hiding images?
Yes, you can write VBA macros to automatically adjust image transparency or brightness for specific shapes or styles, which speeds up the process significantly for large documents.




