Documentation of newpage


Global Index (short | long) | Local contents | Local Index (short | long)


Function Synopsis

pj = newpage( pj )

Help text

NEWPAGE Method to finish the current page of a PrintJob and start next.
   Depending on current driver being used, may cause current page
   from being ejected from output device.

   Ex:
      pj = NEWPAGE( pj ); %modfies PrintJob object state

   See also RENDER, FINISH, CANCEL.

Cross-Reference Information

This function calls This function is called by

Listing of function newpage

function pj = newpage( pj )

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

if ~pj.Active
   error('PrintJob is not active')
end

pj.PageNumber = pj.PageNumber + 1;

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