pdf-generation prototype