Finally we save the first four pages of the document in png format.
[C#]
for (int i = 1; i <= 4; i++) {
theDoc.PageNumber = i;
theDoc.Rect.String = theDoc.CropBox.String;
theDoc.Rendering.Save(Server.MapPath("shuttle_p"
+ i.ToString() +".png"));
}
[Visual Basic]
For i As Integer = 1 To 4
theDoc.PageNumber = i
theDoc.Rect.String = theDoc.CropBox.String
theDoc.Rendering.Save(Server.MapPath("shuttle_p"
+ i.ToString() + ".png"))
Next
|