Select crop pages option

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Select crop pages option

Post by lidds »

Is there a way that I can automatically select the "Remove the content outside of the crop box area" checkbox, as shown below:
CropOption.png
Thanks

Simon
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8600
Joined: Wed Jan 03, 2018 6:52 pm

Re: Select crop pages option

Post by TrackerSupp-Daniel »

Hello Simon,

Like most settings in this dialog, it should be remembered after applying the crop function with this set. There is no way to force it to stay active at all times, but you should not need to manually change it after the first time if you do not disable it manually.

I hope this helps!
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Select crop pages option

Post by Sasha - Tracker Dev Team »

Hello Simon,

Please refer to this topic:
viewtopic.php?f=66&t=31033&p=124832&hil ... on#p124857
You will have to specify this flag (https://sdkhelp.pdf-xchange.com/vi ... es_Options):
512 (WithRedaction) removes content outside of the crop box area.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Select crop pages option

Post by lidds »

Alex,

Thank you for the advise. However I am using the "cmd.tool.cropPage" command and unfortunately this does not fire the e_operBeforeExecute event?

Is there another way?

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Select crop pages option

Post by Sasha - Tracker Dev Team »

Hello Simon,

Here's the topic that would prove useful:
viewtopic.php?f=66&t=30597&p=122214&hil ... og#p122214
After you have the IUIX_Dialog, you can get the "crop.Redaction" IUIX_Checkbox and do:

Code: Select all

dlg.CheckItem("crop.Redaction", 1);
Also, in the FullDemo application there is an Operations tab - there are few samples on how to work with operations and also how to show the operation's dialog before doing the operation itself.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply