Skip to content

Companion App

Make a change, see the result. Hot reload keeps the preview in sync, and every tool below is one key or one click away.

  • Version 2026.11.0
  • Works with QuestPDF 2024.10 and newer

Getting started

Preview your document

Replace GeneratePdf() with ShowInCompanion(). Instead of saving a file, QuestPDF opens the Companion App for you, connects to it and shows your document.

using QuestPDF.Companion;
using QuestPDF.Fluent;
using QuestPDF.Infrastructure;

QuestPDF.Settings.License = LicenseType.Evaluation;

Document.Create(container =>
{
    container.Page(page =>
    {
        page.Margin(50);
        page.Content().Text("Hello PDF!");
    });
})
.GeneratePdf("hello.pdf");
.ShowInCompanion();

Run with hot reload

Start your project with dotnet watch or your IDE's hot reload. Hot reload applies each code change to the running program without restarting it, and QuestPDF automatically updates the preview.

Run your project
dotnet watch
Run a chosen project
dotnet watch --project YourSampleProject
Run a unit test
dotnet watch --project YourProjectWithTests test --filter "YourClassWithTests.TestMethodName"

Keyboard and mouse shortcuts

Document hierarchy

Ctrl+B
Hide or show the hierarchy

Document preview

Drag
Move the preview
Scroll
Scroll vertically
Shift+Scroll
Scroll horizontally
Ctrl+Scroll
Zoom
Ctrl+E
Fit the page under the cursor on the screen

Content searching

Ctrl+F
Search by phrase
↑
Previous result
↓
Next result
Esc
Exit search

Element selection

Double-click
Select an element
↑
Previous occurrence
↓
Next occurrence
Esc
Clear the selection

Magnifier and measuring

1
Magnifier
2
Show coordinates
3
Measure vertically
4
Measure horizontally

Other

Alt+Click
Open a link
Ctrl+Click
Open the implementation in the code editor