public ParsingResult(RawDocument document, ParsingRequest request, ParsingType?processedAs)
 {
     Document    = document ?? throw new ArgumentNullException(nameof(document));
     Request     = request ?? throw new ArgumentNullException(nameof(request));
     ProcessedAs = processedAs;
 }
 public static ParsingResult ConstructError(ParsingRequest request)
 {
     return(new ParsingResult(new RawDocument {
         Pages = new RawPage[0]
     }, request, null));
 }