public static void unprotectPdf(string input, string output) { bool passwordProtected = PdfDocument.IsPasswordProtected(input); if (passwordProtected) { string password = null; // retrieve the password somehow using (PdfDocument doc = new PdfDocument(input, password)) { // clear both passwords in order // to produce unprotected document doc.OwnerPassword = ""; doc.UserPassword = ""; doc.Save(output); } } else { // no decryption is required File.Copy(input, output, true); } }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง