Convert a few functions to RealBasic
Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=738
Printed Date: 23 Nov 24 at 4:24AM Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com
Topic: Convert a few functions to RealBasic
Posted By: brandon
Subject: Convert a few functions to RealBasic
Date Posted: 01 Jun 07 at 2:12PM
My primary development platform is RealBasic. If you have never looked at it you should. It is fully oop and can compile Windows, Mac and Linux applications. The beauty of RealBasic (rb) is that it compiles single file executables with no external run-times libraries. Just a single exe file.
Right now I am able to use QuickPDF with declares within my rb app. Since QP is a windows dll, I have to distribute it along with my exe and I cannot compile a Mac or Linux version of my app.
I have never seen the ISEDQuickPDF code so I really do not know how much work it would be. How much code would need to be converted to support some of the basic functions of QP?
What if we needed just... LoadFromFile CapturePage DrawPage
Is the code segmented so that only parts could be converted?
As another option, would anyone be interested in using http://www.freepascal.org/ to compile a Mac dylib? (similar to windows dll). I have read one user who has successfully compiled a TurboPascal source to a Mac dylib. I just dont have the source.
Thanks,
Brandon
|
Replies:
Posted By: chicks
Date Posted: 01 Jun 07 at 3:04PM
A quick grep of the source files reveals well over 200 references to GDI, which is Microsoft's graphics lib. Had the original developers used OpenGL or something else portable, what you're asking might be possible, but I doubt that this code can be made portable without a boatload of work. There are also a couple of "uses ActiveX" lines, which mean a lot more non-portable code.
|
Posted By: brandon
Date Posted: 01 Jun 07 at 4:20PM
Thanks Chicks...that is exactly what I needed to know. Too bad. I guess I'll have to learn Coregraphics on the Mac.
Brandon
|
Posted By: chicks
Date Posted: 01 Jun 07 at 4:35PM
There are a couple of open-source, portable options:
libharu, which is very easy to use, but only supports PDF creation
PoDoFo, which is very complete, but low level. Supports PDF reading and writing.
|
|