I can not get VerySplitMergePDF function to work

Hi,

I will purchase very soon your " PDF Editor Toolkit Professional Version" for one Server but, I have tried your Trial version successfully for my need except for Merge which do nothing …

Do you have an exemple using "dll"

Thanks
=============================
Thanks for your message, you can call VerySplitMergePDF() function to split and merge your PDF files, please refer to the VB example of VerySplitMergePDF at below,

~~~~~~~~~~~~~~~~
Private Declare Function VerySplitMergePDF Lib "verywrite.dll" (ByVal szCommand As String) As Long

'Split or merge PDF files
szInputPDFFilename = "C:\create.pdf"
szPageRange = ",1,3"
szOutputPDFFilename = "C:\out.pdf"

'You need use (") to include the input and output filenames
szCommand = """" + szInputPDFFilename + szPageRange + """" + " " + """" + szOutputPDFFilename + """"

ret = VerySplitMergePDF(szCommand)
~~~~~~~~~~~~~~~~

The following is a VBS example which can be used to split and merge your PDF files,
~~~~~~~~~~~~~~~~
Set fso = CreateObject("Scripting.FileSystemObject")
strFolder = fso.GetParentFolderName(wscript.ScriptFullName)

Set oPDF = CreateObject("pdfshell2.shellexe")
InputPDF = strFolder & "\PowerTech.pdf"
OutputPDF = strFolder & "\output"
oPDF.com_VerySetLicenseKey("XXXXXXXXXXXXXXXXXXX")
strMergeCommand = ""
strMergeCommand = strMergeCommand & " burst "
strMergeCommand = strMergeCommand & """" & InputPDF & """ "
strMergeCommand = strMergeCommand & """" & OutputPDF & """"
MsgBox(strMergeCommand)
bresult = oPDF.com_VerySplitMergePDF(strMergeCommand)
MsgBox "com_VerySplitMergePDF() is return: " & CStr(bresult)
~~~~~~~~~~~~~~~~

If you still can't get it work, please feel free to let us know, we will prepare a purchase web page to you shortly.

VeryPDF

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

2 Replies to “I can not get VerySplitMergePDF function to work

  1. I believe the solution is to use asterisks instead of commas. I found that the following does work:

    Private Declare Function VerySplitMergePDF Lib “verywrite.dll” (ByVal szCommand As String) As Long

    ‘Split or merge PDF files
    szInputPDFFilename = “C:\create.pdf”
    szPageRange = “*1*3″
    szOutputPDFFilename = “C:\out.pdf”

    ‘You need use (“) to include the input and output filenames
    szCommand = “””” + szInputPDFFilename + szPageRange + “””” + ” ” + “””” + szOutputPDFFilename + “”””

    ret = VerySplitMergePDF(szCommand)

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)
    1. Thanks for your information, yes, the latest version of VerySplitMergePDF function is support both * and , symbols, you should better use * symbol to separate filename and page range, because Windows System is not allow the * symbol included in the filename.

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

Leave a Reply to VeryPDF Cancel 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!