This adds most of the content to the pdf file, but some issues with images still present themselves at times. Any text after an image is displayed over top of the image. :(