Skip to content

Commit 354a730

Browse files
committed
Start to fill out section
1 parent 8fa9a2d commit 354a730

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

sections/printing/desktop-capturer.html

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,24 @@ <h3>The <code>desktopCapturer</code> module in Electron can be used to access an
1414

1515
<div class="demo">
1616
<div class="demo-wrapper">
17-
<button id="print-pdf-demo-toggle" class="js-container-target demo-toggle-button">Print to PDF
17+
<button id="print-pdf-demo-toggle" class="js-container-target demo-toggle-button">Take a Screenshot
1818
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux</div>
1919
</button>
2020
<div class="demo-box">
2121
<div class="demo-controls">
22-
<button class="demo-button" id="print-pdf">View Demo</button>
23-
<span class="demo-response" id="pdf-path"></span>
22+
<button class="demo-button" id="screen-shot">View Demo</button>
23+
<span class="demo-response" id="screenshot-path"></span>
2424
</div>
2525
<p>To demonstrate the print to PDF functionality, the demo button above will save this page as a PDF and, if you have a PDF viewer, open the file.</p>
2626
<p>In a real-world application you're more likely to add this to application menu, but for the purposes of the demo we've set it to the demo button.</p>
2727
<h5>Renderer Process</h5>
28-
<pre><code data-path="renderer-process/printing/pdf.js"></pre></code>
29-
<h5>Main Process</h5>
30-
<pre><code data-path="main-process/printing/pdf.js"></code></pre>
31-
32-
<div class="demo-protip">
33-
<h2>ProTip</h2>
34-
<strong>Use a print style sheet.</strong>
35-
<p>You can create a stylesheet targeting printing to optimize the look of what your users print. Below is the stylesheet used in this app, located in <code>assets/css/print.css</code>.</p>
36-
<pre><code data-path="assets/css/print.css"></code></pre>
37-
</div>
28+
<pre><code data-path="renderer-process/printing/desktop-capturer.js"></pre></code>
3829
</div>
3930
</div>
4031
</div>
4132

4233
<script type="text/javascript">
43-
require('./renderer-process/printing/pdf')
34+
require('./renderer-process/printing/desktop-capturer')
4435
</script>
4536

4637
</section>

0 commit comments

Comments
 (0)