|
|
Thanks! I had solved it another way that let me save it cropped as I rendered the pages. But I definately appreciate this code. I can use it too.
Thanks again!
|
|
|
You may use standard .Net image to crop already rendererd pages. Code: using (var originalImage = Image.FromFile(@"d:\0\9\page01.PNG"))
{
var rectangleForCrop = new Rectangle(50, 50, 350, 350);
using (var croppedImage = new Bitmap(rectangleForCrop.Width, rectangleForCrop.Height))
{
using (var g = Graphics.FromImage(croppedImage))
{
g.DrawImageUnscaledAndClipped(originalImage, rectangleForCrop);
}
croppedImage.Save(@"d:\0\9\page01_cropped.png", ImageFormat.Png);
}
}
Or you can render the desired page area to an image of any size. An example of similar task may be found here https://forum.patagames....functionality-as-Acrobat
|
|
|
I have no problems saving a pdf document to a series of imgages of the full page, but don't have any idea how to apply a crop to all pages and save the pages as images. Any examples you can offer would be helpful. I am using the trial version so if it can't be done in that, please let me know. Thanks for any help you can provide!
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close