
with 4.50b3 it was working ....
PurePDF Version 2.16 ; PB 4.50 ; Windows XP SP3Tutorial02 Header-Footer.pb wrote: #PDF_ALIGN_CENTER is missing ! (ans other too)
i can´t reproduce it here, do you have the resident installed correctly ?STARGÅTE wrote:thx for this Lib, but the exampels not run:PurePDF Version 2.16 ; PB 4.50 ; Windows XP SP3Tutorial02 Header-Footer.pb wrote: #PDF_ALIGN_CENTER is missing ! (ans other too)
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)
Code: Select all
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")
BR Klausfixed a bug in pdf_Cell() found by Thorsten1867
added new path functions:
- pdf_PathBegin()
- pdf_PathArc()
- pdf_PathLine()
- pdf_PathRect()
- pdf_PathEnd()
Code: Select all
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