Jump to content
everybyte2

Printing FMX control to a PDF

Recommended Posts

Do you mean print the contents of a memo?

 

Commercially there is one from TMS as part of FNC core.  See the doc here

Share this post


Link to post

Not a specific control, just a [derived] control containing rectangles and text.

The closest I came across is for VCL, it creates a canvas to render to:

  litePDF example

Share this post


Link to post
17 minutes ago, everybyte2 said:

Can anybody suggest a component or library to print an FMX control to a PDF?

You didn't get it with Skia? On github there is a demo just printing a control in PDF. 
Source: Webinar Demo - Source

Video: Webinar Demo - YouTube

Share this post


Link to post

Webinar demo creates a PDF from a bitmap of the control, as a result PDF does not scale well.

 

With a fix in Skia I do create scalable PDFs on Windows (where Printer canvas is available),

but this solution is not portable, at least for Android.

  • Like 1

Share this post


Link to post
42 minutes ago, everybyte2 said:

Webinar demo creates a PDF from a bitmap of the control, as a result PDF does not scale well.

 

With a fix in Skia I do create scalable PDFs on Windows (where Printer canvas is available),

but this solution is not portable, at least for Android.

You are sure! I hadn't realized it.

I have an idea how to solve this, maybe I can put it in a next version.

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×