#1 2012-06-11 14:50:46

arkhamon
Member
Registered: 2012-03-05
Posts: 2

XE2 FMX framework

Hi,

i'd like to know if i can use SynPDF with XE2 and FireMonket platform. Is it compliant with cross compilation, because i want to generate an application that will run under both Win32 and MAC OSX and générate native PDF files. I mean is there a version that is not built over VCL (as VCL  is not part of FMX framework).

If so, where can i find it ?
Thanks.

Offline

#2 2012-06-11 15:00:28

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,252
Website

Re: XE2 FMX framework

SynPDF is not cross-platform yet.

The first main issue is that FireMonkey lack of a TMetaFile-like class, and an associated TMetaFileCanvas.
Without it, you'd have to use only TPDFCanvas, which is not easy to work with (it uses another paradigm than VCL and FireMonkey).

In Mac OSX, you have native PDF generation embedded, within Quartz.
And FireMonkey bypass Quartz, to use its own rendering engine.
So you won't be able to use the native PDF generation offered by Mac OS X.
Another drawback of FireMonkey. sad

What you could do is use low-level rasterization of FireMonkey, then print the bitmap into the Mac OS X PDF printer.
It will be far from optimized (creating a pdf from bitmap is ugly and create huge files), but it will work.

Offline

Board footer

Powered by FluxBB