Use UIDocumentInteractionController in Delphi XE

后端 未结 1 676
Happy的楠姐
Happy的楠姐 2021-01-15 18:11

I have a Delphi XE5 app which downloads and stores PDFs locally on the device. I have a TWebBrowser on the form to view the PDFs and it works perfectly.

I now wish

相关标签:
1条回答
  • 2021-01-15 18:29

    I have solved this problem by installing D.P.F. Delphi iOS Native Components

    I then added a DPFQLPreviewController to my form and open the PDF with the following code:

    DPFQLPreviewController1.ShowDoc(filename, false);
    

    This opens the PDF in the standard iOS previewer and this has a button enabling one to share the file with other installed apps that can read the file (eg a PDF app, email, send to printer, etc)

    This is by far the simplest solution I have found and works perfectly on the simulator and an actual device.

    0 讨论(0)
提交回复
热议问题