creating vba object pdfxedit

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

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Stefan - PDF-XChange

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 - PDF-XChange
Site Admin
Posts: 2444
Joined: Thu Jun 30, 2005 4:11 pm

Re: creating vba object pdfxedit

Post by Vasyl - PDF-XChange »

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.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
amandasw
User
Posts: 1
Joined: Sun Jul 14, 2024 1:21 pm

Re: creating vba object pdfxedit

Post by amandasw »

Thank you
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19793
Joined: Mon Jan 12, 2009 8:07 am
Contact:

creating vba object pdfxedit

Post by Stefan - PDF-XChange »

:)
Post Reply