PurePDF as a linux, windows and osx include.
- fiver
- User
- Posts: 36
- Joined: Wed May 05, 2004 8:21 pm
- Location: An outer spiral arm of the Milky Way
PurePDF as a linux, windows and osx include.
EDIT: Tested as working on all three platforms, with PB 4.60 RC1.
I have been tinkering with PurePDF by LuckyLuke / DoubleDutch / ABBKlaus and have got it working on Linux and Windows as an include. It should also work on osx (tried with 10.5 leopard) but at the moment it fails with memory errors on CallFunctionFast, which I suspect may be a bug but I'm not certain.
The examples all work on linux and windows with a couple of exceptions: lauching external apps from embedded links on linux (probably because of the nature of the links/the pdf reader I'm using) and also one example that requires one of gnozal's libs that is windows only.
Tested on ububtu 10.10, windows xp and windows vista.
Download from my dropbox account here.
Have fun, fiver.
I have been tinkering with PurePDF by LuckyLuke / DoubleDutch / ABBKlaus and have got it working on Linux and Windows as an include. It should also work on osx (tried with 10.5 leopard) but at the moment it fails with memory errors on CallFunctionFast, which I suspect may be a bug but I'm not certain.
The examples all work on linux and windows with a couple of exceptions: lauching external apps from embedded links on linux (probably because of the nature of the links/the pdf reader I'm using) and also one example that requires one of gnozal's libs that is windows only.
Tested on ububtu 10.10, windows xp and windows vista.
Download from my dropbox account here.
Have fun, fiver.
Last edited by fiver on Sat Sep 10, 2011 1:49 pm, edited 1 time in total.
-
- Enthusiast
- Posts: 798
- Joined: Tue May 20, 2008 2:12 am
- Location: Cologne, Germany
- Contact:
Re: PurePDF as a linux, windows (and maybe osx) include.
Hi fiver,fiver wrote:I have been tinkering with PurePDF by LuckyLuke / DoubleDutch / ABBKlaus and have got it working on Linux and Windows as an include. It should also work on osx (tried with 10.5 leopard) but at the moment it fails with memory errors on CallFunctionFast, which I suspect may be a bug but I'm not certain.
just replace CallFunctionFast with CallCFunctionFast (with a 'c' after the 'call'), and all should get well

Thanks! That include helps a lot...
Regards,
JamiroKwai
JamiroKwai
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: PurePDF as a linux, windows (and maybe osx) include.
Thanks. 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: PurePDF as a linux, windows (and maybe osx) include.
Thanks 


Not a destination
Re: PurePDF as a linux, windows and osx include.
Hi fiver,
Thanks for doing it, the current build of PurePDF should work as an includefile too.
I think the CallfunctionFast() command is buggy on OSX !?
BR Klaus
Thanks for doing it, the current build of PurePDF should work as an includefile too.
I think the CallfunctionFast() command is buggy on OSX !?
BR Klaus
Re: PurePDF as a linux, windows and osx include.
There have been (fixed) bugs with CallFunctionFast() in Linux.ABBKlaus wrote:I think the CallfunctionFast() command is buggy on OSX !?
See http://www.purebasic.fr/english/viewtop ... 23&t=47239 for example.
As the bug was reported and fixed on Linux recently, i guess you need to report this for Mac OS X if it still happens with RC1 and there is no bug report in the Mac OS X forum so far. Otherwise it will probably be overlooked and you have to wait for 4.61.
Check the generated assembly source for CallFunctionFast() use in PB 4.6 RC1 and maybe check if CallCFunctionFast() in combination with ProcedureC works in Mac OS X. And as usual - if you can -> use the new Prototype Mechanism as CallFunctionFast() is outdated

Hope this helps.
- fiver
- User
- Posts: 36
- Joined: Wed May 05, 2004 8:21 pm
- Location: An outer spiral arm of the Milky Way
Re: PurePDF as a linux, windows and osx include.
It seems that CallFunctionFast is actually ok on osx 10.5 as of PB 4.6RC1, however on Linux Xubuntu 11.04 (recent upgrade I made) it does not work, so I altered the calls to CallCFunctionFast instead of CallFunctionFast and it then worked well. Of course these problems probably all relate to using the bleeding edge version
and I imagine 4.6 final will be much better behaved.
@ABBKlaus Cool! I will take a look.

@ABBKlaus Cool! I will take a look.
Re: PurePDF as a linux, windows and osx include.
Now that PB is Unicode only, will PurePDF still work? I have not used it before but it is only x86, so will it work with x64 programs? Finally, will it still work with all OS? The forum and downloads look old. Sorry.
Thank you.
Thank you.
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PurePDF as a linux, windows and osx include.
I can confirm that it (XIncludeFile) works with Unicode on Windows x86. Do not know about the other platforms but likely will work on Win x64.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: PurePDF as a linux, windows and osx include.
So the program that uses PurePDF can be compiled as x64?IdeasVacuum wrote:I can confirm that it (XIncludeFile) works with Unicode on Windows x86. Do not know about the other platforms but likely will work on Win x64.
Anyone can confirm about Mac?
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PurePDF as a linux, windows and osx include.
Do you have a MAC? Try a code snippet...
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: PurePDF as a linux, windows and osx include.
Has this been updated anywhere?
I get error trying on linux.
Line 526: Comparisons (=, <, >, =< and >=) are only supported with keywords like If, While, Until or within Bool().
Line 829: Native types can't be used with pointers.
If some one can help. Seems to work if I just comment them out. But not sure how good an idea that is.
Thanks
I get error trying on linux.
Line 526: Comparisons (=, <, >, =< and >=) are only supported with keywords like If, While, Until or within Bool().
Code: Select all
vReturn = MEM_DataInit(*aData, vMaxSize + (vFind*(vDestLen - vSourceLen))) = #False
Code: Select all
Protected tuple.q, c.l, count.l, err.l, *IPos.l, *OPos.l, i.l
Thanks
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
Re: PurePDF as a linux, windows and osx include.
This is from the original PurePDF: ( you are missing a ";" on the first line and memory does not have a type anymore on 2nd
Norm.
Code: Select all
vReturn = MEM_DataInit(*aData, vMaxSize + (vFind*(vDestLen - vSourceLen))); = #False
Code: Select all
Protected tuple.q,c.l,count.l,err.l,*IPos,*OPos,i.l
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
Re: PurePDF as a linux, windows and osx include.
Do you mean there errors or the code? Is there something newer for linux?
Thanks
Thanks
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
Re: PurePDF as a linux, windows and osx include.
The lines you referred to, have errors and I looked at the latest PurePDF V2.25 for comparison :
http://www.purebasicpower.de/?PurePDF
If you look at the lines I posted they have been corrected:
1st: now has a "; = #False"
2nd : memory does not have a type anymore in PureBasic ( if you look at the 2nd line of code I pasted you'll see this)
I only use PurePDF in windows and I just realized you might be using an edited special version for linux but even so the code I posted is valid.
Norm.
http://www.purebasicpower.de/?PurePDF
If you look at the lines I posted they have been corrected:
1st: now has a "; = #False"
2nd : memory does not have a type anymore in PureBasic ( if you look at the 2nd line of code I pasted you'll see this)
I only use PurePDF in windows and I just realized you might be using an edited special version for linux but even so the code I posted is valid.
Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari