Reducing the size of a PDF while preserving hyperlinks and their names requires careful handling. Here are the best methods to achieve this:
1. Use Adobe Acrobat Pro (Best for Preserving Links)
- Open the PDF in Adobe Acrobat Pro.
- Go to File > Save As Other > Reduced Size PDF.
- Choose compatibility (e.g., "Retain existing" or "Acrobat 8 and later").
- Check "Preserve hyperlinks" if available.
- Click OK to save a smaller version.
2. Use Ghostscript (Advanced, Command-Line)
Ghostscript can compress PDFs while keeping links intact:
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS=/ebook (good balance of size/quality)
-dPDFSETTINGS=/screen (smaller, lower quality)
-dPDFSETTINGS=/printer (higher quality, larger file)
Note: Ghostscript may not always preserve link names perfectly, so test before finalizing.
3. Use Online Tools (Convenient but Risky)
Warning: Some online tools may strip metadata or alter links. Always verify the output.
4. Use PDF Optimizers (Preserves Links)
5. Use Microsoft Word (If PDF is Text-Based)
- Open the PDF in Microsoft Word (if it's text-based).
- Save as a new PDF (Word may recompress images and text).
- Warning: This may not work for complex PDFs with embedded links.
6. Use Preview (Mac Users)
- Open the PDF in Preview.
- Go to File > Export.
- Choose "Reduce File Size" from the Quartz Filter dropdown.
- Save the file.
Best Practices to Preserve Links
- Avoid OCR tools (they often break links).
- Test the output to ensure links still work.
- Use lossless compression (e.g.,
-dPDFSETTINGS=/ebook in Ghostscript).
- Avoid image downscaling if links are embedded in images.
Would you like recommendations for a specific tool based on your OS?