Great question! This is something you could accomplish by writing a custom function to affect the defaultOnComplete behavior within our jQuery client libraries.
By writing a conditional that first parses the result URL and looks for those that end in .pdf, you could then prepend the url output to include the http://mysite.com/pdf-viewer/?file= structure.