Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
simple fonts shipped in 2.3.2, and `docs/architecture.md` says the Layout track runs A to G.
Released CHANGELOG sections are unchanged.

- **Layout places every element through one loop, and a renderer can report where it landed
(#288).** The page-counting pass and the drawing pass used to be two copies of the same branching
(`CountPlaceRenderer` and `PlaceRenderer`). One routine now runs both, so the too-tall refusal,
the 50,000-continuation cap and every later placement rule exist once. This is an internal
change with no output change: the normalised bytes, the order and areas of every `Layout` call,
the exception types and messages, and the pages a caller-owned `PdfDocument` holds after a
caught `Render` exception are pinned by tests recorded on the commit before the change, and a
document without a running band still runs one pass. A running band still adds one counting
pass. New internals: `IPlacementSource`, which an internal renderer implements explicitly to
report a target and the box it was placed in (only headings report so far, and a heading split
across pages reports from the piece that holds its first line); `PaginationPlan`, built from
those reports; and `IPlanDependent`, a renderer whose text depends on the plan, resolved over
at most five counting runs before the drawing pass. No public renderer is such a dependent yet,
so no existing document reaches the five-run limit or the check that the drawing pass paginates
as the counting runs did. Removed with no effect on output: `DocumentRenderer.PendingBookmarks`
and the internal `BookmarkEntry`, which nothing wrote or read.

### Fixed

- **On .NET 10 an empty stream was written as `/FlateDecode` with no data (#640).** `PdfStream`
Expand Down
2 changes: 1 addition & 1 deletion src/VellumPdf.Layout/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ private static void TryDelete(string path)
}
}

private DocumentRenderer CreateRenderer()
internal DocumentRenderer CreateRenderer()
{
var renderer = new DocumentRenderer(_pdf, _pdf.DefaultPageSize, Margins)
{
Expand Down
13 changes: 0 additions & 13 deletions src/VellumPdf.Layout/Elements/BookmarkEntry.cs

This file was deleted.

Loading
Loading