seems to be same problem as here: https://github.com/electron/electron/issues/4906

It happens on windows 10 with electron version 1.6.1.
When I downgrade to 1.4.15 it works.
chromium_src/chrome/browser/printing/print_view_manager_base.cc
if (metafile_must_be_valid) {
    if (!metafile->InitFromData(shared_buf.memory(), params.data_size)) {
      NOTREACHED() << "Invalid metafile header";
      web_contents()->Stop();
      return;
    }
  }
#if !defined(OS_WIN)
  
  document->SetPage(params.page_number,
                    std::move(metafile),
                    params.page_size,
                    params.content_area);
  ShouldQuitFromInnerMessageLoop();
#else
  if (metafile_must_be_valid) {
    bool print_text_with_gdi =
        document->settings().print_text_with_gdi() &&
        !document->settings().printer_is_xps();
    scoped_refptr<base::RefCountedBytes> bytes = new base::RefCountedBytes(
        reinterpret_cast<const unsigned char*>(shared_buf.memory()),
        params.data_size);
    document->DebugDumpData(bytes.get(), FILE_PATH_LITERAL(".pdf"));
    print_job_->StartPdfToEmfConversion(
        bytes, params.page_size, params.content_area,
        print_text_with_gdi);
  }
#endif  
}
void PrintViewManagerBase::OnPrintingFailed(int cookie) {