How to Make Relative Audio and Video Links Work in PDFs
Question details
The user wants to ensure audio and video links (MP3, WAV, MP4) within a PDF remain functional when the PDF and its associated media files are moved to different drives or folders.

- Product
- Device & OS
- not provided
- Scenario
- Moving a PDF document alongside its linked external media files to a new directory, computer, or drive.
- Observed behavior
- Links created in a PDF might appear absolute and break when moved, requiring clarification on how relative paths behave when directories change.
Ensure that all your linked audio and video files are currently stored in the same parent folder as your PDF document to easily maintain relative path structures.
Keep Media Files in the Same Directory as the PDF
The most reliable way to maintain relative links in a PDF is to group the document and its media files together in a single folder before creating the links.
PDF links are generally relative unless the linked file is stored on a completely different drive at the time the link is created. Although the properties might display an absolute path, the link will dynamically adjust as a relative path if the files remain on the same drive and in the same relative folder structure.
Create a new, dedicated folder. Move both your PDF document and the required media files (such as MP3, WAV, or MP4) inside this specific folder.
Open the PDF in your PDF editor and add hyperlinks pointing directly to the media files located within this newly created shared folder.
When transferring the files to a different directory or computer, move or copy the entire parent folder as a single unit rather than moving the PDF file by itself.
Open the PDF from its new destination folder to verify that the relative links successfully locate and play the audio or video files.

Easily Manage PDF Links and Attachments with WPS PDF
WPS Office includes a robust PDF editor that allows you to effortlessly insert hyperlinks or embed media file attachments directly into your documents, ensuring they remain accessible anywhere.
- 1. Open your PDF: Launch WPS Office and open your target PDF document.
- 2. Access the Edit tab: Click on the 'Edit' tab located on the top navigation ribbon.
- 3. Add a link or attachment: Click 'Link' to route a relative path to your media file, or select 'Attachment' to embed the media directly into the file for easier sharing.
- 4. Save the document: Click 'Save' to apply the changes and ensure your linked media functions properly.

Frequently Asked Questions
Why do my PDF media links break when I email the file?
If you linked to a local audio or video file on your hard drive, the recipient will not have access to that file. To fix this, you must either embed the media directly into the PDF as an attachment or send both the PDF and the media files together in a single ZIP folder.
Do relative links work across different local drives?
No. If a PDF is on one drive (e.g., C:) and the linked media is on another (e.g., D:), the PDF software creates an absolute link. Both files must be on the same drive for the link to act as a relative path.
Will my PDF media links work in a web browser viewer?
Link behavior can vary significantly between dedicated desktop PDF editors and built-in browser PDF viewers. Browser viewers often block local file execution for security reasons, so it is highly recommended to open media-rich PDFs in a dedicated PDF application.




