Printing apparatus comprising: - at least one paper magazine; - at least one ticket inlet/outlet port arranged for enabling a user to insert and remove a ticket; - printing means arranged for printing on the paper that comes from said magazine and/or for printing on a ticket inserted into said port; - supplying means arranged for supplying said printing means with the paper that comes from said magazine; - at least one ticket housing zone not accessible by a user; - handling means arranged for withdrawing a ticket inserted into said port and/or for sending a ticket to said port, said handling means comprising ticket withdrawing means arranged for sending a ticket, inserted into said port, to said housing zone; - first sensor means arranged for reading a ticket inserted into said port and/or for reading a ticket printed by said printing means; - second sensor means arranged for detecting the presence and/or the absence of a ticket in said port; - control means arranged for controlling the operations of said printing means, of said supplying means and of said handling means and for receiving signals from said first and second sensor means; - a user interface connected to said control means; - an input/output interface connected to said control means; - at least one memory that is associated with said control means and contains at least one programme that comprises at least one instruction to activate at least one of said printing means, said supplying means, said handling means and said user interface in response to a given input signal received through said input/output interface; characterised in that said programme is a script comprising at least one instruction to activate said withdrawing means in response to a given signal emitted by said first or second sensor means, at least one instruction to send an outlet signal via said input/output interface in response to a given signal emitted by said first sensor means or by said second sensor means, and at least one instruction to activate said user interface in response to a given signal emitted by said first or second sensor means. - at least one paper magazine; - at least one ticket inlet/outlet port arranged for enabling a user to insert and remove a ticket; - printing means arranged for printing on the paper that comes from said magazine and/or for printing on a ticket inserted into said port; - supplying means arranged for supplying said printing means with the paper that comes from said magazine; - at least one ticket housing zone not accessible by a user; - handling means arranged for withdrawing a ticket inserted into said port and/or for sending a ticket to said port, said handling means comprising ticket withdrawing means arranged for sending a ticket, inserted into said port, to said housing zone; - first sensor means arranged for reading a ticket inserted into said port and/or for reading a ticket printed by said printing means; - second sensor means arranged for detecting the presence and/or the absence of a ticket in said port; - control means arranged for controlling the operations of said printing means, of said supplying means and of said handling means and for receiving signals from said first and second sensor means; - a user interface connected to said control means; - an input/output interface connected to said control means; - at least one memory that is associated with said control means and contains at least one programme that comprises at least one instruction to activate at least one of said printing means, said supplying means, said handling means and said user interface in response to a given input signal received through said input/output interface; <EOS>