Updating links, building html content from pdfs