Ejemplo n.º 1
0
 /// <summary>
 /// Checks for object equality.
 /// </summary>
 /// <param name="options">Options to check.</param>
 /// <returns>Whether the objects are equal or not.</returns>
 public bool Equals(PdfOptions options)
 => options != null &&
 Scale == options.Scale &&
 DisplayHeaderFooter == options.DisplayHeaderFooter &&
 HeaderTemplate == options.HeaderTemplate &&
 FooterTemplate == options.FooterTemplate &&
 PrintBackground == options.PrintBackground &&
 Landscape == options.Landscape &&
 PageRanges == options.PageRanges &&
 EqualityComparer <PaperFormat> .Default.Equals(Format, options.Format) &&
 EqualityComparer <object> .Default.Equals(Width, options.Width) &&
 EqualityComparer <object> .Default.Equals(Height, options.Height) &&
 EqualityComparer <MarginOptions> .Default.Equals(MarginOptions, options.MarginOptions) &&
 PreferCSSPageSize == options.PreferCSSPageSize;
Ejemplo n.º 2
0
 /// <inheritdoc />
 public Task <Stream> GetPdfStreamAsync(PdfOptions options) => throw new NotImplementedException();
Ejemplo n.º 3
0
 /// <inheritdoc />
 public Task <byte[]> GetPdfDataAsync(PdfOptions options) => throw new NotImplementedException();
Ejemplo n.º 4
0
 /// <inheritdoc />
 public Task GetPdfAsync(string file, PdfOptions options) => throw new NotImplementedException();