#248: HotCocoa Graphics - creates corrupt PDF files ----------------------------------------+----------------------------------- Reporter: dave.baldwin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: HotCocoa Graphics PDF ----------------------------------------+----------------------------------- The save method in canvas.rb needs a if @filetype == :pdf CGContextFlush(@ctx) # <<< benign but redundant CGPDFContextEndPage(@ctx) CGPDFContextClose(@ctx) # <<<< new return The GContextFlush(@ctx) is also unnecessary in the newpage method as well. Dave. -- Ticket URL: <http://www.macruby.org/trac/ticket/248> MacRuby <http://macruby.org/>