incorporate PdfWriter concept and basic queue workflow from NVRA, including test fixes