
Originally Posted by
saturnian
Hi,
Just ask !

Using Pdfium.dll to merge PDF files is not possible in VB6, as Fafalone stated.
However, I was largely inspired by Fafalone's TwinBasic code to create a 32-bit ActiveX DLL in TwinBasic, which can be referenced in VB6 and adds a function to merge PDF files.
You can find this DLL here:
https://freeware.ordoconcept.net/dow...oPDFsMerge.zip
Best regards,
François
It's possible in VB6 with The trick's VBCDeclFix addin; his addin also allows creating the required CDecl callback function, you just add the CDecl keyword like the tB version, and change the Return syntax:
Code:
Private Function WriteBlock CDecl(ByVal pThis As LongPtr, ByVal pData As LongPtr, ByVal size As Long) As Long
If hFileOut Then
Dim cbRet As Long
WriteBlock = WriteFile(hFileOut, ByVal pData, size, cbRet, vbNullPtr)
End If
End Function