I want to create and execute the pdf optimize operation programmatically.
I did initialize the IPXV_Inst, added the PDFOptimizer.pvp plugin from file, got the operation ID by using the Str2ID but CreateOp with this ID returns null.
The same code is returning a not null operation when I replace the op.document.optimize with op.document.extractPages.
It maybe has to do with the plugin?
Do I need to activate/load the added plugin?
Any hints are welcome.
op.document.optimize not creating operation
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.
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.
-
- User
- Posts: 3
- Joined: Mon Oct 05, 2020 6:56 am
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: op.document.optimize not creating operation
Hello Daniel_NTT,
This should help:
https://forum.pdf-xchange.com/viewtopic.php?f=66&t=25056&p=97884&hilit=Plugin#p97884
Cheers,
Alex
This should help:
https://forum.pdf-xchange.com/viewtopic.php?f=66&t=25056&p=97884&hilit=Plugin#p97884
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 3
- Joined: Mon Oct 05, 2020 6:56 am
Re: op.document.optimize not creating operation
Thank you for your answer.
It is not clear why do I need the OCRPlugin plugin for the op.document.optimize operation.
Anyway I tried to load the OCRPlugin.pvp file but with the same result. The optimize operation is still null.
I looked in the installation folder and I found out that I am missing the PluginsData folder.
The EditorV8 msi did not install any PluginsData folder.
It is not clear why do I need the OCRPlugin plugin for the op.document.optimize operation.
Anyway I tried to load the OCRPlugin.pvp file but with the same result. The optimize operation is still null.
I looked in the installation folder and I found out that I am missing the PluginsData folder.
The EditorV8 msi did not install any PluginsData folder.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: op.document.optimize not creating operation
Hello Daniel_NTT,
You won't need the OCR plugin - I gave you a sample on how to load plugins - you should load the PDFOptimizer.pvp plugin.
Cheers,
Alex
You won't need the OCR plugin - I gave you a sample on how to load plugins - you should load the PDFOptimizer.pvp plugin.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 3
- Joined: Mon Oct 05, 2020 6:56 am
Re: op.document.optimize not creating operation
I did register manually the PDFXEditCore.x86.dll with regsvr32 and it is working now.
Thank you
Thank you
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
op.document.optimize not creating operation
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