[英]Get PDF page from SWF Offer Avis
If you click on http://www.foetex.dk/ugenstilbud/Pages/Zmags.aspx you can see there's a PDF logo, so you can download the offer Avis for the week. 如果您单击http://www.foetex.dk/ugenstilbud/Pages/Zmags.aspx,您会看到一个PDF徽标,因此您可以下载本周的优惠Avis。 I want to download that automatic, but i can't think of a way to do that, aslong as their site is in flash.
我想自动下载该文件,但只要他们的网站处于Flash中,我就想不出办法。
Please come with tips and tricks 请附带提示和技巧
Thank you in advance 先感谢您
WebClient wb = new WebClient();
var data = new NameValueCollection();
data["publicationID"] = "6dce3366"; //Netto ID
data["selectedPages"] = "all";
byte[] responsebytes = wb.UploadValues("http://viewer.zmags.com/services/DownloadPDF", "POST", data);
System.IO.File.WriteAllBytes(@"C:\Tilbudsavis.pdf", responsebytes);
This was the answer. 这就是答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.