Cropping PDF Using Mouse

Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.

Moderator: Alex

Post Reply
tplambeck
Posts: 15
Joined: Wed May 08, 2019 7:09 pm

Cropping PDF Using Mouse

Post by tplambeck »

It's been a year since I've worked on this project. I need to crop PDF pages. I'm able to crop by defining a rectangle in the code. I cannot get the CropSelectionTool to work at all. I'm assuming that is the correct approach but can't get it to work using a menu item click. Any help appreciated!

Thanks - Todd
Alex
Site Admin
Posts: 1999
Joined: Thu Jul 10, 2008 2:21 pm

Re: Cropping PDF Using Mouse

Post by Alex »

Hello Todd,

Please do the following test:
  • Run VintaSoft PDF Editor Demo
  • Open PDF document
  • Click "Crop Selection" button in toolbar
  • Select rectangular region on PDF page
  • Click left mouse button on selected region and PDF page will be cropped
Please see source codes of VintaSoft PDF Editor Demo in installation of SDK "[SdkInstallPath]\VintaSoft\Imaging .NET v10.0\Examples\WinForms\CSharp\PdfEditorDemo\".

Best regards, Alexander
Post Reply