export_testing library

Test instruments for the export (plan 13, P-2): a reader of the PDF PdfDrawSink writes, shared by the render package's tests and the app's.

A separate library: nothing in lib/ imports it, so it never reaches the app's build.

Not API: a test instrument, outside semver; it may change in any release.

Classes

PdfContent
A test instrument: it reads the one page of a PDF back into page-space geometry (plan 13, P-2).
PdfContentFontInfo
What a font dictionary declares about its kind and its program, with every reference followed (ISO 32000-1, 9.6 to 9.9).
PdfContentMatrix
A PDF matrix [a b c d e f], row-vector convention (see PdfContent).
PdfContentOp
One operator and its operands, as written.
PdfContentPath
One path, with the graphics state in force when it was painted.
PdfContentSegment
A l segment (no controls) or a c/v/y cubic (two controls).
PdfContentState
The part of the graphics state the reader models.
PdfContentSubpath
One subpath: a start point and the segments after it, in page space.
PdfContentText
One TJ or Tj.
PdfRawName
A name, slash included: /Type.
PdfRawRef
An indirect reference N G R.
PdfRawStream
A stream object: its dictionary and its raw (still encoded) data.
PdfRawString
A string's bytes, from either the literal or the hex form.

Enums

PdfPaint
How a path was painted.

Typedefs

PdfInflate = List<int> Function(List<int> data)
Inflates a /FlateDecode stream (tests pass zlib.decode from dart:io). It is a callback so this library needs no dart:io.
PdfXY = ({double x, double y})
A point in page space (PDF user space at the page level, y up).