• Hello i just tried to read an attachment form the PDF File.

    The following command returns correct 1 (there is one XML File attached)

    Code
    count := pdfView.command(COMPDF_Attachment_List);
    if count > 0 then Data := ReadAttachment(pdfView, 0);

    But this function doesn't work, the first COMPDF_Attachment_GetProp returns an empty string - i have copied the code from unit WPViewpdfAttachmentlist;


    can you point me to the wrong code?

  • Okay found the problem in the meantime.

    between the command COMPDF_Attachment_List and the Command COMPDF_Attachment_GetProp i did a reload of the PDF itself.

    I mean i freed the TWPViewPDF and recreated and reloaded it.


    If i call both commands within the same TWPViewPDF it works as it should