wPDF V3 embed data

  • The new features section says:

    Binary Data embedding: You can store the document source which was used to create a PDF file within this PDF file. When you use WPTools for the PDF creation you can store the RTF source document inside of the created PDF data, the user only has to click on an icon to extract this document. This can be a great feature if you use it to embed programming examples within your programming manual!

    We are very interested in looking at this for use in our software and are looking at upgrading but I can't find an api reference that documents this nor an example that shows it. I downloaded the examples. Can you point me toward this? Thanks.

    • Offizieller Beitrag

    Hi,

    Embedding files requires this new API:

    procedure EmbedData(const aName : string; r: TRect;
    Icon : TWPEmElementIcon; data: TStream;
    compressmode: TWPEmCompressMode; const FileExtension: string);

    It is executed during regular drawing and the coordinates uses the current "Canvas" coordinates.

    Julian[/quote]