Adding limitations to html and pdf