var organisme = {
			columns: [
				{   
					  width:90,
					  stack: [ {
					  		  image: 'logoOrganisme',
					  		  fit: [80,80]
					  }]
				},
					[
						{
							text: infoOrganisme.nom, 
							margin: [0,5]
						},
						{
							text: [
								infoOrganisme.adresse,
								'\nContact principal : ',
								{ text: infoOrganisme.url, link: infoOrganisme.url, color:'darkblue'},
								'\nContact biodiversité : ',
								{ text: infoSite.email, link:'mailto:'+infoSite.email, color:'darkblue'},
								' - ',
								{ text: infoSite.url, link:infoSite.url, color:'darkblue'}
								
							],
							fontSize:9,
							margin: [0,5]
						}
					]

			],
			margin: [0,0,0,10],
			columnGap: 10
		};

var siteOrganisme = {
	text: infoSite.nom,
	link: infoSite.url
};
var droitsSite = '(CC) BY-NC-NA 3.0 '+infoOrganisme.sigle;

   	   
// Document Footer (when text)
var docFooter =  function(currentPage, pageCount) { 
		var d = new Date();
		var datestring = ("0" + d.getDate()).slice(-2) + "/" + ("0"+(d.getMonth()+1)).slice(-2) + "/" + d.getFullYear();
		return [ {
				margin: [40,0],
				columns: [
					{
						text: [
							'Source: ',
							siteOrganisme ,
							' -  ',
							datestring
						],
						alignment: 'left',
						fontSize: 9,
						color: 'darkgrey'
					},
					{ 
						text: currentPage.toString() + ' / ' + pageCount, 
						alignment: 'center', 
						fontSize: 9,
						color: 'darkgrey'
					},
					{
						text: droitsSite,
						alignment: 'right',
						fontSize: 9,
						color: 'darkgrey'
					}
				]
		}]; 
	};
