General setup and indexing - pdf making