creating vba object pdfxedit

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, 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
tranquilizer
User
Posts: 1
Joined: Sat Mar 25, 2023 9:10 am

creating vba object pdfxedit

Post by tranquilizer »

encountering in error creating in the following line on creating object in vba

Set objEditor = CreateObject("PDFXEdit.PDFXEditCtrl)

Have "PDF-Xchange OfficeAddid Type Library" in Tools > References

PDF Xchange Editor version 9.5
image(1).png
Attachments
image(2).png
image.png
image.png
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2351
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: creating vba object pdfxedit

Post by Vasyl-Tracker Dev Team »

Hi tranquilizer.

Firstly you need to use a prover ActiveX library:
image.png
To be able to use it you need to be sure you have installed that library in your system. At least you need to run on the target system the following commands

regsvr32 PDFXEditCore.x86.dll
(for 32-bit applications)

regsvr32 PDFXEditCore.x64.dll
(for 64-bit applications)

- typically you need to call it with the admin rights during the installation process. For more details look here: https://sdkhelp.pdf-xchange.com/vi ... stribution.

Also seems you used the wrong progid to get access to the PDFXChange Editor API. The correct is:

"PDFXEdit.PXV_Inst" - this is the ActiveX object to get access to the pdf-manipulation API
(https://sdkhelp.pdf-xchange.com/view/PXV:PXC_Inst)

"PDFXEdit.PXV_Control" - the UI component, classic ActiveX Control to view and edit pdfs by the end user
(https://sdkhelp.pdf-xchange.com/vi ... XV_Control).

And here are some examples:
https://github.com/tracker-software/PDF ... DKExamples

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply