I'm trying to download through webclient a byte[]
of a PDF rendered in the page.
The problem i encounter is that the page above is not a direct page to the PDF, but a page which generates and render a PDF.
If I use my code:
WebClient labelDL = new WebClient();
// Récupération du fichier PDF
Content = labelDL.DownloadData(_labelSLSResponse.LabelUrl);
I get the byte[] im waiting for but it's the byte[] of the html content (which I dont even care).
How can I first render the url (like in a browser, but programmaticaly) and after it's generated then download the byte[] of the PDF which is rendered ?
Thanks in advance for your help, am stuck there...