iTextSharp.text.ImgWMF.ReadWMF C# (CSharp) Метод

ReadWMF() публичный Метод

Reads the WMF into a template.
public ReadWMF ( PdfTemplate template ) : void
template iTextSharp.text.pdf.PdfTemplate the template to read to
Результат void
        public void ReadWMF(PdfTemplate template)
        {
            TemplateData = template;
            template.Width = this.Width;
            template.Height = this.Height;
            Stream istr = null;
            try {
                if (rawData == null){
                    WebRequest w = WebRequest.Create(url);
                    w.Credentials = CredentialCache.DefaultCredentials;
                    istr = w.GetResponse().GetResponseStream();
                }
                else{
                    istr = new MemoryStream(rawData);
                }
                MetaDo meta = new MetaDo(istr, template);
                meta.ReadAll();
            }
            finally {
                if (istr != null) {
                    istr.Close();
                }
            }
        }