Re: PurePDF Version 2.0
Posted: Tue Feb 04, 2014 2:10 pm
Is it possible to use Purepdf on X64 computer ? If yes how can i do ?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
#PurePDF_Include=1
XIncludeFile "PurePDF.pb"
On X64ABBKlaus wrote:Just use the XIncludeFile method. Some examples already have it on top but commented out.
http://www.purebasicpower.de/downloads/ ... Actions.pbCode: Select all
#PurePDF_Include=1 XIncludeFile "PurePDF.pb"
Code: Select all
Debug #PDF_VER ; should read 2.24
Code: Select all
ImportC #ZLIB_IMPORT_PATH
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
_compress.l(*dest, *destlen, *source, sourcelen) As "_compress"
CompilerElse
_compress.l(*dest, *destlen, *source, sourcelen) As "compress"
CompilerEndIf
EndImport
The Structure is present in PurePDF_res.pb which gets XIncluded in PurePDF.pb, but only if you are using the correct Version. Otherwise i have no clue why you are getting this errorloulou25223 wrote:On X64
on this ligne
---------------------------
PureBasic
---------------------------How can i solve these problem ?Procedure.l PDFCompress(*aData.MEM_DataStructure)
Ligne 16: Structure introuvable: MEM_DataStructure.
Code: Select all
Procedure.l PDFCompress(*aData.MEM_DataStructure)
Protected zerr,CompMem,SourceLen,SourceMem,CompLen,lbError
lbError = #False
SourceLen = *aData\lCurSize
SourceMem = *aData\pData
CompLen = Round(1.001 * SourceLen,#PB_Round_Up) + 12
CompMem = AllocateMemory(CompLen)
If CompMem
zerr=_compress(CompMem,@CompLen,SourceMem,SourceLen)
If zerr = 0
*aData\pData = CompMem
*aData\lMaxSize = CompLen
*aData\lCurSize = CompLen
[b]FreeMemory(Sourcemem)[/b] error L'argument memoryid spécifié n'est pas valide
lbError = #True
EndIf
EndIf
ProcedureReturn lbError
EndProcedure
I have no Problems here with PB 5.11 / 5.21 LTS x86.loulou25223 wrote:I have a problem with compressed
When i use it the programm fall down on this instruction :
with PDF 2.24 32 bits on a computer with Seven and PPUREPDF libCode: Select all
...[b]FreeMemory(Sourcemem)[/b] error L'argument memoryid spécifié n'est pas valide ...
Code: Select all
Procedure.l PDFCompress(*aData.MEM_DataStructure)
Protected zerr,CompMem,SourceLen,SourceMem,CompLen,lbError
; check sourcemem here - see if it is zero!
lbError = #False
SourceLen = *aData\lCurSize
Code: Select all
DisableDebugger
FreeMemory(Sourcemem)
EnableDebugger
Thanks for the finding and sorry for the delay.normeus wrote:ABBKlaus,
I downloaded what I figured was the latest PurePDF. ( With the rest of the world using DD/MM/YYYY and USA using MM/DD/YYYY kind of gets difficult to figure out the right date).
Version 2.25 for P.B.51 & P.B.52
Bookmarks are not working anymore.
Version 2.24 bookmarks work fine.
Norm.
Code: Select all
pdf_BookMark("Paragraph 1",2,-1) ; oops 2 without a 1
pdf_Cell(0,6,"Paragraph 1")
pdf_Ln(10)
pdf_BookMark("Paragraph 1.1",1,-1)