Page 1 of 1
Need help rebuilding PurePDF for PB3.93
Posted: Mon Mar 07, 2005 12:09 pm
by tOnGAs
Hi everyone,
I'm trying to build the PurePDF library from source to make it work with PB3.93. Unfortunately, I am not very familiar with the way Userlibs work and wasn't able to make it work (even by using Tailbite).
Could somebody help me please ?
The PurePDF library can be found at :
http://smollies.fateback.com/
The sources are included in the Examples/purepdf/Source/ directory.
I already PM'ed the author (LuckyLuke) but no sign of him.
Posted: Mon Mar 07, 2005 9:11 pm
by ABBKlaus
Hi tOnGAs,
heres the lift you need :
1. Get TAILBITE from
http://inicia.es/de/elchoni/TailBite/
2. You have the source code of PurePDF and changed the following in
PDF.PB
Code: Select all
testw.f=pdf_GetStringWidth(".")
nb = w / testw;
3. Compile everything with TBManager.exe (when getting errors you forgot to delete the old libs and .res files)
- pdfres.pb
memres.pb
mem.pb
pdf.pb
4. finished
PS : in 3. i forget the right order is essential

Success !
Posted: Tue Mar 08, 2005 8:54 am
by tOnGAs
It actually worked and all the examples do compile ok.
Thank you for your help.

Posted: Sun Mar 13, 2005 7:32 pm
by Andre
It would be nice, if someone can provide me a v3.93 compatible version of this lib to update the PurePDF archive on PureArea.net
Please use me email: andre at purebasic . com
Thanks !
PurePDF library
Posted: Sun Mar 13, 2005 8:22 pm
by tOnGAs
Hello,
I could send my results, but it won't be packaged and there would be no installer available. Anyway, if you're interested, feel free to PM me.

It would be best if we contact the original author. Anybody knowing him by any chance ?
Re: PurePDF library
Posted: Mon Mar 14, 2005 11:27 pm
by Andre
tOnGAs wrote:Hello,
I could send my results, but it won't be packaged and there would be no installer available. Anyway, if you're interested, feel free to PM me.

It would be best if we contact the original author. Anybody knowing him by any chance ?
I've written a mail to Luk this evening, also directing him to this thread.
I will inform you, when I got a reply.
I've had a reply
Posted: Tue Mar 15, 2005 8:25 am
by tOnGAs
I've written a mail to Luk this evening, also directing him to this thread. Wink
I will inform you, when I got a reply.
LuckyLuke is back and has already posted a new version.
You can get it here :
http://smollies.fateback.com/PurePDF123.exe
Many thanks to him for this *GREAT* lib !
Posted: Tue Mar 15, 2005 8:43 am
by LuckyLuke
Here I am
A new version can be found at
http://smollies.fateback.com/PurePDF123.exe
and it has been send to Andre too.
Posted: Wed Aug 31, 2005 10:36 am
by Flype
I found an annoying bug :
when you use pdf_SetFooter(@MyFooterFunc()) and pdf_AliasNbPages()
you have to use the keyword {nb} in order to print the number of page.
Ok it works well.
But if you need to print in the body of the document this keyword the MyFooterFunc() procedure crash violently.
Code: Select all
; please, run it with debugger on.
Procedure MyFunc()
pdf_SetY(-10)
pdf_SetFont("Arial","B",8)
pdf_Cell(0,4,Str(pdf_PageNo())+"/{nb}",0,1,"C")
EndProcedure
file.s = "c:\tmppdf.pdf"
pdf_Open()
pdf_SetFooter(@MyFunc())
pdf_AliasNbPages()
pdf_AddPage()
pdf_SetFont("Arial","BUI",8)
pdf_Write(4,"http://www.test.com/{nb}/index.html") ; <-- Invalid memory access caused by the {nb}
pdf_Close()
pdf_Save(file)
RunProgram(file,"","")