# Position Text and Graphics on PDF Pages

Position Text and Graphics on PDF Pages on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**750**

Forks**87**

Open issues**8**

PowerShell Gallery downloads**5533821**

Release**v3.6.2**

Language: C# Updated: 2026-11-28

Documentation

Choose between flowing PDF text, positioned stamps, arbitrary page canvases, and imported page overlays with explicit coordinates.

A `PdfText` run belongs to normal document flow. It can change emphasis, color, font, baseline, and links, but it does not independently choose a starting coordinate. Fixed positioning is a page-level operation.

## Choose the positioning surface

- Use `PdfParagraph`, `PdfText`, and rich runs when content should reflow naturally.
- Use `Add-OfficePdfStamp -X -Y` for one positioned text or image stamp on an existing PDF.
- Use `Add-OfficePdfCanvas` for arbitrary text, rich text, images, shapes, drawings, or tables at page-aware coordinates.
- Use `Add-OfficePdfPageOverlay` to place an imported PDF page in a target rectangle, optionally as an underlay.

## Draw rich text at a coordinate

Canvas coordinates use PDF points from the visual top-left of the page. The callback runs once per selected page. `PdfCanvasText` accepts the same visual `TextRun`, hashtable, and object shapes as the flowing rich-text commands. Link targets are excluded because canvas text is painted at a fixed position; use flowing `PdfText` when the text must be clickable.

```powershell
Add-OfficePdfCanvas -Path '.\Report.pdf' -OutputPath '.\Positioned.pdf' -Content {
    PdfCanvasText -Run @(
        TextRun 'Owner: ' -Bold
        TextRun 'Platform' -Color '#0F766E'
        TextRun '  |  REVIEW COPY' -Italic
    ) -X 36 -Y 24 -FontSize 10
}
```

The active page supplies the default text box, from `X/Y` to the remaining page edges. Add `-Width` and `-Height` only when the text must stay inside an exact rectangle. No native canvas object or typed .NET array is needed.

The [positioned-canvas recipe](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Pdf/Recipe-Pdf-PositionedCanvas.ps1) adds rich text at two fixed positions on every page of a two-page document.

This coordinate system differs from lower-level PDF editing and redaction APIs that expose native bottom-left PDF coordinates. Follow the coordinate contract documented by the command being used rather than mixing values between surfaces.

<!-- PowerForge markdown artifact sha256:F314BD1D6D22ABC11D61EA67D2BDF9FCB93D3D61A8522B19377AC8F7D0B95D1F -->
