Problem with EmbedData

  • I am trying to make a pdf-file that contains one or more pdf-files as attachments.

    The test-code below demonstrates how I call EmbedData. The result of running the code is an empty pdf-file - nothing is embedded in the file. I get no exceptions or error-messages.

    I use C++ Builder 2007 and wPDF version 3.77.0.0 (from 14.11.2012).
    When I run the same code with an older versjon of wPDF (3.25.1.0 from 22.08.2008), it works as I expect - i.e. FileToEmbed.pdf is embedded in test.pdf.

    Am I doing something wrong?

    Test-code: