Print Page | Close Window

Delphi Firemonkey project using Quick PDF Library

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3379
Printed Date: 04 Mar 26 at 11:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Delphi Firemonkey project using Quick PDF Library
Posted By: CraigK
Subject: Delphi Firemonkey project using Quick PDF Library
Date Posted: 26 Aug 16 at 4:07PM
I am a newbie when it comes to Delphi Firemonkey so please go easy on me. I am currently using Quick PDF Library (QPL) with Delphi VCL. I am looking to switch my project over to Firemonkey so I can compile and run on a Mac.

I am running into a few issues when trying to include QPL in the uses clause in my sample Firemonkey project. The first error I got when including DebenuPDFLibrary1211 in my uses clause is an error that states that the Graphics.dcu file is not found. 

Okay easy fix, include the conditional define of QPL_FIREMONKEY. The QPL_FIREMONKEY conditional define uses the DebenuPDFLibraryGraphics file instead of the VCL.Graphics file. 

Now this is where I am stuck. When I try to compile and run after including the QPL_FIREMONKEY conditional define, I start getting more errors. All of the errors are located in the DebenuPDFLibraryFontRasterizer file.

Its the same error but in multiple locations. It states: "System.UITypes.TFontStle and DebenuPDFLibraryGraphics.TFontStyle" are incompatible types.

If anyone has any idea on how to get Debenu QPL running in a Firemonkey project, please help.

Thanks



Replies:
Posted By: rweetch
Date Posted: 26 Aug 16 at 5:12PM
The VCL PDF Library is designed to work with teh VCL only and not Firemonkey. I'm not even sure it would work in an FMX app compiled for Windows. 


Posted By: CraigK
Date Posted: 26 Aug 16 at 5:23PM
Would you happen to know if there is a separate library available to use/download for a FMX app? Only reason I thought this was possible was because I found this posting on Debenu's website.

http://www.debenu.com/kb/firemonkey-compatibility/

If I have misread/misunderstood something please let me know. I've shot off an email to Debenu's tech support team but have yet to hear back from them.

Thanks


Posted By: rweetch
Date Posted: 26 Aug 16 at 5:29PM
I hadn't seen that. It certainly suggests that is. I wonder if you perhaps have to use the DLL? It has an import unit available

For the Mac I would think that you would need "Quick PDF Library for Mac"


Posted By: CraigK
Date Posted: 26 Aug 16 at 7:06PM
Yeah it seems to be quite confusing. I'm not quite sure about the DLL. I wouldn't think so, especially since I have the source code for the library. I could be wrong though.

I'll keep digging and see if I can't find anything else.


Posted By: rweetch
Date Posted: 27 Aug 16 at 12:11AM
I was thinking about the DLL (which ships with the VCL version) as with that you wouldn't have the issues with vcl units within your fmx app



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk