This is nice to know but I wonder if you are just trying to collect text data. Would you really need to dump contents into a pdf file rather than just making a text file?
Posted Using LeoFinance Beta
In this example original files are in pdf which contain a lot of data. This text is extracted to do more work with the data to create more useful reports.