Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Tom_Allen@adobeforums.com #1
Cropping from C#
Hi
I'm trying to remove the white margins around all pages on my document via the Acrobat 8.1 SDK and am struggling to workout exactly how to go about it (basically the same functionality if you do Document>Crop Pages>Remove White Margins).
My code works fine up to the point of cropping, but the document is created via a scanner and I don't know what the cropping rectangle would be. I'm guessing this can be found programmatically using the Media Box, but I have no clue how to do so.
Any help would be greatly appreciated!
Tom_Allen@adobeforums.com Guest
-
Where is the cropping tool?
Simple, stupid question: Does Acrobat 7 Standard have a cropping tool? Acrobat 4 did. Acrobat 5 did. Do I have to upgrade to Professional just to... -
Cropping
Gary, please review additional comments too. I'm not sure if my thinking is 100% here. If you are downloading images from the web, who knows what... -
Cropping!!!!
Okay, What tool do I use to crop the picture, so that I can get what I want. I have looked everywhere, and what are the procedures for making the... -
cropping problems
Sometimes when cropping an image, the dotted lines fail to keep up with the mouse, but lag behind so that the required rectangle cannot be achieved.... -
Precise Cropping
Use Image/Canvas Size and type your requirements numerically -
Leonard_Rosenthol@adobeforums.com #2
Re: Cropping from C#
There is no "box" in a PDF that represents the white margins. On a non-scanned PDF it can be figured out by finding the bounds of each actual object and then using some math. On a scan, it's MUCH MORE complex involving some interesting pixel logic.
You will need to do those things yourself and then set he CropBox via IAC. However IAC doesn't give you access to the objects of the page :(.
Leonard_Rosenthol@adobeforums.com Guest
-
Tom_Allen@adobeforums.com #3
Re: Cropping from C#
D'oh, I thought that might be the case.
I'm going to resist the temptation to send keystrokes to Acrobat just to use the built in function and might look to see if I can find a .Net library to do something for me...
Thanks for the help :)
Tom_Allen@adobeforums.com Guest



Reply With Quote

