search for: tiff_data

Displaying 1 result from an estimated 1 matches for "tiff_data".

Did you mean: fifo_data
2007 Apr 25
5
Upload PDF / Save as tiff
...standard input, back to standard output # There are eight extra bytes received on the test file. IO.popen(''c:\program files\gs\gs8.56\bin\gswin32c.exe -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -sOutputFile=- -'', "wb+") do |pipe| pipe.write pdf_data pipe.close_write tiff_data = pipe.read open(''test1.tiff'', ''wb'') { |f| f.syswrite tiff_data } end Is it not possible to receive binary data correctly from the pipe? I''ve tested on both XP (ruby 1.8.4) and Linux (ruby 1.8.4). Thanks for any advice you can offer. Regards, Rich...