You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ await page.GoToAsync("http://www.google.com"); // In case of fonts being loaded
90
90
awaitpage.EvaluateExpressionHandleAsync("document.fonts.ready"); // Wait for fonts to be loaded. Omitting this might result in no text rendered in pdf.
91
91
awaitpage.PdfAsync(outputFile);
92
92
```
93
-
<sup><ahref='https://github.com/hardkoded/puppeteer-sharp/blob/master/lib/PuppeteerSharp.Tests/PageTests/PdfTests.cs#L27-L37'title='Snippet source file'>snippet source</a> | <ahref='#snippet-pdfasync'title='Start of snippet'>anchor</a></sup>
93
+
<sup><ahref='https://github.com/hardkoded/puppeteer-sharp/blob/master/lib/PuppeteerSharp.Tests/PageTests/PdfTests.cs#L23-L33'title='Snippet source file'>snippet source</a> | <ahref='#snippet-pdfasync'title='Start of snippet'>anchor</a></sup>
Copy file name to clipboardExpand all lines: lib/PuppeteerSharp/PdfOptions.cs
+9-58Lines changed: 9 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ namespace PuppeteerSharp
7
7
/// <summary>
8
8
/// Options to be used in <see cref="IPage.PdfAsync(string, PdfOptions)"/>, <see cref="IPage.PdfStreamAsync(PdfOptions)"/> and <see cref="IPage.PdfDataAsync(PdfOptions)"/>.
9
9
/// </summary>
10
-
publicclassPdfOptions:IEquatable<PdfOptions>
10
+
publicrecordPdfOptions
11
11
{
12
12
/// <summary>
13
13
/// Initializes a new instance of the <see cref="PuppeteerSharp.PdfOptions"/> class.
@@ -97,62 +97,13 @@ public PdfOptions()
97
97
/// </summary>
98
98
publicboolTagged{get;set;}
99
99
100
-
/// <summary>Overriding == operator for <see cref="PdfOptions"/>.</summary>
101
-
/// <param name="left">the value to compare against <paramref name="right" />.</param>
102
-
/// <param name="right">the value to compare against <paramref name="left" />.</param>
103
-
/// <returns><c>true</c> if the two instances are equal to the same value.</returns>
0 commit comments