Pdf creation from mysql text and others pdf files

I have a Mysql database in which some users uploaded articles as text and pictures and others uploaded articles as pdf files. I want to create one big pdf files including all articles. I tried with r&os but it doesn’t have the ability to include pdf file in the ones created from mysql.