<p dir="auto">electron-v0.30.4-linux-x64.zip<br>
Linux Mint 17.2</p>
<p dir="auto">Menus are twice (or larger?) the size they should be. This includes the context menu in dev tools which occupies a very large area but I wasn't able to capture a shot of it.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1071806/9347056/e7fd4d8c-45e1-11e5-92b3-d3f23d229140.png"><img src="https://cloud.githubusercontent.com/assets/1071806/9347056/e7fd4d8c-45e1-11e5-92b3-d3f23d229140.png" alt="2015-08-18-19-43-27-483930021" style="max-width: 100%;"></a></p>
<p dir="auto">I know there's been a ton of discussion about high DPI support. I apologize if this bug is a duplicate.</p>
<p dir="auto">I am trying to convert my webpage to PDF using webContents.printToPDF. Most of the times its working fine but for <strong>pages containing iframe</strong> which I am using for youtube videos this method doesn't end at all. To update the electron version is impossible for my application. I tried to use webview in the place of iframe which was also not helping. Is there any way to fix this in the same version of electron.</p>
<p dir="auto">Electron version : 5.0.13<br>
OS: mac OS, Windows</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.printToPDF({
    printBackground: true,
    landscape: false,
    marginsType: 1,
    pageSize
    }, (error, data) =&gt; {
        console.log('Inside printToPDF callback')
        if(error) {
        showMessage(&quot;Unable to export PDF&quot;)
        return console.log(error.message);
        }
        fs.writeFile(filePath, data, (err) =&gt; {
        if (error) {
        showMessage(&quot;Unable to export PDF&quot;)
        return console.log(error.message);
        }
        console.log('Write PDF successfully!');
        showMessage(`PDF exported successfully !`);
    });
});"><pre class="notranslate"><code class="notranslate">win.webContents.printToPDF({
    printBackground: true,
    landscape: false,
    marginsType: 1,
    pageSize
    }, (error, data) =&gt; {
        console.log('Inside printToPDF callback')
        if(error) {
        showMessage("Unable to export PDF")
        return console.log(error.message);
        }
        fs.writeFile(filePath, data, (err) =&gt; {
        if (error) {
        showMessage("Unable to export PDF")
        return console.log(error.message);
        }
        console.log('Write PDF successfully!');
        showMessage(`PDF exported successfully !`);
    });
});
</code></pre></div>
<p dir="auto">For pages containing iframe, the log "Inside printToPDF callback" is never printed.</p>