SSRS2's PDF reader (this folder, namespace SSRS2.Pdf)

This folder holds the code of PdfPig 0.1.10 (https://github.com/UglyToad/PdfPig, commit
d36e9a900f841438d0b43b895f52927f396131c2), by UglyToad and the PdfPig contributors, licensed under the Apache
License, Version 2.0 (LICENSE in this folder, which also holds Adobe's licence for the CMap and glyph list data).

SSRS2 changed these files (each says so in its first lines), on 2026-10-15 and after:
- the namespace UglyToad.PdfPig is SSRS2.Pdf, and every type is internal;
- the projects' Globals.cs and AssemblyInfo.cs, the polyfills for .NET Framework and .NET Standard, and a second
  copy of a string helper are left out; the files of PdfPig's Core, Tokens, Tokenization and Fonts projects say
  "#nullable disable", as those projects compiled without nullable annotations;
- ReflectionGraphicsStateOperationFactory finds the operations without operands by their type, not by reading a
  field by its name, and takes an operation's constructors in the order they are declared;
- the data files are embedded under SSRS2.Pdf names (Resources/, Fonts/Resources/), the names the code looks for;
- CMYK colors and pictures convert to RGB by pdf.js 3.11's fit of the U.S. Web Coated (SWOP) profile (src/core/
  colorspace.js, Mozilla Foundation, Apache License 2.0), black alone a gray (CMYKColor.ToRgb), as viewers show them;
- a barcode font's letters keep their glyph outlines on the page (Letter.Outline, ContentStreamProcessor.RenderGlyph);
- each letter keeps its glyph's outline in ems, read once per font and code, unless the font's program restricts its
  embedding (OS/2 fsType 2) (Letter.Glyph, ContentStreamProcessor.Glyph; the TrueType fonts' Program);
- the annotations' appearances are drawn after the page's content, each fitted to its rectangle (PDF 32000-1, 12.5.5):
  widgets, free text, stamps, ink, shapes, lines, text markups and watermarks, not those flagged hidden or not to be
  viewed (PageFactory.Appearances, ContentStreamProcessor.DrawAppearance).
Later changes are in the SSRS2 repository's history of this folder.

Parts of PdfPig carry their own notices, kept in their files:
- Parts of PdfPig are ported from Apache PDFBox (https://pdfbox.apache.org), Apache License, Version 2.0:
  Apache PDFBox, Copyright The Apache Software Foundation. This product includes software developed at The Apache
  Software Foundation (http://www.apache.org/).
- Geometry/ClipperLibrary: Clipper, Copyright Angus Johnson 2010-2017, Boost Software License, Version 1.0 (the
  licence in each file).
- Fonts/Resources/AdobeFontMetrics: the Adobe Core 14 font metrics, on Adobe's terms in MustRead.html beside them
  (embedded with them in the assembly).
- Resources/CMap and Fonts/Resources/GlyphList: Adobe's CMaps and glyph lists, Copyright Adobe Systems
  Incorporated, BSD 3-Clause licence (in each file and at the end of LICENSE).
- Resources/ICC/sRGB2014.icc: the sRGB profile, Copyright International Color Consortium, 2015, which the ICC makes
  available to copy, distribute and embed without restriction (unaltered here).

Jpx/ (namespace SSRS2.Pdf.Jpx): the JPEG 2000 decoder of pdf.js 3.11.174 (https://github.com/mozilla/pdf.js,
src/core/jpx.js and src/core/arithmetic_decoder.js), Copyright 2012 Mozilla Foundation, licensed under the Apache
License, Version 2.0 (LICENSE in this folder). Ported to C# by SSRS2 on 2026-10-16 and extended where pdf.js 3.11
decoded wrongly or not at all (each file says so in its first lines): per component coding styles (COC), the
code-block styles (arithmetic coding bypass, termination on each pass, vertically causal contexts), progression
changes (POC) and the progressions' positions as the standard steps through them, regions of interest (RGN), packed
packet headers (PPM, PPT), components sampled apart, resolutions and tiles starting on odd coordinates, the JP2
file's colors (sYCC, channel definitions, palettes), samples of more than 8 bits rounded, and bounds for hostile
files. The progressions' positions and the bypass's raw segments are read as OpenJPEG reads them
(https://github.com/uclouvain/openjpeg, BSD 2-Clause licence), written here from the standard.
