I've got a PDF file on my server, and I want to use it as parameter for this function:
The problem is that the link used as a source redirects to another URL and I don't know the final URL.
It seems that setSourceFile needs the real PDF filename.
Is there a way to get the final URL, and then pass it as parameter?