Skip to content
Quasar Tools Logo

Add Border to PDF

Frame any PDF page with a solid, dashed, or double border. Set exact width, inset margin, color, and opacity — then download your bordered PDF instantly. Runs 100% in your browser, no signup required.

0.5–72 pt. 1 inch = 72 pt.

Distance from page edge to border.

0 = sharp corners. Only applies to Solid style.

10%100%

Overrides the preset. Enter any hex value like #c0392b.

Approximate preview — exact rendering depends on PDF viewer

Upload a PDF above to get started.

Why Use Our Add Border to PDF Tool?

Three Border Styles

Choose between a clean solid border, a dashed border for a casual look, or a double border for a formal framing effect — each rendered directly in the PDF.

Full Color & Opacity Control

Pick from eight color presets or enter any custom hex value. Set opacity from 10% to 100% for subtle or bold borders that match your document design.

Precise Width, Margin & Radius

Configure border thickness in PDF points, set the inset margin from the page edge, and add rounded corners — all with exact numeric inputs.

Fully Local — No Server Upload

All border rendering runs 100% in your browser using pdf-lib. Your document never leaves your device and is never sent to any external server or cloud service.

Common Use Cases for Add Border to PDF

Certificates & Diplomas

Frame academic certificates, employee recognition awards, or training completion documents with a professional double or solid border for a polished presentation.

Portfolio & Design Proofs

Add a clean inset border to PDF portfolio pages or design proofs to define the content area and create a print-ready look before sending to clients.

Legal & Official Documents

Apply a formal border to contracts, affidavits, or official correspondence to visually distinguish them from internal drafts and reinforce their authority.

Financial Reports & Statements

Frame annual reports, balance sheets, or investor presentations with a subtle border to give them a structured, branded appearance.

Educational Worksheets

Add a border to classroom handouts, worksheets, or study guides to visually separate the content area and give printed materials a clean, professional look.

Print Production Prep

Add a visible border as a visual bleed indicator or page-boundary marker before sending PDF files to a print shop or bureau.

Understanding PDF Border Addition

What Is a PDF Border?

A PDF border is a rectangular frame drawn directly onto the page content stream of each selected page. Unlike a CSS border or a Word document border — which are controlled by the application rendering the content — a PDF border is permanently embedded as a vector graphic element inside the PDF file itself. This means the border appears identically in every PDF viewer, print service, and device without any dependency on fonts, styles, or external resources. The add border to PDF tool draws this rectangle using pdf-lib's drawRectanglefunction, which renders directly into the page's graphic state.

How the Add Border to PDF Tool Works

  1. Upload your PDF — Drop your file into the upload zone. The tool reads the page dimensions locally without uploading to any server.
  2. Configure the border — Set the width, inset margin, style (solid, dashed, or double), color, and opacity. Use the live preview to visualise the result before processing.
  3. Apply and download— Click “Add Border to PDF”. The tool draws the border rectangle on each targeted page and triggers an immediate download of the bordered PDF.

Border Style Details

  • Solid — a single continuous rectangular stroke drawn at the specified width; supports a corner radius for rounded edges.
  • Dashed — simulated dashes along all four edges, each dash length proportional to the border width for a visually consistent gap pattern.
  • Double — two concentric rectangles: an outer stroke at full width and an inner stroke at half width, separated by a gap equal to the border width — the classic framing style used in certificates and formal documents.
  • Margin — the inset distance from the page edge to the border; use a larger margin to keep the border away from page content on all sides.

Privacy, Security & Availability

Every aspect of the add border to PDF process runs 100% locally in your browser using pdf-lib. Your document never leaves your device and is never uploaded to any server, stored in the cloud, or shared with any third party. This tool is completely free with no account required, no file size limits, and no signup needed.

Frequently Asked Questions About Add Border to PDF

PDF points are the standard unit: 1 inch = 72 pt. For a subtle frame, use 1–3 pt. For a medium border like you'd see on a certificate, 4–8 pt works well. Bold or decorative borders are typically 10–20 pt. The tool supports values from 0.5 to 72 pt.

The margin is the inset distance from the edge of the page to where the border is drawn. A margin of 20 pt means the border sits 20 pt inward from each page edge. Increase the margin to move the border away from any existing page content or to create a larger gap between the page trim and the frame.

The double border draws two concentric rectangular strokes: an outer stroke at your specified width and an inner stroke at approximately half the width, separated by a gap proportional to the border width. This is the classic style used for certificates, diplomas, and formal documents.

The dashed style is simulated using short filled rectangles along each edge (since pdf-lib does not natively support dashed stroke patterns), which means the corners are always square. The double style uses two separate rectangles which would require radius math for both. Corner radius is therefore only applied when using the clean solid border style.

Yes. Use the "Apply To" selector to target all pages, the first or last page only, odd or even pages, or a custom list. For custom, enter comma-separated page numbers or ranges like "1,3,5-10". Only the specified pages will have the border drawn on them.

No. All processing happens entirely in your browser using pdf-lib. Your document never leaves your device, is never uploaded to any server, and is never shared with any third party. Everything runs locally with zero network transmission.

Yes, completely free with no signup, no account, and no usage limits. Because all border rendering is done locally in your browser, there are no infrastructure costs — just upload, configure, and download.