Results 1 to 40 of 91

Thread: PDF Reader ActiveX Control

Hybrid View

  1. #1

    Thread Starter
    Addicted Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    134

    Re: PDF Reader ActiveX Control

    Quote Originally Posted by Calcu View Post
    ...
    Waiting for your merge function xD
    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

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,667

    Re: PDF Reader ActiveX Control

    Quote Originally Posted by saturnian View Post
    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
    Last edited by fafalone; Mar 7th, 2025 at 03:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width