Print middleware, allows to print private layers