Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8714355
test: replace timing-based guards with deterministic work counters (M1)
Oct 12, 2026
9dac35c
feat(pdf): CalGray/CalRGB/Lab color kernel and ICC fallback hardening…
Oct 12, 2026
6bed1dd
feat(pdf): Separation/DeviceN color spaces, FunctionType 4 and multi-…
Oct 12, 2026
fd3f9bc
feat(pdf): shading stitching hard stops, mesh LUT interpolation, Lab/…
Oct 12, 2026
2255879
fix(pdf): apply rectangle-union clips geometrically so coincident edg…
Oct 12, 2026
64b4ee3
fix(pptx): honor a non-placeholder shape's own lstStyle (master date/…
Oct 12, 2026
9228ff9
docs(pdf): correct shading ColorSpace sentence for calibrated/ICC/Sep…
Oct 12, 2026
19538b3
fix(pptx): skip EMF/WMF slide pictures instead of refusing the slide
Oct 12, 2026
6276205
fix(vsdx): resolve bare THEMEVAL() cells to the No Style values inste…
Oct 12, 2026
bdace6a
fix(vsdx): resolve bare themed Font to the theme minor Latin / No Sty…
Oct 12, 2026
f734811
docs(sysml2): describe themed-value resolution to No Style / theme mi…
Oct 12, 2026
fc8ef70
feat(vsdx): flatten PolylineTo/NURBSTo/SplineStart-SplineKnot rows an…
Oct 12, 2026
5c4c83f
feat(vsdx): report non-solid FillPattern degradation as vsdx-fill-pat…
Oct 12, 2026
5a26b27
fix(pdf): bound DeviceN image tint evaluation with memo cache and wor…
Oct 12, 2026
74ef4bf
fix(pptx): parent metafile tolerance requirement; report only slide-o…
Oct 12, 2026
71d4c85
docs: align PDF/VSDX design, verification, user guide and SysML2 mode…
Oct 12, 2026
948c365
fix(vsdx): validate spline cells, report invalid NURBS weights, honor…
Oct 12, 2026
c3a86e9
Remove proprietary names from docs, requirements and test comments
Oct 12, 2026
d029e96
Fix even-odd multi-edge cell over-ink; raise rect-union clip caps; ge…
Oct 12, 2026
8e33f02
Harden PolylineTo, NURBSTo and orphan SplineStart geometry rows
Oct 12, 2026
f12e937
Address review round: SVG effect-surface counter, orphan SplineKnot, …
Oct 12, 2026
9b559ad
Fix mesh function color-space conversion order; repair literal newlin…
Oct 12, 2026
d71e720
Reject fractional /Size, /FunctionType and /BitsPerSample in PDF samp…
Oct 12, 2026
6cf1832
Harden PDF color/function parsing, mesh component interpolation, SVG …
Oct 12, 2026
e2d8e36
Reject non-finite PostScript calculator results
Oct 12, 2026
ac1d521
Charge filter content buffer; report continuation rows before MoveTo
Oct 12, 2026
9c0148c
Scan feMergeNode and in2 inputs when charging SourceAlpha
Oct 13, 2026
c324e4f
Fix case-insensitive metafile content types and require SplineStart d…
Oct 13, 2026
93a627e
Validate stitching function Domain and Bounds
Oct 13, 2026
39f4b08
Validate stitching function output counts and Encode values
Oct 13, 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
15 changes: 15 additions & 0 deletions .cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,25 @@ language: en

