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.
Need help rebuilding PurePDF for PB3.93
Need help rebuilding PurePDF for PB3.93
PB 3.93 Registered User
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
3. Compile everything with TBManager.exe (when getting errors you forgot to delete the old libs and .res files)

PS : in 3. i forget the right order is essential
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;
- pdfres.pb
memres.pb
mem.pb
pdf.pb

PS : in 3. i forget the right order is essential

PurePDF library
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 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.

PB 3.93 Registered User
- Andre
- PureBasic Team
- Posts: 2137
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: PurePDF library
I've written a mail to Luk this evening, also directing him to this thread.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 will inform you, when I got a reply.
I've had a reply
LuckyLuke is back and has already posted a new version.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.
You can get it here : http://smollies.fateback.com/PurePDF123.exe
Many thanks to him for this *GREAT* lib !
PB 3.93 Registered User
Here I am
A new version can be found at
http://smollies.fateback.com/PurePDF123.exe
and it has been send to Andre too.

A new version can be found at
http://smollies.fateback.com/PurePDF123.exe
and it has been send to Andre too.
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.
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,"","")
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer