Icon for Image Deskew  SOLVED

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
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Icon for Image Deskew

Post by prime clinical systems »

Hi, in the document editor End User version there are buttons in the Document for Enhance Scanned Pages, and Deskew Pages Content. The programmers PDFXEditCorex86.dll, these two options don't appear in the menu, and in customize toolbar mode, searching for the deskew button cmd.pdfopt.pagesDeskew reveals no items/icons, so I exported an .XCES file from the end user editor, and tried to import into programmers version, but it doesnt show up. using same version of enduser and editor dll of v8 build 344.0

Enduser image
Enduser.JPG
Enduser.JPG (20.12 KiB) Viewed 3110 times
Dll image [attachment=0]programmerdll.JPG
Thanks
Attachments
programmerdll.JPG
programmerdll.JPG (20.42 KiB) Viewed 3110 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Icon for Image Deskew

Post by Sasha - Tracker Dev Team »

Hello prime clinical systems,

You will need to add the Optimizer plugin for these commands to work.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Icon for Image Deskew

Post by prime clinical systems »

Will this command work without the plugin?
https://sdkhelp.pdf-xchange.com/vi ... age_Deskew

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

Re: Icon for Image Deskew

Post by Sasha - Tracker Dev Team »

Hello prime clinical systems,

That method will work, though it's an IIXC library and will work only with IIXC_Page - and you will have to modify the IPXC/IPXV levels. That requires some additional coding that will give you the result which will differ from the Optimizer's deskew - as it was additionally optimized. You simply should add the needed plugin and use the required functionality - the plugin should be available for usage as you have the Editor SDK key.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Icon for Image Deskew

Post by prime clinical systems »

Well I tried, but with vb6 I can't find a way to use it, as when the control is drawn on the form, the instantiation of the INST is automatic, and there is no way to just reference the dll, and createcontrol does not work in vb6, if someone could help me get it to work with attached small project, I would really appreciate it.

ce
TestPDF.zip
(1.29 KiB) Downloaded 90 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Icon for Image Deskew

Post by Sasha - Tracker Dev Team »

Hello prime clinical systems,

Basically you want an assistance of adding the Optimizer plugin to your vb6 project?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Icon for Image Deskew

Post by prime clinical systems »

Well, I added the code that you suggested, and does not work, so yes, how much would it cost to help me?
This is really important to me because, I'm wanting to get rid of my leadtools image control, now that i've seen how one can open tif's, jpgs etc with pdf editor, this way I can save them all to PDF, and at the same time, use image enhancement functions of the plug in, and thus I would have no further licensing needs from Lead Tools. So any help I can get would greatly be appreciated.

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

Re: Icon for Image Deskew  SOLVED

Post by Sasha - Tracker Dev Team »

Hello prime clinical systems,

A beer for the dev would suffice :D

There were several problems with your code - here's the fixed version:
TestPDF_ok.zip
(22.64 KiB) Downloaded 105 times
First of all the plugin initialization should happen before the form creation. And also, you forgot the Start/FinishLoadingPlugins methods.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Icon for Image Deskew

Post by prime clinical systems »

Hi, thanks so much, So where do I send the beer? Works great.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Icon for Image Deskew

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply