🚀 The Premier AcrobatAlternative of 2026: Read why 4M pros switched to UPDF.Get Started Free

How to Draw a Line on a PDF: Straight or Freehand (Windows, Mac, iOS & Android)

Quick answer:

In UPDF, open Comment, pick the Line tool, then click and drag to draw a line. Use Line when the mark must stay geometrically straight and Pencil when the path should follow your pointer.

One distinction worth knowing first: a line you draw here is an annotation — it sits on its own layer above the page, so you can move, restyle, or delete it without touching the text underneath. That is not the same as underlining selectable text (an underline follows the text) and not the same as a scaled measurement line (which reports a real-world distance). For markup, review, and pointing, the annotation line below is what you want, on every platform.

Part 1. Choose the right way to draw a line

What you needUseBest forMain limitation
A precise straight lineComment > LineSeparators, callouts, diagrams, and pointing to exact areasNot suitable for curves or handwriting
A curved or irregular lineComment > PencilCircling details, sketching, and freehand marksHarder to keep perfectly straight
A pointer with directionComment > ArrowPointing from a comment to a specific objectDirectional, so distracting as a neutral divider
A quick line without installing an appBrowser-based PDF drawing toolAn occasional mark on a machine you can't install toFile must be uploaded; controls vary by service

Use the Line shape when alignment matters. Use Pencil when the path matters more than geometric precision. Neither is the same as underlining selectable text: an underline follows the text, while a line annotation can be placed anywhere on the page.

For the broader set of markup options beyond lines, see UPDF's complete guide to annotate PDF.

broader set of markup options beyond lines

Part 2. How to draw a straight line on a PDF with UPDF (Windows, Mac, iOS & Android)

UPDF's Comment workspace provides a dedicated Line shape for a straight mark, and the same tool is available on desktop and mobile — so a line you place on your laptop stays intact when you reopen the file on your phone.

Open the document in UPDF — if you don't have it yet, download UPDF for free and install it in under a minute — then follow the steps for your device.

Windows • macOS • iOS • Android 100% secure

On Windows and Mac

Step 1. Open the PDF in UPDF and click Comment in the top toolbar.

Step 2. Open Shapes and choose Line. Choose Arrow instead only when the mark needs to show direction.

Step 3. Click at the line's starting point, drag to the ending point, and release. Hold Shift while dragging to lock the line horizontal, vertical, or to 45°.

hold shift while dragging to lock the line to different angles

Step 4. With the line selected, use the object controls shown in your version to change its appearance, move it, or delete it.

If the line needs to separate two rows, mark a diagram, or point to one exact sentence, zoom in before dragging — the extra page detail makes it easier to place both endpoints precisely.

On iOS and Android

The UPDF mobile apps carry the same Comment toolset, so you can draw with a finger or stylus.

Step 1. Open the PDF in the UPDF app and tap the Draw icon.

Step 2. Choose Line and set color, thickness, and opacity.

Step 3. Drag your finger or stylus from the start point to the end point. Tap a finished line to move, restyle, or delete it.

draw a line on ios updf

A stylus on an iPad or Android tablet makes this feel close to ruling a line by hand on paper — useful for separating rows on a form or connecting a margin note to a clause before a call.

Best for:

  • review marks, form separators, diagrams, and straight callouts.

Not for:

  • a curved or handwritten mark — the Line shape stays geometric instead of following your pointer (use Pencil for that).

Download UPDF for free to try the Line tool on a copy of your document — installation is free, and Pro features are available when you need watermark-free export or advanced tools.

Windows • macOS • iOS • Android 100% secure

Part 3. How to draw a freehand or curved line

UPDF's Pencil tool creates a freehand stroke rather than a straight shape. Choose Pencil when you need a curved or irregular path.

Step 1. Open the PDF and select Comment. On mobile, tap the Comment icon.

Step 2. Choose Pencil.

Step 3. Set the Pencil color, thickness, and opacity for the mark you want.

Step 4. Drag across the page (or with your finger/stylus on mobile) to create the curve or freehand line.

draw a free hand or curved line

Step 5. If part of the stroke is wrong, choose Eraser and use partial or whole removal as appropriate.

erase part of the stroke updf

