PdfDocumentController: throw Error instead of String.