How to Add a Border to a PDF (Free Methods for 2026)
Learn how to add borders to PDF pages using free online tools, desktop software, and printer settings. Step-by-step guide for professional-looking documents.
Adding a border to a PDF gives documents a polished, professional look. Whether you are creating a certificate, framing a report, preparing a printable worksheet, or just making a document look more finished, borders are a simple touch that makes a big difference. Here is how to do it for free.
Method 1: Canva (Best for Custom Borders)
Canva gives you the most design flexibility for adding borders:
- Go to canva.com and create a free account.
- Upload your PDF: File > Import file or drag and drop.
- Click on the page you want to add a border to.
- Go to Elements in the left sidebar.
- Search for "border" or "frame."
- Choose a border style and drag it onto your page.
- Resize the border to fit the page edges.
- Adjust color, thickness, and style to match your document.
- Download as PDF: Share > Download > PDF Standard.
Canva works great for certificates, invitations, and creative documents where you want decorative borders.
Method 2: PDF Escape (Quick Online Editor)
- Go to pdfescape.com (free online version).
- Click Upload PDF to PDFescape and select your file.
- Click the Insert tab in the toolbar.
- Use the Rectangle tool to draw a border around the page.
- Right-click the rectangle and select Object Properties.
- Set fill to "No Color" and adjust the border width and color.
- Click the green checkmark to confirm.
- Download your PDF from the left sidebar menu.
This method adds a clean, simple border without any design flair. Good for professional documents.
Applying the Border to All Pages
PDFescape free version applies changes to one page at a time. For multi-page documents, you need to add the border rectangle on each page individually. If you have a 20-page document, consider the command line method below instead.
Method 3: LibreOffice Draw (Desktop, Free)
LibreOffice is a free office suite that can edit PDFs:
- Download LibreOffice from libreoffice.org (free, open source).
- Open LibreOffice Draw.
- Open your PDF: File > Open and select the PDF.
- Select all content on a page (Ctrl+A or Cmd+A).
- Go to Format > Page and set page margins to create border space.
- Use the rectangle tool to draw a border frame around the page.
- Right-click the rectangle, choose Area and set fill to none.
- Then choose Line and set your border color and thickness.
- Repeat for each page.
- Export as PDF: File > Export as PDF.
Method 4: Print Border (No PDF Editing Needed)
If you only need the border when printing, skip PDF editing entirely:
- Open your PDF in any viewer.
- Press Ctrl+P (or Cmd+P on Mac) to open print settings.
- Look for Page Setup or Properties.
- Find the border settings (varies by printer driver).
- Enable border printing.
- Print your document.
This only adds borders to the printed copy, not the digital file. But for many use cases, that is all you need.
Method 5: Python Script (Batch Processing)
If you need to add borders to many PDF pages at once, use Python:
from PyPDF2 import PdfReader, PdfWriter from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import letter import io reader = PdfReader("input.pdf") writer = PdfWriter() for page in reader.pages: w = page.mediabox.width h = page.mediabox.height packet = io.BytesIO() c = canvas.Canvas(packet, pagesize=(float(w), float(h))) c.setStrokeColor("black") c.setLineWidth(2) c.rect(20, 20, float(w) - 40, float(h) - 40) c.save() packet.seek(0) overlay = PdfReader(packet) page.merge_page(overlay.pages[0]) writer.add_page(page) with open("bordered.pdf", "wb") as f: writer.write(f)Install the required libraries with pip install pypdf2 reportlab. This script adds a clean 2-point black border with 20-point margins to every page in the PDF.
Types of PDF Borders
- Simple line border: A thin solid line around the page. Professional and clean.
- Double-line border: Two parallel lines. Common for certificates and formal documents.
- Decorative border: Ornamental designs, patterns, or themed graphics. Best created in Canva.
- Shaded border: A colored band around the edge without a hard line. Subtle and modern.
- Corner accents: Decorative elements only in the corners. Minimalist approach.
Border Width Recommendations
| Document Type | Border Width | Margin from Edge |
|---|---|---|
| Professional reports | 0.5 - 1 pt | 0.5 inch |
| Certificates | 2 - 3 pt | 0.75 inch |
| Worksheets | 1 - 2 pt | 0.5 inch |
| Invitations | 2 - 4 pt | 1 inch |
The Bottom Line
For a single decorative border, use Canva. For a quick simple border on one document, use PDF Escape. For batch processing many pages, use the Python script. And if you only need borders on the printed version, just adjust your printer settings.