It is currently Sun May 19, 2013 1:07 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 299 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 20  Next
Author Message
 Post subject: Re: PurePDF Version 2.0
PostPosted: Thu May 06, 2010 5:30 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed May 05, 2004 4:04 pm
Posts: 633
Location: Germany
unfortunately PurePDF causes an ima with 4.50b4 (win x86) :(
with 4.50b3 it was working ....

_________________
Zip_It V1.1
Image


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Thu May 06, 2010 6:40 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Yes i noticed this too, recompiled with Beta4 and should be up now :wink:

(since i haven´t changed the filename you have to redownload, if behind a proxy pressing CONTROL should help !)

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jun 01, 2010 12:05 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 7:24 pm
Posts: 458
Location: Germany
I'm afraid I may have discovered a bug in PurePDF (or my own code...). I started a separate thread for it. See here: http://www.purebasic.fr/english/viewtopic.php?f=13&t=42431. It's about the function pdf_AliasNbPages().

_________________
The truth is never confined to a single number - especially scientific truth!


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jun 01, 2010 6:02 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
thanks merendo for the info, the bug was in MEM_DataReplace() allocating a memorybuffer slightly too small ;-)

BR Klaus

Download :

PurePDF V2.16 for PB4.4x X86
PurePDF V2.16 for PB4.50 X86

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jun 01, 2010 8:03 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 7:24 pm
Posts: 458
Location: Germany
Terrific!! Works just fine now, thanks a lot!

Edit: And thanks for the tribute to me in the version history ;)

_________________
The truth is never confined to a single number - especially scientific truth!


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jun 08, 2010 12:04 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 10, 2008 1:30 pm
Posts: 711
Location: Germany, Glienicke
thx for this Lib, but the exampels not run:
Tutorial02 Header-Footer.pb wrote:
#PDF_ALIGN_CENTER is missing ! (ans other too)

PurePDF Version 2.16 ; PB 4.50 ; Windows XP SP3

_________________
Image


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jun 08, 2010 2:50 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
STARGÅTE wrote:
thx for this Lib, but the exampels not run:
Tutorial02 Header-Footer.pb wrote:
#PDF_ALIGN_CENTER is missing ! (ans other too)

PurePDF Version 2.16 ; PB 4.50 ; Windows XP SP3


i can´t reproduce it here, do you have the resident installed correctly ?

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jun 08, 2010 4:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 10, 2008 1:30 pm
Posts: 711
Location: Germany, Glienicke
ah thx, had only copy the Lib

_________________
Image


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Sun Jun 13, 2010 11:27 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
here´s a slightly improved version for download.

PurePDF v2.17 wrote:
- added pdf_RoundRect(X.f, Y.f, W.f, H.f, R.f [, Style$])
(feature request was made by Num3)

Download :
PurePDF V2.17 for PB4.50 X86

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jul 20, 2010 3:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 525
Location: Germany
I think, I found a bug. Try this:
Code:
  pdf_Create("P", "mm", #PDF_PAGE_FORMAT_A4)
  pdf_AddPage()
  ; --- ohne Akzent ------------
  pdf_SetFont("Arial", "U", 16)
  lenVN = pdf_GetStringWidth("Andre") + 1
  pdf_Cell(0, 6, "Andre", 0, 1)
  ; --- mit Akzent ------------
  pdf_SetFont("Arial", "U", 16)
  lenVN = pdf_GetStringWidth("André") + 1
  pdf_Cell(0, 6, "André", 0, 1)
  ; ----------------------------
  pdf_Save("Test.pdf")

Underline does'nt work correct, if I there is an accent.

_________________
PS: Sorry for my bad English. My native language is German.

My PureBasic-Project: EasySetup - SetupMaker for your programs
[Windows 7 x64] [PB V5.0x]


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Jul 20, 2010 9:29 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Yes it was the implementation of octal encoding that causes pdf_cell to fail on this.

I will fix it asap :wink:

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Wed Jul 21, 2010 10:29 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Hi,

here is a new version of PurePDF.

Quote:
fixed a bug in pdf_Cell() found by Thorsten1867
added new path functions:
- pdf_PathBegin()
- pdf_PathArc()
- pdf_PathLine()
- pdf_PathRect()
- pdf_PathEnd()


BR Klaus

Download :

PurePDF V2.19 for PB4.3x X86
PurePDF V2.19 for PB4.4x X86
PurePDF V2.19 for PB4.50 X86

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Thu Aug 12, 2010 8:48 am 
Offline
Always Here
Always Here
User avatar

Joined: Sat Aug 30, 2003 5:58 pm
Posts: 5892
Location: Denmark
I finally decided to upgrade from purebasic 4.0 to 4.5 for the PDF-generators at work (had to do a few small fixes), just to find that it works with no changes to the source code with the new library. Thanks a lot for continuing to update and maintain this :)


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Mon Aug 30, 2010 11:59 am 
Offline
User
User

Joined: Mon Aug 30, 2010 11:51 am
Posts: 21
hello :D

I know this is a bit off topic but can someone give me an example how i can use the

ipf_ASCII85_Encode and ipf_ASCII85_Decode function from PurePDF

to convert any binary file into a ASCII85 encoded text file and vise versa?


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Mon Aug 30, 2010 6:53 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Hello PureGuy,

this example should get you started.

BR Klaus

Code:
Demodata$="START"+Chr(13)
For i=1 To 32
  Demodata$+"This text is encoded with ASCII85 !"+Chr(13)
Next
Demodata$+"END"

ASCII85.MEM_DataStructure
ASCII85\pData=AllocateMemory(Len(Demodata$)+2)
ASCII85\lCurSize=Len(Demodata$)
ASCII85\lMaxSize=Len(Demodata$)+2
PokeS(ASCII85\pData,Demodata$,-1,#PB_Ascii)

Characters_per_line=60
If pdf_ASCII85_Encode(@ASCII85,Characters_per_line)
  Message$=Chr(13)+Chr(13)+"Buffer = "+Str(ASCII85\lCurSize)+" Bytes !"
  Encoded_ASCII85$=PeekS(ASCII85\pData,-1,#PB_Ascii)
  MessageRequester("ASCII85 Encode",Encoded_ASCII85$+Message$)
 
  BufferLen=4096
  Buffer=AllocateMemory(BufferLen)
  If pdf_ASCII85_Decode(ASCII85\pData,ASCII85\lCurSize,Buffer,@OutBufferLen)=0
    Message$=Chr(13)+Chr(13)+"Buffer = "+Str(OutBufferLen)+" Bytes !"
    Decoded_ASCII85$=PeekS(Buffer,-1,#PB_Ascii)
    MessageRequester("ASCII85 Decoded",Decoded_ASCII85$+Message$)
  EndIf
EndIf

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 299 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 20  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye