use new PDFrenderer
use detect from pdf