Choose Pencil settings that keep the mark visible without covering nearby text. For a ruler-straight divider, switch to the Line shape instead of trying to steady the Pencil manually. For a broad highlight across text, use the dedicated PDF highlighting workflow rather than forcing Pencil to act like a highlighter.

Best for:

  • curves, circles, handwriting, rough sketches, and irregular emphasis marks.

Not for:

  • a line that must stay perfectly straight or align exactly with a table, form field, or diagram edge.

Part 4. Draw a line online, or in Adobe — and when to use each

If you can't install software, a browser editor works on any device. If Adobe Acrobat is already on your machine, its commenting tools include a line option too.

Online (Smallpdf): open the Smallpdf editor, upload your PDF, open the shapes tool, and choose Line, or pick the pencil for freehand. Draw, then download.

draw a straight line with smallpdf

Adobe Acrobat: open the PDF, choose All tools > Add comments > Draw Freehand > Line. Click at the line's starting point, drag to the ending point, and release. Acrobat Pro runs about $19.99/month (~$239.88/year) with no lifetime license, so it's mainly worth it for users already inside the Adobe ecosystem.

draw a straight line with acrobat

Local app or online — how to choose:

Decision factorLocal desktop app (UPDF / Acrobat)Browser tool (Smallpdf)
Straight line tool
File handlingOpens the file locally; nothing uploaded to drawRequires uploading the PDF to a web service
Sensitive documentsAvoids uploading merely to draw a lineEvaluate the service's terms before uploading
Repeated workTools stay installed for many filesConvenient for occasional access
AccessRequires installationRequires a browser and internet

Download UPDF for free to draw straight and freehand lines on your own PDF — installation is free, and Pro features unlock when you need watermark-free export.

Windows • macOS • iOS • Android 100% secure

Part 5. Edge cases: when drawing or saving won't work

The line tool is greyed out, or nothing places. The PDF likely has a permissions password restricting annotation. You'll need the owner's authorization to unlock editing — only remove restrictions on files you have the right to edit. Request an editable copy rather than trying to bypass the restriction.

Dragging selects text or pans the page instead of drawing. The wrong tool is active. Return to Comment mode and choose Line (or Pencil for a curve).

The line won't select or move. If it was added as page content (drawn in an editor, or flattened on export) rather than as an annotation, it's baked into the page. Use the Edit tool to select it as a page object, or redraw it as an annotation.

The lines disappeared when opened elsewhere. Some viewers hide annotation layers by default, or the file was exported without comments. Re-export with annotations included, or flatten the lines into the page if they must show in every viewer (flattening makes them permanent).

Note: A line annotation is not a measurement line

A drawn line communicates emphasis or direction. A measurement line represents a scaled value and depends on a known ratio, units, and calibration. Before marking a floor plan, engineering drawing, or map, check: does the PDF include a known scale, can the workflow calibrate it, are the right units selected, and will the result report a numeric distance? If not, the mark is only a visual annotation — don't treat the Line shape's on-screen length as a verified real-world measurement.

Part 6. FAQ

1. Can I draw a straight line on a PDF for free?

Yes. UPDF's Line tool draws straight lines for free; exporting adds a trial watermark until you upgrade. Smallpdf's free browser editor also has a Line shape tool, subject to file-size and daily-task limits.

2. Can I place an arrow instead of a plain line?

Yes. Choose Arrow under Shapes in UPDF when the mark needs to show direction.

3. Can I draw lines on a scanned PDF?

Yes. A drawn line is an annotation on top of the page, so it works on a scanned image the same as on digital text — no OCR needed just to draw. You'd only need OCR to select or search the underlying text.

Conclusion

To draw a line on a PDF cleanly, use the Line tool for a precise straight segment and Pencil for an irregular stroke — across Windows, Mac, iOS, and Android — then use the Eraser for unwanted Pencil marks. For scaled plans or diagrams, use a dedicated measurement workflow instead of a visual line. Keep a copy of the original before a large review pass, and test one straight line and one freehand mark to confirm the look you want.

For the full picture of highlighting, commenting, stamping, and drawing together, see our complete guide to annotate PDF.

Download UPDF for free to add straight and freehand line annotations to a copy of your PDF — installation is free, and Pro features are available when you need watermark-free export or advanced tools.

Windows • macOS • iOS • Android 100% secure

We use cookies to ensure you get the best experience on our website. Continued use of this website indicates your acceptance of our privacy policy.