The timeline includes print optimized styling through the print add-on. This needs to be added to the download package or installed separately from a dedicated NPM package.
Print styling is applied when someone prints the page that contains the timeline. In addition to that, you can call the print method on the instance which grabs only the markup of the timeline, places it onto a temporary page and calls the browsers printing function. This is especially useful when you want to add a button to only print the timeline rather than the whole page.
Besides printing, PDF export is possible through the print dialog of the browser.
Demo
By calling the print method, the timeline will open a new window and print its content.
var inst = $('#mytimeline').mobiscroll().eventcalendar({
modules: [mobiscroll.print],
view: {
timeline: {
type: 'week',
startDay: 1,
endDay: 5,
eventDisplay: 'fill'
}
}
}).mobiscroll('getInst');
$('#print-button').on('click', function () {
inst.print();
}); 
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
$(function () {
var inst = $('#demo-printing-the-view')
.mobiscroll()
.eventcalendar({
clickToCreate: ,
dragToCreate: ,
dragToMove: ,
dragToResize: ,
eventDelete: ,
modules: [mobiscroll.print],
view: {
timeline: {
type: 'week',
startDay: 1,
endDay: 5,
eventDisplay: 'fill',
},
},
resources: [
{
id: 1,
name: 'Flatiron Room',
color: '#fdf500',
},
{
id: 2,
name: 'The Capital City',
color: '#ff0101',
},
{
id: 3,
name: 'Heroes Square',
color: '#01adff',
},
{
id: 4,
name: 'Thunderdome',
color: '#ff4600',
},
{
id: 5,
name: 'King’s Landing',
color: '#239a21',
},
{
id: 6,
name: 'Gathering Field',
color: '#8f1ed6',
},
],
})
.mobiscroll('getInst');
$.getJSON(
'https://trial.mobiscroll.com/daily-weekly-events/?callback=?',
function (events) {
inst.setEvents(events);
},
'jsonp',
);
$('#print-button').on('click', function () {
inst.print();
});
});
<button id="print-button" mbsc-button>Print timeline</button>
<div id="demo-printing-the-view"></div>