Add base convertpdf code