Index: print_pdf/print_pdf.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/print/print_pdf/print_pdf.pages.inc,v
retrieving revision 1.3.2.60
diff -u -p -r1.3.2.60 print_pdf.pages.inc
--- print_pdf/print_pdf.pages.inc	11 Jan 2010 17:40:57 -0000	1.3.2.60
+++ print_pdf/print_pdf.pages.inc	7 Apr 2010 15:10:34 -0000
@@ -301,23 +301,14 @@ function _print_pdf_wkhtmltopdf($print, 
   }
 
   $descriptor = array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
-  $pdf_output = (stristr(PHP_OS, 'Win')) ? tempnam(file_directory_temp(), 'pdf') : '-';
-  $cmd = realpath($print_pdf_pdf_tool) ." --page-size $print_pdf_paper_size --orientation $print_pdf_page_orientation --dpi $dpi $print_pdf_wkhtmltopdf_options - $pdf_output";
+  $cmd = realpath($print_pdf_pdf_tool) ." --page-size $print_pdf_paper_size --orientation $print_pdf_page_orientation --dpi $dpi $print_pdf_wkhtmltopdf_options - -";
 
   $process = proc_open($cmd, $descriptor, $pipes, NULL, isset($xvfb_binary) ? array('DISPLAY' => ':'. $xdisplay) : NULL);
 
   if (is_resource($process)) {
     fwrite($pipes[0], $html);
     fclose($pipes[0]);
-
-    if (stristr(PHP_OS, 'Win')) {
-      // It seems Windows can't use the pipe properly so get the contents from a file and then delete it.
-      $pdf = file_get_contents($pdf_output);
-      unlink($pdf_output);
-    }
-    else {
-      $pdf = stream_get_contents($pipes[1]);
-    }
+    $pdf = stream_get_contents($pipes[1]);
     fclose($pipes[1]);
 
     stream_set_blocking($pipes[2], 0);
