Page 4 of 32
Posted: Fri May 11, 2007 7:12 am
by Tranquil
Hi all!
Hope that PurePDF is still in develope couse I tried it today and fall in love with it.
Anyway, I think I found a bug. pdf_line() crashed with an invalid memory access every time. I'm not able to use this command in any way.
Downloaded the latest Version of purepdf from smollies.be Version 2.07.
This is what I tried:
Code: Select all
pdf_Create()
pdf_AddPage("l")
pdf_SetFont("Arial","",12)
pdf_Text(10,10,"Planung & Kontingente für den "+FormatDate("%dd.%mm.%yyyy",Date())+" Stand:"+FormatDate("%hh:%ii Uhr",Date()))
pdf_SetFont("Arial","",9)
pdf_Text(10,14,"blablablabla")
pdf_Save(curpath.s+"data/test.pdf")
pdf_Line(10,16,10,16)
Posted: Fri May 11, 2007 8:39 am
by LuckyLuke
@Tranquil
Calling the pdf_Save function will close the document. So all other pdf_
functions should be called before this line.
Code: Select all
pdf_Create()
pdf_AddPage("l")
pdf_SetFont("Arial","",12)
pdf_Text(10,10,"Planung & Kontingente für den "+FormatDate("%dd.%mm.%yyyy",Date())+" Stand:"+FormatDate("%hh:%ii Uhr",Date()))
pdf_SetFont("Arial","",9)
pdf_Text(10,14,"blablablabla")
pdf_Line(10,16,10,16)
pdf_Save(curpath.s+"data/test.pdf")
Regards,
Posted: Fri May 11, 2007 10:54 am
by Tranquil
ARRGLLL!! What have I done there!?!? Damn, I'm so stupid. Forget it. Shame on me! And I began searching the source for bugs.
Thanks anyway LuckyLuke! Good work!!
Posted: Fri Jul 06, 2007 11:12 pm
by ABBKlaus
new version is out
PurePDF V2.08
- small bugfix of PDF_BookMark (Thanks to Thorsten1867)
Regards Klaus
Posted: Fri Jul 06, 2007 11:19 pm
by Flype
thank you ABBKlaus and Thorsten1867 for the update.
Posted: Sat Jul 07, 2007 12:12 pm
by Thorsten1867
Thanks a lot! Now the the bookmarks are working correctly.

Posted: Thu Jul 26, 2007 10:26 am
by bender-rulez
Hi,
is there a Linux verison? FPDF also exist for Linux...

Posted: Fri Jul 27, 2007 3:03 pm
by ABBKlaus
@bender-rulez,
should work on linux too, but you have to strip some Windows API Functions :
Code: Select all
ipf_LocalDecimal()
ipf_Get_CharWidth()
ipf_Get_Font()
ipf_SetFontData()
Case 3 ; Embed the Font <- must be removed
then you have a linux version without the font-embedding and a problem with the decimal separator !
Regards Klaus
Posted: Fri Nov 09, 2007 11:50 pm
by ABBKlaus
just recompiled PurePDF with PB4.10 final, please redownload
http://www.purebasicpower.de/?PurePDF
Regards Klaus
Posted: Sat Nov 10, 2007 2:40 pm
by Marco2007
thanx, so much
The day I`ll just work with 4.10 is coming closer....
Posted: Wed Jan 02, 2008 6:56 pm
by ABBKlaus
For all Beta-Testers :
PurePDF V2.09 for PB4.20 Beta 1
http://www.purebasicpower.de/?PurePDF
Regards Klaus
Posted: Fri Jan 04, 2008 3:34 am
by DoubleDutch
Thanks, much appreciated.

Posted: Tue Mar 04, 2008 2:10 am
by fsw
Somehow:
pdf_SetFont("Times","-B",12)
pdf_SetFont("Times","-I",12)
doesn't work, but
pdf_SetFont("Times","-U",12)
does.
While using "-B" the underline of an underlined text is bold, but not the text itself...
Posted: Tue Mar 04, 2008 5:14 am
by Rook Zimbabwe
Crud... I poseted an error problem about Exelwriter... Sorry!
Posted: Tue Mar 04, 2008 12:43 pm
by ABBKlaus
fsw wrote:Somehow:
pdf_SetFont("Times","-B",12)
pdf_SetFont("Times","-I",12)
doesn't work, but
pdf_SetFont("Times","-U",12)
does.
While using "-B" the underline of an underlined text is bold, but not the text itself...
Here´s the correct usage of pdf_SetFont() :
Code: Select all
pdf_SetFont(Family$ [, Style$ [, Size.b]])
pdf_SetFont("Times","",12) ; Regular
pdf_SetFont("Times","B",12) ; Bold
pdf_SetFont("Times","I",12) ; Italic
pdf_SetFont("Times","U",12) ; Underlined
pdf_SetFont("Times","BI",12) ; Bold+Italic
pdf_SetFont("Times","BIU",12) ; Bold+Italic+Underlined