everybyte2 1 Posted May 3, 2022 Can anybody suggest a component or library to print an FMX control to a PDF? Share this post Link to post
SwiftExpat 65 Posted May 3, 2022 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
everybyte2 1 Posted May 3, 2022 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
vfbb 285 Posted May 3, 2022 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
everybyte2 1 Posted May 3, 2022 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. 1 Share this post Link to post
vfbb 285 Posted May 3, 2022 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. 1 Share this post Link to post