How to call PDF Editor Toolkit Professional SDK from 64bit application?

I’ve been testing the "PDF Editor Toolkit Professional SDK" today, but am unable to get the .dll’s to load into my project.

On investigation, I believe it’s because they are only 32bit and my project is a 64-bit app.

Do you have 64-bit versions for the .dll’s yet - and if not - how far away are they ?

thanks
Customer
---------------------------------
Yes, verywrite.dll is a 32bit DLL Library, you can only call it from a 32bit application, if your application is a 64bit application, you can't call verywrite.dll from your 64bit application directly.

However, you can call "pdfshell2.shellexe" COM Component instead of verywrite.dll library from your 64bit application.

The first, you need to run "Install-pdfshell.exe-Com.vbs" or following command line to register "pdfshell.exe" into your system,

pdfshell.exe /regserver

then you can call "pdfshell2.shellexe" from your VBScript source code to process PDF files easily, for example,
------------------------------------
Set fso = CreateObject("Scripting.FileSystemObject")
strFolder = fso.GetParentFolderName(wscript.ScriptFullName)

Set oPDF = CreateObject("pdfshell2.shellexe")
InputPDF = "D:\downloads\XBP_CHECK_REQUESTS_test(1).pdf"
OutputPDF = "D:\downloads\_out.pdf"
oPDF.com_VerySetLicenseKey("XXXXXXXXXXXXXXXXXXXXX")
strMergeCommand = "burst "
strMergeCommand = strMergeCommand & """" & InputPDF & """"
strMergeCommand = strMergeCommand & " "
strMergeCommand = strMergeCommand & """" & OutputPDF & """"
MsgBox(strMergeCommand)
bresult = oPDF.com_VerySplitMergePDF(strMergeCommand)
MsgBox "com_VerySplitMergePDF() is return: " & CStr(bresult)
------------------------------------

Set fso = CreateObject("Scripting.FileSystemObject")
strFolder = fso.GetParentFolderName(wscript.ScriptFullName)
FilePath = strFolder & "\"

strTIFFileName = "D:\downloads\TM000001\TM000001.tif"
strPDFFIleName = "D:\downloads\TM000001\TM000001.pdf"

Set oPDF = CreateObject("pdfshell2.shellExe")
oPDF.com_VerySetLicenseKey("XXXXXXXXXXXXXXXXXXXXX")
FileID = oPDF.com_VeryCreate(strPDFFIleName)
oPDF.com_VeryAddImage FileID, strTIFFileName
oPDF.com_VeryClose FileID

MsgBox "Create '" + strPDFFIleName + "' file successful."
------------------------------------

Above is the VBScript source code, but you can call "pdfshell2.shellexe" from C/C++ source code too, if you don't know how to do, please feel free to let us know, we will ask our engineer to create a C/C++ example to you asap.

btw, you can also refer to "Win64\pdfx64_test" project, this is a C/C++ test project for 64bit library, we hope it will useful to you.

VeryPDF

School See Also:

http://www.verypdf.com/wordpress/201603/pdf-sdk-for-cc-developers-to-manage-and-print-pdf-files-42364.html

http://www.verypdf.com/wordpress/201511/pdf-editor-toolkit-sdk-64-bit-version-42045.html

http://www.verypdf.com/app/pdf-editor-toolkit/

http://www.verypdf.com/wordpress/201106/verypdf-dll-as-64-bit-version-770.html

http://www.verypdf.com/wordpress/201108/pdf-editor-toolkit-or-image2pdf-trail-testing-1932.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Editor Toolkit and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!