How to Create a PDF with Images and Their File Names
Question details
The user needs to compile a collection of images located in multiple subfolders into a single PDF, with each image's file name displayed as a label or caption.

- Product
- PDF Creator
- Device & OS
- not provided
- Scenario
- Creating a contact sheet, portfolio, or documentation PDF from an organized directory of images, ensuring each picture is clearly identified by its original file name.
- Observed behavior
- The goal is to automate or systematically process the insertion of multiple images and their corresponding text captions into a consolidated PDF document.
Gather all your required images from the various subfolders and temporarily copy them into a single, consolidated master folder to streamline the batch import process.
Create a PDF Contact Sheet using Photo Layout Tools
Using a dedicated photo manager or PDF layout tool allows you to automatically generate a contact sheet that pulls file names as captions, saving you from manual data entry.
Many professional image viewing and PDF creation applications feature a 'Contact Sheet' tool. This utility is specifically designed to arrange multiple images on a page and extract metadata, such as the file name, to display directly below the photo.
Place all the images you want to include into a single folder on your computer to make batch selection easier.
Launch an image management program (such as Adobe Bridge, Lightroom, or a dedicated contact sheet creator) and navigate to your consolidated image folder.
Select all the images, choose the 'Create Contact Sheet' or 'Print' option, and check the box labeled 'Use Filename as Caption' or 'Show Image Name'.
Set your output printer to 'Microsoft Print to PDF' or use the software's built-in 'Export as PDF' function to generate the final document.

Manually Insert Images and Captions in a Word Processor
If you only have a few images to process, inserting them into a standard word processor document and adding the text manually is a straightforward and accessible method.
Easily Create and Edit PDFs with WPS Office
WPS Office offers a powerful built-in PDF editor and a comprehensive Writer tool, allowing you to easily organize images, add descriptive text captions, and export your compilation directly to a high-quality PDF.
- 1. Open WPS Writer: Launch WPS Office, select Writer, and create a new blank document for your image layout.
- 2. Insert Images: Go to the 'Insert' tab, click 'Picture', and select the images you have collected from your subfolders.
- 3. Add Captions: Type the corresponding file name beneath each image, utilizing WPS Writer's alignment tools to center your text.
- 4. Export to PDF: Click on 'Menu' in the top-left corner, select 'Export to PDF', configure your save settings, and click 'Export' to finalize your PDF.

Frequently Asked Questions
Can I automatically extract file names as captions in standard word processors?
In standard word processors like Microsoft Word or WPS Writer, automatically extracting file names usually requires a custom VBA macro. Without a macro, you will need to type or copy-paste the file names manually below each inserted image.
How can I batch convert images from different folders into a single PDF?
The most efficient way is to first copy or move all the required images into one single directory. Then, you can use a batch PDF creation tool or a photo layout application to select the entire folder and merge them into one document in a single action.
What is the best format to save images before converting them to PDF?
Standard formats like JPEG and PNG are universally supported and best for PDF conversion. JPEGs keep file sizes small for photographs, while PNGs are ideal if your images contain text or require transparent backgrounds.




