Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
515200f
fix(layout): keep list text when the indent leaves it no width
Tim81 Nov 22, 2026
d08097a
fix(layout): place a list unclamped when the clamp would pass the con…
Tim81 Nov 22, 2026
01140dc
fix(layout): keep the refusal of a clamped entry whose marker has no …
Tim81 Nov 22, 2026
8dfea40
docs(layout): say what the list indent clamp keeps, draws and reports
Tim81 Nov 22, 2026
59a984f
refactor(layout): drop the clamp's dead Math.Max, rewrap comments, na…
Tim81 Nov 22, 2026
185d066
docs(layout): correct what a flat list's indent can be refused for
Tim81 Nov 22, 2026
86fa094
test(layout): pin that an entry with no text counts as a unit of the …
Tim81 Nov 22, 2026
25a9ebb
test(layout): pin the probe's cursor restore and its cache key
Tim81 Nov 22, 2026
524e8a9
test(layout): make the probe's page-index restore observable through …
Tim81 Nov 22, 2026
1bb2865
Merge remote-tracking branch 'origin/main' into feat/list-indent-clamp
Tim81 Nov 22, 2026
cf6e9db
fix(layout): place a list entry only when its marker and text both pl…
Tim81 Nov 22, 2026
0f198ea
test(layout): pin that a marker with some of its lines moves, and tha…
Tim81 Nov 22, 2026
ecc5ff7
docs(layout): state the list placement rule once and fix the sentence…
Tim81 Nov 22, 2026
788979e
Merge origin/main into feat/list-indent-clamp
Tim81 Nov 22, 2026
151c947
fix(layout): lay a list out the new way only where the document addre…
Tim81 Nov 22, 2026
0fdd866
test(layout): pin the anchors and the wrapping marker of a list no pa…
Tim81 Nov 22, 2026
1fe2dab
fix(layout): keep an entry's place when the list tried it on an empty…
Tim81 Nov 22, 2026
59e7180
test(layout): make the nested clamp row use a font that measures
Tim81 Nov 22, 2026
e8148c4
docs(layout): rewrite the list entries of the changelog for the adopt…
Tim81 Nov 22, 2026
7c4b6c9
docs(layout): wrap the list comments that ran past 100 columns
Tim81 Nov 22, 2026
dd74a17
fix(layout): lay every list out as its twin when a document holds a f…
Tim81 Nov 22, 2026
e9a3a65
test(layout): pin the document-wide font rule, and stop measuring a p…
Tim81 Nov 22, 2026
b0dd177
fix(layout): make the extra layout leave nothing behind, and drop the…
Tim81 Nov 22, 2026
51c2f45
docs(layout): wrap the font rule test comments that ran past 100 columns
Tim81 Nov 22, 2026
4246146
fix(layout): lay lists out as their twins in the pass that looks for …
Tim81 Nov 22, 2026
b41878d
docs(layout): wrap the generation comment that ran past 100 columns
Tim81 Nov 22, 2026
1063bcc
docs(layout): name the font rule on Document.Diagnostics
Tim81 Nov 22, 2026
0ea13f7
fix(layout): carry the generation into the pieces of a list
Tim81 Nov 22, 2026
8a76731
docs(layout): wrap the build-count test comment
Tim81 Nov 22, 2026
45e8fb7
docs: state the font rule and the text it moves in the changelog
Tim81 Nov 22, 2026
f527ea8
fix(layout): keep every list as its twin ahead of an element near the…
Tim81 Nov 23, 2026
7b92055
fix(layout): read a table cell with no text as empty before the layout
Tim81 Nov 23, 2026
d5b3921
docs(layout): state the document-wide list rules once, with their bou…
Tim81 Nov 23, 2026
053befb
test(layout): pin that a list child and an empty entry count toward t…
Tim81 Nov 23, 2026
3d1449a
test(layout): pin the table row count, the release of the extra pass'…
Tim81 Nov 23, 2026
2350697
test(layout): keep PlaceLoop out of line so the depth probes can coun…
Tim81 Nov 22, 2026
af6bfed
fix(layout): count a preformatted tab as its width in the near-limit …
Tim81 Nov 23, 2026
8c29844
fix(layout): keep the entries an earlier layout built, in any document
Tim81 Nov 23, 2026
2e23e6e
docs(layout): state the near-limit count for tabs and when the extra …
Tim81 Nov 23, 2026
5e02738
test(layout): pin that a font the document cannot draw is asked about…
Tim81 Nov 23, 2026
f52659e
test(layout): pin that a reused list keeps the gutter the first width…
Tim81 Nov 23, 2026
f3dc53f
fix(layout): keep the marker of an entry the clamp narrowed when the …
Tim81 Nov 23, 2026
4f5358f
style(layout): wrap a test comment at 100 columns
Tim81 Nov 23, 2026
a6c791b
style(layout): wrap four test comment lines at 100 columns
Tim81 Nov 23, 2026
20044ce
style(layout): write the tab in the near-limit bound as an escape
Tim81 Nov 23, 2026
f76af83
docs(layout): say what the depth probe's comment measured on main
Tim81 Nov 23, 2026
2535ea5
fix(layout): keep a reused list's earlier entries whole after the lis…
Tim81 Nov 23, 2026
200fbee
fix(layout): make the Standard 14 answer memo of a list run thread-safe
Tim81 Nov 23, 2026
a0d03c7
test(layout): pin what a reused list keeps and reports
Tim81 Nov 23, 2026
ef74ec7
test(layout): offer the narrowed entry a line its text fits and its m…
Tim81 Nov 23, 2026
5ae0172
refactor(layout): count a reused entry's skipped clamp from the flag …
Tim81 Nov 23, 2026
d306700
style(layout): wrap comment lines added for the kept-entries rule at …
Tim81 Nov 23, 2026
3dce8f4
Merge main (#679) into the list fixes
Tim81 Nov 23, 2026
8520492
fix(layout): a held list takes the entries its own placement built, a…
Tim81 Nov 23, 2026
bc7ee0e
test(layout): bound a table's continuations with its line ends read
Tim81 Nov 23, 2026
cdae229
test(layout): the extra pass leaves a reused renderer's entries as it…
Tim81 Nov 23, 2026
46a8b1f
test(layout): pin the extra pass for a list a caller laid out before …
Tim81 Nov 23, 2026
2fe3e0e
fix(layout): a list a caller's renderer laid out first keeps those en…
Tim81 Nov 23, 2026
651c77e
test(layout): pin the twin entries of another save, a list no page ho…
Tim81 Nov 23, 2026
85e7353
fix(layout): the pieces of a held list stay held when the document ca…
Tim81 Nov 23, 2026
7c0d9f9
test(layout): pin the pieces of a held list that resume inside an entry
Tim81 Nov 23, 2026
239b2da
fix(layout): the 207 of a document-wide rule names the rule that applied
Tim81 Nov 23, 2026
9abade5
Merge main (#694) into the list fixes
Tim81 Nov 23, 2026
8d4d002
fix(layout): the fallback's 207 names every cause, in any order
Tim81 Nov 26, 2026
12fb126
fix(layout): a document that holds a renderer of yours lays every lis…
Tim81 Nov 26, 2026
f8b244e
fix(layout): the 207 names the causes the scan read, in every list alike
Tim81 Nov 26, 2026
604c70c
refactor(layout): drop the late undrawable-entry notes that only the …
Tim81 Nov 26, 2026
473e462
docs: the changelog states the renderer rule and the figures measured…
Tim81 Nov 26, 2026
565d449
test(layout): the 207 of a document without a renderer of the caller'…
Tim81 Nov 26, 2026
634c092
docs: the changelog states the list rules without measured figures
Tim81 Nov 26, 2026
0ad585c
docs(layout): say what StrictDiagnostics does to a list laid out as i…
Tim81 Nov 26, 2026
a7a67cf
docs(layout): point to ListIndentClampSkipped for which lists report it
Tim81 Nov 26, 2026
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
141 changes: 141 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,147 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Fixed

- **A list indent that leaves an entry no text width kept the marker and discarded the text
(#476).** `ParagraphRenderer` drops a paragraph whose width is zero or less, while the marker's
own paragraph has no margin, so a flat list whose `Indent` reached the list's area width saved as
a column of markers. A nested child lost its text from half that width, because the child gutter
is twice the indent, and nothing reported it. An entry whose gutter would leave its text no width
now gets one, so the text is drawn: the width of its widest word, or all the room right of its
marker's inset when the word is wider. The content starts at the area's right edge less that
width, and it can overprint the marker, which is never moved.
- **Deliberate output change**, only where the text width was zero or less: a flat list with an
`Indent` at or above the area width (positive infinity included), and a nested child whose
gutter is at or above it, which is an indent of half the area width or more. The item text is
now in the content stream. These keep their output: a width that is positive but short of the
widest word, so that a word is broken a glyph a line; an entry with no word that measures
wider than zero (white space only, font size 0, Symbol and ZapfDingbats), whose text is still
discarded; an entry with a run that holds text and has a non-finite font size or colour
channel, whose text is still discarded and which still saves, because a width would have made
the layout read that style and refuse it; and every entry of a list that is laid out as it was
before the clamp, which the #685 entry below lists. A nested list whose indent reaches the
area width still throws `InvalidOperationException`, with the same message.
- The clamp applies to a list the document lays out itself. A list that a renderer of yours lays
out through the context it was given, through `LayoutContext.WithArea` or through the public
`LayoutContext` constructor is laid out as it was: no gutter is narrowed and no entry moves
(#685), so the list itself saves, or is refused for the continuation limit, with the bytes and
the message it had. A list builds its entries at its first layout and keeps them, whole and at
the width that layout used, as it did. Where that layout was not the document's own call in this
save (you laid the list out before the save, another document did, or a renderer of yours that
holds the list did), the document lays the list out as it was, with those entries, and it
reports nothing unless it lays every list out as it was (below). That holds for a list changed
since: an item or a child added after that layout is not laid out or drawn.
`ListRenderer.Layout`, `IRenderer.Layout` and the `LayoutContext` constructor and
`WithArea` say so, with a "Do not rely on" paragraph: 3.0 lays a list out one way.
- An entry whose marker has no room at the top of a page is still refused: the save throws the
same "An element is too tall" `InvalidOperationException`. That entry fits no page, so its list
is placed as it was before (#685 below). The page-continuation limit is refused with its own
message, which begins "A single element needed more than 50000 page continuations".
- A list whose layout, with clamped text or with moved entries (see #685 below), would pass the
50,000 page continuations one element may take is placed as it was before both, so a list that
saved still saves, and a list refused at that limit is still refused with the same message.
A list of 50,000 units or fewer, the sum over its entries of the larger of one and the entry's
wrapped lines, cannot reach the limit and is not probed. A larger one is laid out twice without
drawing, as it was and as it is now, and the new layout is kept only where neither reaches the
limit. The new `LayoutDiagnosticCode.ListIndentClampSkipped` (207, severity `Error`) reports
it, with the number of entries the clamp would have narrowed as `Count`, or 1 when it would
have narrowed none. The text of the entries the clamp would have narrowed is not drawn. The
message of a 207 names every cause that applied: the continuation limit, or any of a renderer
of yours, a font the document cannot draw, and an element after a list that comes near the
limit.
- A new `LayoutDiagnosticCode.ListIndentClamped` (203, severity `Error`) reports a clamped list
once, with the number of clamped entries as `Count`. `StrictDiagnostics` refuses it, and the
default saves. A list is reported when the document draws it from its first entry; a
`ListRenderer` you build to start at a later entry clamps and reports nothing.
- `ListElement.Indent` carries a "Do not pass" paragraph for an indent that leaves an entry's text
no width: 3.0 will refuse it.

- **A list entry whose marker or text did not fit what was left of a page lost that part (#685).**
`ListRenderer` placed an entry when either its marker or its text was placed. An entry whose
marker fitted the rest of a page and whose text did not was drawn there with the text missing,
and one whose text fitted and whose marker did not was drawn with the marker missing, or with it
overprinting the line above; nothing reported either. An entry is now placed when both parts
are: otherwise it moves whole to the next page, as it already did when neither fitted, provided
a page of its own holds both. A marker that wrapped into more lines than the room left counts
as not placed. Text that has no width, which `ListElement.Indent` describes, is not a part that
did not fit.
- **Deliberate output change**, for a document with such an entry that is not at the top of a
page, and that holds no renderer of yours (below). The text that was missing is drawn, or the
same text is drawn at other positions. A moved entry also changes where a keep run ends and
what is drawn, so the `Count` or the items of an `UnembeddedFont` (601) report can change, and
a `KeepWithNextRelaxed` (801) or `KeepTogetherRelaxed` (802) report can appear or go.
- **A list that holds an entry no page holds is placed as it was before, whole.** An entry no
page holds is one whose marker has a line taller than a page, or whose text, at the width the
clamp of #476 would give it, has one. No entry of such a list is clamped or moved, so each is
where it fell and shows the lines that fit, and the new
`LayoutDiagnosticCode.ListEntryPartDropped` (208, severity `Error`) reports each of them, with
`Count` the number of such entries in the pieces drawn. `StrictDiagnostics` refuses it, and the
default saves. Other lists in the document keep both fixes.
- **Deliberate output change, text a list laid out as it was no longer shows after something
ahead of it moved.** A list laid out as it was before the clamp and the moving of entries
starts where the lists ahead of it, which keep both fixes, leave the cursor, and that can
differ from where it started. An entry it places at a page bottom then shows the lines its new
start allows, so a document can show fewer lines than before. It happens to a list that holds
an entry no page holds, which reports 208, and to a list the continuation limit sends back,
which reports 207. A document that holds a renderer of yours lays every list out as it was
(below), so no list ahead of one keeps the fixes.
- **Deliberate output change, a `ListRenderer` that serves a second document draws the placement
the first gave an entry.** A renderer reused for a second document keeps the entries it built
for the first (#476 above), and a paragraph draws the lines of its last layout when its layout
in the second document places nothing. 2.3.3 draws the first document's lines at that stale
position too, for an entry that fitted in the first document and does not in the second
(#691, which this change does not close). The first document now moves an entry that did not
fit what was left of a page, so the second draws the lines that placement gave it, where
2.3.3 drew only the part that fitted. A renderer you add to the document and a renderer
of yours also holds draws the first placement's lines at the second the same way, as 2.3.3
does.
- **A document that holds an entry in a font it cannot draw lays every list out as it was before
the clamp and the moving of entries.** A handle that another document returned, or a
`Standard14` value the enumeration does not name, makes the save throw where an entry's text or
marker is drawn, and 2.3.3 saved when that text fell where it did not fit and was dropped.
Clamping or moving an entry changes where everything after it falls, so a document could flip
from saving to throwing, or the reverse, without any list touching the entry. The rule is
therefore per document: when any list the document holds has such an entry, at any depth, no
list of the document is clamped or moved. Without `StrictDiagnostics` the save gives what it
gave before this change: the same bytes, or the same exception and message. With it, a 207
refuses the save. `ListIndentClampSkipped` (207) reports a list the document placed this way
and draws from its first entry, with the number of entries the clamp would have narrowed as
`Count`, or 1; its XML doc says which lists report nothing. `ListEntryPartDropped` (208)
reports an entry left with a part missing.
- **A document that holds a renderer of yours lays every list out as it was before the clamp
and the moving of entries.** That is any renderer that is not one of the library's own, added
with `Document.Add(IRenderer)` or `DocumentRenderer.Add(IRenderer)`, wherever it sits and
whether or not it holds a list. A `ListRenderer`, `ParagraphRenderer`, `TableRenderer` or
another renderer the library ships is its own, and so is the barcode renderer. The library
cannot read where such a renderer starts or what it lays out, and a list that moved ahead of it
can change whether the document saves, so the document decides once, from the elements added
to it and before it lays anything out. Every pass of one save, a header or footer's
page-counting pass included, therefore lays each list out the same way. Without
`StrictDiagnostics` these documents save as they did before this change: the same bytes, or
the same exception and message; with it, a 207 refuses the save. A renderer reused from a
first document that moved an entry still draws that placement (#691).
`ListIndentClampSkipped` (207) is reported as for the font (above), and names the renderer.
`ListRenderer.Layout` says so, with a "Do not rely on" sentence: 3.0 lays a list out one way.
- **A document with an element after a list that can need about as many page continuations as
the limit allows lays every list out as it was before the clamp and the moving of entries.**
An element that needs that many saves or is refused according to where it starts, and a moved
entry changes where, so a paragraph after such a list could be refused where 2.3.3 saved it,
or saved where 2.3.3 refused it. The document reads the element's size, and not its layout: a
paragraph, heading, table or list counts when its characters, with one for each table row and
each list item that holds none, come to 49,999 or more, and so does preformatted text, with
each tab counted as its `TabWidth` because a tab can become that many columns and lines. A
page break, an image, a separator and a chart never count. The same report applies as for the
font (above). A renderer of yours is not read for its size; it
makes the document lay every list out as it was (above).
- A list that a renderer of yours holds reports nothing: neither 207 nor 208, because the
document did not place it, and nor do its pieces, including a piece the document calls itself
when your renderer returns the list's own result. A list the document places over entries a
renderer of yours built first is held the same way, unless the document lays every list out as
it was (above), which reports it as any list the document places. The bytes are those of the
list laid out as it was.
- Moving entries adds pages, so the continuation bound now covers every list, not only a list
with a clamped entry, and a list that would pass the limit because of moved entries is placed
as it was before, with `ListIndentClampSkipped` (207).

- **An element exactly as tall as the content area is placed at the top of a page (#549).** At the
top of a page the document offered the height from the cursor to the bottom of the content area,
`(Y + H) - Y`, while the retry after a `Nothing` offered the content area's own height `H`. The
Expand Down
3 changes: 2 additions & 1 deletion src/VellumPdf.Barcodes/BarcodeRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using VellumPdf.Barcodes.Internal;
using VellumPdf.Document;
using VellumPdf.Layout.Core;
using VellumPdf.Layout.Rendering;

namespace VellumPdf.Barcodes;

Expand All @@ -12,7 +13,7 @@ namespace VellumPdf.Barcodes;
/// <see cref="DocumentBarcodeExtensions.Add"/>, or directly through the generic
/// <c>Document.Add(IRenderer)</c> overload.
/// </summary>
public sealed class BarcodeRenderer : IRenderer
public sealed class BarcodeRenderer : IRenderer, IListFreeRenderer
{
private readonly Barcode _barcode;
private LayoutBox _occupied;
Expand Down
12 changes: 12 additions & 0 deletions src/VellumPdf.Kernel/Document/PdfDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,18 @@ private void RefuseUndefinedForeignFonts()
}
}

/// <summary>
/// Whether a page that draws <paramref name="handle"/> passes the check
/// <see cref="RefuseUndefinedForeignFonts"/> makes at save: the handle is this document's own,
/// or this document defines a font under its resource name. It reads the same two tests, so a
/// caller that must know before it draws, without registering the usage, gets the save's
/// answer. Removed in 3.0 (#688) with the list's own check of what it can draw.
/// </summary>
internal bool CanDrawFont(EmbeddedFontHandle handle) =>
ReferenceEquals(handle.Owner, this)
|| OwnEmbeddingOf(handle) is not null
|| _embeddedFonts.Exists(f => f.ResourceName == handle.ResourceName);

// The same font program embedded here under the same resource name: the content stream names the
// foreign handle's resource, and this document's own embedding defines that name, so the glyphs
// the foreign embedder registered are added to this subset. Where the name is defined here for a
Expand Down
2 changes: 2 additions & 0 deletions src/VellumPdf.Layout/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("VellumPdf.Signing, PublicKey=0024000004800000140200000602000000240000525341310010000001000100f988869ac2abeba2cc200b481376afef9811d5801ae590a6ed2b1425350a618f076225d9d027f377bdc3301a7733718e10da17f7012963d4dc086672b8d61092faa1cf687546387e3a3681977cb1319a13d376558c02a4cb85cac9210d64fb245fdf35e394b938c92e0c48713835cba7a11e8e739fc965b78f9de64c321264149801a08b8bfe1c188c00f6192ed6a5502c99a094ad499b125dd3f1415935246f3a6c721c2eda2354e23ff44c071e3df14dcae09b2c02476a7a0ef9d6fb829b26c993e4d370515cf00bfabd00136a661cb0a49deb8284f352cb1c1dc23738b240c8787aff4adb681245ab790723685ba4c996cb69c89ed05f639ac6707fef5a142aac80934caaca46f5d533b9223c044c98b277d6afbcc3c7c8ceadeb524293fa269a3b050fbf2a0438de5c34ddbce231dc29e0e1326b13fd9e6ca11bd3a78915998eb52d809e728f9bf4c996c376a309a7576ad4e8fc7d28d1ec43465ca1171c3c60dac216a78d471bc73c6aeff0809eaa56a1613211149c37e88da1bdb467f7166506689b8de2c690b805c962538e03355190407252a394acecbf8e92135aed64dc7d8dff11faa5bee325a95da18ec5dca6f602c58e1b53ba3880facabac52facf96bc4af10d69871a05a34f49c08c8002f416f82ef33366850170c081066f1e7cb65e3479b971fa691a77f773d8adfaf9366a4783d83f9a511e6bd3db6f9be")]
// The barcode renderer marks itself as one of the library's own (IListFreeRenderer).
[assembly: InternalsVisibleTo("VellumPdf.Barcodes, PublicKey=0024000004800000140200000602000000240000525341310010000001000100f988869ac2abeba2cc200b481376afef9811d5801ae590a6ed2b1425350a618f076225d9d027f377bdc3301a7733718e10da17f7012963d4dc086672b8d61092faa1cf687546387e3a3681977cb1319a13d376558c02a4cb85cac9210d64fb245fdf35e394b938c92e0c48713835cba7a11e8e739fc965b78f9de64c321264149801a08b8bfe1c188c00f6192ed6a5502c99a094ad499b125dd3f1415935246f3a6c721c2eda2354e23ff44c071e3df14dcae09b2c02476a7a0ef9d6fb829b26c993e4d370515cf00bfabd00136a661cb0a49deb8284f352cb1c1dc23738b240c8787aff4adb681245ab790723685ba4c996cb69c89ed05f639ac6707fef5a142aac80934caaca46f5d533b9223c044c98b277d6afbcc3c7c8ceadeb524293fa269a3b050fbf2a0438de5c34ddbce231dc29e0e1326b13fd9e6ca11bd3a78915998eb52d809e728f9bf4c996c376a309a7576ad4e8fc7d28d1ec43465ca1171c3c60dac216a78d471bc73c6aeff0809eaa56a1613211149c37e88da1bdb467f7166506689b8de2c690b805c962538e03355190407252a394acecbf8e92135aed64dc7d8dff11faa5bee325a95da18ec5dca6f602c58e1b53ba3880facabac52facf96bc4af10d69871a05a34f49c08c8002f416f82ef33366850170c081066f1e7cb65e3479b971fa691a77f773d8adfaf9366a4783d83f9a511e6bd3db6f9be")]
// Layout.Tests reaches the buffer a save to a path builds the PDF in, so it can copy it in small chunks.
[assembly: InternalsVisibleTo("VellumPdf.Layout.Tests, PublicKey=0024000004800000140200000602000000240000525341310010000001000100f988869ac2abeba2cc200b481376afef9811d5801ae590a6ed2b1425350a618f076225d9d027f377bdc3301a7733718e10da17f7012963d4dc086672b8d61092faa1cf687546387e3a3681977cb1319a13d376558c02a4cb85cac9210d64fb245fdf35e394b938c92e0c48713835cba7a11e8e739fc965b78f9de64c321264149801a08b8bfe1c188c00f6192ed6a5502c99a094ad499b125dd3f1415935246f3a6c721c2eda2354e23ff44c071e3df14dcae09b2c02476a7a0ef9d6fb829b26c993e4d370515cf00bfabd00136a661cb0a49deb8284f352cb1c1dc23738b240c8787aff4adb681245ab790723685ba4c996cb69c89ed05f639ac6707fef5a142aac80934caaca46f5d533b9223c044c98b277d6afbcc3c7c8ceadeb524293fa269a3b050fbf2a0438de5c34ddbce231dc29e0e1326b13fd9e6ca11bd3a78915998eb52d809e728f9bf4c996c376a309a7576ad4e8fc7d28d1ec43465ca1171c3c60dac216a78d471bc73c6aeff0809eaa56a1613211149c37e88da1bdb467f7166506689b8de2c690b805c962538e03355190407252a394acecbf8e92135aed64dc7d8dff11faa5bee325a95da18ec5dca6f602c58e1b53ba3880facabac52facf96bc4af10d69871a05a34f49c08c8002f416f82ef33366850170c081066f1e7cb65e3479b971fa691a77f773d8adfaf9366a4783d83f9a511e6bd3db6f9be")]
15 changes: 15 additions & 0 deletions src/VellumPdf.Layout/Core/IRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ public interface IRenderer
/// reads every cell unbroken (#679); see
/// <see cref="VellumPdf.Layout.Elements.Table.Cell.Content"/>. Your <see cref="Draw"/> must
/// forward to the same renderer.</para>
/// <para><b>A <see cref="VellumPdf.Layout.Rendering.ListRenderer"/> that your renderer lays out
/// is laid out as it was before the fixes of #476 and #685.</b> Through the context you were
/// given, through <see cref="LayoutContext.WithArea"/> or through the public
/// <see cref="LayoutContext"/> constructor, it narrows no entry's gutter and moves no entry to
/// the next page, so the list saves, or is refused for the continuation limit, as it did. The
/// document applies those fixes only to a list it lays out itself, where it can see the limit.
/// <b>Do not</b> rely on where such a list lands: 3.0 lays a list out one way, whatever called
/// it.</para>
/// <para><b>A document that holds a renderer of yours lays every list out as it was before the
/// fixes above,</b> whether the list sits before it or after it. The document decides this
/// once, before it lays anything out, so a header or footer's page-counting pass and the pass
/// that draws agree, and those fixes do not change where your renderer starts. See
/// <see cref="VellumPdf.Layout.Rendering.ListRenderer.Layout"/> for which renderers count and
/// what is reported. <b>Do not</b> write a renderer whose result depends on anything but the
/// area it is offered.</para>
/// </remarks>
/// <exception cref="InvalidOperationException">
/// Raised from <see cref="VellumPdf.Layout.Document.Save(System.IO.Stream)"/> and the other
Expand Down
Loading
Loading