# Project-specific technical terms and tool names
words:
- Hival
- Cmaps
- unthemed
- Unthemed
- subtables
- bilinearly
- stackalloc
- Lindbloom
- colorant
- colorants
- devicen
- ifelse
- idiv
- bitshift
- multilinear
- multilinearly
- amax
- bmin
- bmax
- prefilter
- prefiltered
- resampler
Expand Down
7 changes: 7 additions & 0 deletions .reviewmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ reviews:
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.GraphicsState.cs" # phase 2 unit source (graphics state)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.PathOps.cs" # phase 2 unit source (path ops)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Color.cs" # phase 3 unit source (device color)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.ColorKernel.cs" # CIE color kernel (CalGray/CalRGB/Lab)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Filters.cs" # phase 3 unit source (filter pipeline)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Filters.Lzw.cs" # phase 7 unit source (filters)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Filters.Ascii.cs" # phase 7 unit source (filters)
Expand All @@ -793,6 +794,7 @@ reviews:
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Fonts.ToUnicode.cs" # phase 10 unit source (ToUnicode CMap)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Encryption.cs" # encryption/decryption (RC4, AESV2, AESV3 R5/R6)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Functions.cs" # pattern phase 1 (sampled function)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Functions.PostScript.cs" # FunctionType 4 calculator
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Patterns.cs" # pattern phase (shared /Pattern dispatch)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Patterns.Shading.cs" # pattern phase (shading patterns)
- "src/DemaConsulting.CanvasNet.Pdf/PdfDocument.Patterns.Shading.Mesh.cs" # mesh shadings (types 4-7)
Expand All @@ -804,8 +806,13 @@ reviews:
- "src/DemaConsulting.CanvasNet.Pdf/NamespaceDoc.cs" # Pdf namespace documentation
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentTests.cs" # unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentMeshShadingTests.cs" # mesh shading unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentColorSpaceTests.cs" # calibrated color tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentTintTests.cs" # Separation/DeviceN/Type 4 tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentShadingFidelityTests.cs" # shading fidelity tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentJpxTests.cs" # JPXDecode/SMask unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentThinRuleInkTests.cs" # thin-rule ink unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentClipEdgeInkTests.cs" # clip-edge ink unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentThinBarInkTests.cs" # thin-bar ink unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentImageDownscaleTests.cs" # image downscale unit tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfDocumentImageColorConversionTests.cs" # image color tests
- "test/DemaConsulting.CanvasNet.Pdf.Tests/PdfImageResamplingTests.cs" # image resampling grid unit tests
Expand Down
34 changes: 23 additions & 11 deletions docs/design/canvas-net-pdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ and invisible (`Tr 3`) text-rendering modes and the clip modes (`Tr 4`-`7`) are
glyph under a clip mode fails closed); a
Form XObject's `/BBox` is never used to clip its content and its `/Group` (transparency group)
entry is never consulted, though the Form itself renders; `/ShadingType` values outside `2`-`7`
and `/FunctionType 4` (PostScript calculator) functions fail closed; the `sh` operator and general
and `/FunctionType` values other than `0`/`2`/`3`/`4` fail closed; the `sh` operator and general
path clipping (`W`/`W*`) are supported; no
`/Mask`/`/Matte` image masks or transparency groups (an explicit `/SMask` and JPEG 2000
alpha are applied); `CCITTFaxDecode` - Group 4 (T.6 MMR) only - is supported and `JPXDecode`
is decoded; `/Separation`/`/DeviceN`/`/CalGray`/`/Lab` color spaces remain unsupported and fail
closed; and an encrypted document using any security handler, crypt-filter method, `/V`/`/R`
is decoded; `/Separation`/`/DeviceN` color spaces are evaluated through their tint transform
(an alternate space that is `Pattern`/`Indexed`/`Separation`/`DeviceN` fails closed; ICC profile
data is still not applied); an encrypted document using any security handler, crypt-filter method, `/V`/`/R`
combination other than the ones listed above, or whose correct password is not supplied, fails
closed rather than being decrypted. These remain out of scope and are planned for later phases
(see Risk Control Measures below for the complete, currently-thrown `Feature` string taxonomy).
Expand Down Expand Up @@ -306,18 +307,26 @@ subject to its own documented, non-exception-raising limitation (the Form's `/BB
to clip its content and its `/Group` transparency-group entry is never consulted — the Form's
content simply paints unclipped). Phase 14 replaced the color-space model: `/CalRGB`, `/ICCBased`
(resolved via its `/N` or `/Alternate`, feature `"pdf-colorspace-ICCBased"` for an unsupported
shape), and `/Indexed` (a palette lookup over any supported base space) are all now supported,
narrowing the unsupported-color-space set to `Separation`/`DeviceN`/`CalGray`/`Lab` (feature
`"pdf-colorspace-{name}"`); the same phase introduced the `/Pattern` color space and `scn`/`SCN`
shape), and `/Indexed` (a palette lookup over any supported base space) are all now supported.
`/Separation` and `/DeviceN` were later resolved through their tint-transform function; an
alternate space of `Pattern`/`Indexed`/`Separation`/`DeviceN` fails closed with feature
`"pdf-colorspace-{name}-alternate"`. `/CalGray`, `/CalRGB` and `/Lab` are converted to sRGB through
a CIE XYZ kernel with Bradford adaptation (see `PdfDocument.ColorKernel.cs`); ICC profile data is
never applied, only `/N`/`/Alternate`; an image in a `/Lab` color space with an explicit `/Decode`
fails closed (feature `"pdf-image-lab-decode"`). An unrecognized or undeclared color-space name
fails closed with feature `"pdf-colorspace-{name}"`. The same phase introduced the `/Pattern`
color space and `scn`/`SCN`
pattern operands (an undeclared pattern name, feature `"pdf-pattern-not-declared"`; an
unsupported `/PatternType`, feature `"pdf-pattern-type-{n}"`; a malformed `/Pattern` array shape,
feature `"pdf-colorspace-Pattern"`), axial/radial shading patterns (an unsupported
`/ShadingType`, feature `"pdf-shading-type-{n}"`; an unsupported shading `/ColorSpace`, feature
`"pdf-shading-colorspace-{family}"`), tiling patterns (an oversized rendered tile, feature
`"pdf-pattern-tile-too-large"`), and a Function evaluator widened from `/FunctionType 0`
(sampled) alone to also resolve `/FunctionType 2` (exponential) and `/FunctionType 3`
(stitching); any other `/FunctionType` (including `4`, PostScript calculator) still fails closed
(feature `"pdf-functiontype-{n}"`), as does a multi-input `/FunctionType 0` function (feature
(stitching); any other `/FunctionType` (other than `4`, PostScript calculator, added with the tint-transform
support) fails closed
(feature `"pdf-functiontype-{n}"`), as does a multi-input `/FunctionType 0` function reaching the single-input
resolver (feature
`"pdf-function-multiinput"`) and an unsupported `/BitsPerSample` (feature
`"pdf-function-bitspersample-{n}"`). Phase 15 added `CCITTFaxDecode` (Group 4/T.6 MMR only) image
decoding: a non-negative `/K` (Group 3, feature `"pdf-ccittfax-group3"`), `/EndOfLine true`
Expand All @@ -335,15 +344,18 @@ crypt filter), `pdf-encrypted-r-{revision}`,
`pdf-encrypted-v-{version}`, `pdf-encrypted-password-required` (a `null` password when a
non-empty one is genuinely required), `pdf-encrypted-incorrect-password`,
`pdf-encrypted-password-non-ascii` (an R2-R4 password outside ASCII 0-127),
`pdf-colorspace-{name}` (`Separation`/`DeviceN`/`CalGray`/`Lab`), `pdf-colorspace-Pattern`,
`pdf-colorspace-{name}` (an unrecognized or undeclared color-space name), `pdf-colorspace-{name}-alternate`
(a `Separation`/`DeviceN` alternate of an unsupported family), `pdf-colorspace-Pattern-nested`, `pdf-image-lab-decode`,
`pdf-image-tint-budget`, `pdf-colorspace-Pattern`,
`pdf-colorspace-ICCBased`, `pdf-filter-{name}` (any unrecognized filter),
`pdf-tiff-predictor-bitdepth-{n}`, `pdf-image-bitdepth-{n}` (a depth other than 1/2/4/8/16, or a 16-bit `/Indexed` image),
`pdf-jpx-colorspace` (a JPX image of a channel count with no device color space without `/ColorSpace`),
`pdf-jpx-palette-colorspace` (a `/ColorSpace` override on JP2 data with its own palette),
`pdf-jpx-indexed-bit-depth` (an `/Indexed` space over non-8-bit JPX samples),
`pdf-jpx-smaskindata-indexed` (`/SMaskInData 2` over an `/Indexed` space),
`pdf-pattern-not-declared`,
`pdf-pattern-type-{n}`, `pdf-pattern-tile-too-large`, `pdf-shading-type-{n}`,
`pdf-pattern-not-declared`, `pdf-shading-not-declared`, `pdf-shading-mesh-too-many-vertices`,
`pdf-shading-mesh-too-many-patches`, `pdf-shading-mesh-too-complex`, `pdf-pattern-type-{n}`,
`pdf-pattern-tile-too-large`, `pdf-shading-type-{n}`,
`pdf-shading-colorspace-{family}`, `pdf-functiontype-{n}`, `pdf-function-multiinput`,
`pdf-function-bitspersample-{n}`, `pdf-font-subtype-{subtype}` (`MMType1` only),
`pdf-font-symbolic-not-embedded` (`Symbol`/`ZapfDingbats` descriptor flags without an embedded
Expand Down
Loading
Loading