Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

PDF export from split view keeps the interactive pane width

Open PathGao opened this issue 4 months ago • 1 comments

Reproduction

  1. Open a Markdown document in split view.
  2. Export it with the native Export as PDF command.
  3. Compare the resulting PDF with the same document exported from preview-only view.

Actual behavior

The viewer pane retains its inline interactive flex ratio while print CSS is active. The pane therefore occupies only the split-view fraction of the page even though the print rules set its width to 100%. Long documents become unnecessarily narrow and can create avoidable heading orphans.

Expected behavior

PDF export should use the full printable page width regardless of the interactive split ratio.

Scope

A minimal print-only rule can clear the viewer pane's flex value. It does not change the renderer, print dialog, persisted preview width, or normal split-view layout.

Validation

A macOS release bundle exported a 20-section fixture from split view to a three-page A4 PDF. The corrected layout used the full printable width and kept every heading with its following paragraph.

PathGao avatar Jul 31 '26 12:07 PathGao

Fixed by #329, which clears the interactive split-view flex constraint during printing so PDF export uses the full printable width. Closing.

PathGao avatar Aug 02 '26 08:08 PathGao