Need help rebuilding PurePDF for PB3.93

Just starting out? Need help? Post your questions and find answers here.
tOnGAs
User
User
Posts: 12
Joined: Tue Aug 31, 2004 12:08 pm
Location: France

Need help rebuilding PurePDF for PB3.93

Post 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.
PB 3.93 Registered User
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post 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 :D

PS : in 3. i forget the right order is essential :wink:
tOnGAs
User
User
Posts: 12
Joined: Tue Aug 31, 2004 12:08 pm
Location: France

Success !

Post by tOnGAs »

It actually worked and all the examples do compile ok.
Thank you for your help. :D
PB 3.93 Registered User
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post 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 :D

Please use me email: andre at purebasic . com

Thanks !
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
tOnGAs
User
User
Posts: 12
Joined: Tue Aug 31, 2004 12:08 pm
Location: France

PurePDF library

Post 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.

:idea: It would be best if we contact the original author. Anybody knowing him by any chance ?
PB 3.93 Registered User
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: PurePDF library

Post 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.

:idea: 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. :wink:

I will inform you, when I got a reply.
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
tOnGAs
User
User
Posts: 12
Joined: Tue Aug 31, 2004 12:08 pm
Location: France

I've had a reply

Post 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 !
PB 3.93 Registered User
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post 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,"","")
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
Post Reply