protected void Button1_Click(object sender, EventArgs e)
{
var doc1 = new Document();
string path = Server.MapPath("PDFs");
PdfWriter.GetInstance(doc1, new FileStream(path + "AIA2.pdf", FileMode.Create));
doc1.Open();
doc1.Add(new Paragraph("My first PDF"));
doc1.Close();
}
我的任务是将pdf文件转换为web内容,之后用户可以突出显示pdf文件中的任何内容作为摘要,但我作为第一部分失败,我未能将我的pdf文件显示为web内容,作为开始我的错误是路径错误,这是找不到位置,但在我编辑我的路径后,它没有任何错误和结果