Move DOI to the first path parameter, and make pdf type a path variable.