How to catch and modify a pdf, before browser gives it to download

I have the page. There is a button on that page, which has

click.delegate="savePdf()"

As I am writing the add-on/"Chrome Extention" and I cant get inside this function and I cant get the data from elsewhere besides that PDF. I am wondering if there is a way to get that PDF before it will be given to download with that "savePdf" function, so I could modify it and put some data inside it? Maybe you have some other Ideas, how to do that?

3 thoughts on “How to catch and modify a pdf, before browser gives it to download”

Leave a Comment