Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi XE2: Display PDF in a Delphi FireMonkey app on OSX

I'm working on a port of a Delphi app to OSX using FireMonkey. Part of the app displays PDF's, currently using the Acrobat viewer control or Gnostice components under Windows. These options aren't available in FireMonkey for OSX, so I was wondering if anyone had any ideas how to handle this. I have used the Quartz PDFKit PDFView in a Cocoa app but can't see how I could use this in a FireMonkey app.

like image 950
Kevin McBrearty Avatar asked Jan 11 '12 05:01

Kevin McBrearty


1 Answers

To answer my own question, Chris Rolliston has a detailed article on his blog about creating a FireMonkey PDF viewer. It uses Core Graphics native calls, and has example code for page scrolling and rotation. An excellent start for anyone who needs to do this kind of thing. It was written for XE2 so some things may have changed since.

like image 108
Kevin McBrearty Avatar answered Oct 21 '22 23:10

Kevin McBrearty