function pj = finish( pj )
%Finish Method to end a PrintJob at its current page.
%   Finish current page and close connection to device or file output is 
%   beeing spooled to. Proper way to end a print job.
%   
%   See also CANCEL

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $  $Date: 2000/06/01 02:54:05 $

pj.Active = 0;

%Tell internal driver
if feature('NewPrintAPI')
    err = hardcopy( pj, 'finish' )
end
