Page 1 of 2
PurePDF as a linux, windows and osx include.
Posted: Sun Sep 04, 2011 12:55 pm
by fiver
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.
Re: PurePDF as a linux, windows (and maybe osx) include.
Posted: Sun Sep 04, 2011 1:19 pm
by jamirokwai
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.
Hi fiver,
just replace CallFunctionFast with CallCFunctionFast (with a 'c' after the 'call'), and all should get well

Thanks! That include helps a lot...
Re: PurePDF as a linux, windows (and maybe osx) include.
Posted: Mon Sep 05, 2011 12:59 am
by DoubleDutch
Thanks.

Re: PurePDF as a linux, windows (and maybe osx) include.
Posted: Mon Sep 05, 2011 9:22 am
by Kwai chang caine
Thanks

Re: PurePDF as a linux, windows and osx include.
Posted: Mon Sep 19, 2011 3:54 pm
by ABBKlaus
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
Re: PurePDF as a linux, windows and osx include.
Posted: Tue Sep 20, 2011 7:15 pm
by Ramihyn_
ABBKlaus wrote:I think the CallfunctionFast() command is buggy on OSX !?
There have been (fixed) bugs with CallFunctionFast() in Linux.
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.
Re: PurePDF as a linux, windows and osx include.
Posted: Tue Sep 20, 2011 8:02 pm
by fiver
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.
Re: PurePDF as a linux, windows and osx include.
Posted: Wed Jun 08, 2016 10:06 am
by coder14
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.
Re: PurePDF as a linux, windows and osx include.
Posted: Wed Jun 08, 2016 11:06 am
by IdeasVacuum
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.
Re: PurePDF as a linux, windows and osx include.
Posted: Wed Jun 08, 2016 2:02 pm
by coder14
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.
So the program that uses PurePDF can be compiled as x64?
Anyone can confirm about Mac?
Re: PurePDF as a linux, windows and osx include.
Posted: Thu Jun 09, 2016 10:30 am
by IdeasVacuum
Do you have a MAC? Try a code snippet...
Re: PurePDF as a linux, windows and osx include.
Posted: Sun Sep 25, 2016 1:04 am
by vwidmer
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().
Code: Select all
vReturn = MEM_DataInit(*aData, vMaxSize + (vFind*(vDestLen - vSourceLen))) = #False
Line 829: Native types can't be used with pointers.
Code: Select all
Protected tuple.q, c.l, count.l, err.l, *IPos.l, *OPos.l, i.l
If some one can help. Seems to work if I just comment them out. But not sure how good an idea that is.
Thanks
Re: PurePDF as a linux, windows and osx include.
Posted: Sun Sep 25, 2016 3:03 am
by normeus
This is from the original PurePDF: ( you are missing a ";" on the first line and memory does not have a type anymore on 2nd
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
Norm.
Re: PurePDF as a linux, windows and osx include.
Posted: Sun Sep 25, 2016 3:39 am
by vwidmer
Do you mean there errors or the code? Is there something newer for linux?
Thanks
Re: PurePDF as a linux, windows and osx include.
Posted: Sun Sep 25, 2016 4:35 am
by normeus
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.