We add some text to the PDF so that we know how many pages we've
deleted. Finally we save the PDF.
[C#]
doc.FontSize = 500;
doc.Color.String = "255 0 0";
doc.TextStyle.HPos = 0.5;
doc.TextStyle.VPos = 0.3;
doc.AddText(theCount.ToString());
doc.Save(Server.MapPath("deletion.pdf"));
}
[Visual Basic]
doc.FontSize = 500
doc.Color.String = "255 0 0"
doc.TextStyle.HPos = 0.5
doc.TextStyle.VPos = 0.3
doc.AddText(theCount.ToString())
doc.Save(Server.MapPath("deletion.pdf"))
End Using
|