protected void ShkarkoButton_Click(Object sender, EventArgs e)
        {
            ICreatePDF PDFkrijuesi = new CreatePDF(Server.MapPath("img") + "/ok.png", Server.MapPath("img") + "/not.png", Server.MapPath("img") + "/logo.png");
            var        ms          = new MemoryStream();
            string     filename;

            if (Session["culture"].ToString() == "en-US")
            {
                ms       = PDFkrijuesi.CreateReport((Dokument)Session["info"]);
                filename = "Verification report.pdf";
            }
            else
            {
                ms       = PDFkrijuesi.KrijoRaportin((Dokument)Session["info"]);
                filename = "Raporti i nenshkrimit.pdf";
            }

            byte[] bytes = ms.ToArray();
            Response.Buffer = true;
            Response.Clear();
            Response.ContentType = "application/pdf";
            Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename);
            Response.BinaryWrite(bytes);
            Response.End();
        }
        protected void ShkarkoButton_Click(Object sender, EventArgs e)
        {
            ICreatePDF PDFkrijuesi = new CreatePDF(Server.MapPath("img") + "/ok.png", Server.MapPath("img") + "/not.png", Server.MapPath("img") + "/logo.png");
            var ms = new MemoryStream();
            string filename;

            if (Session["culture"].ToString() == "en-US")
            {
                ms = PDFkrijuesi.CreateReport((Dokument)Session["info"]);
                filename = "Verification report.pdf";
            }
            else
            {
                ms = PDFkrijuesi.KrijoRaportin((Dokument)Session["info"]);
                filename = "Raporti i nenshkrimit.pdf";
            }

            byte[] bytes = ms.ToArray();
            Response.Buffer = true;
            Response.Clear();
            Response.ContentType = "application/pdf";
            Response.AppendHeader("Content-Disposition", "attachment; filename="+filename);
            Response.BinaryWrite(bytes);
            Response.End();
        }