Page 5 of 6

Posted: Wed Oct 27, 2004 10:20 am
by GeoTrail
Thanks alot LuckyLuke :)

Posted: Wed Oct 27, 2004 2:56 pm
by RJP Computing
I installed your new version and every example I try compiles fine but when I run it it crashes. Are there any other requirement to use this? Like other .dll's or libs?

I would really like this. Thanks

Posted: Wed Oct 27, 2004 7:42 pm
by ABBKlaus
same problem here too , but if you recompile the lib with tailbite ... :?

can someone explain this :?:

maybe the lib was compiled before fred changed a bit in PB3.92 :roll:

[edit]the only exception is example nr 19 (it crashes on pdf_setprotection())

Posted: Wed Oct 27, 2004 10:25 pm
by ABBKlaus
found some bugs :
pdf.pb -> pdf_CreateIndex() -> str.s <- protected see str() funtion
PrivateFunctions.pbi -> _md5_16(*txt,txt_len) -> Shared ret$ <- when inline asm turned on reserved word used as symbol

PS : but this doesn´t solve the problem with tut19.pb :cry:

any ideas on opening an existing pdf form and writing on it?

Posted: Thu Oct 28, 2004 2:13 pm
by wdurden
First of all LuckyLuke a BIG Thanks for this most excellent library and the help files and tuts included! This solves a great many report generating needs I am sure. In my case, I am trying to take an existing form (i.e. a government tax schedule) and write in figures on that form. I don't see how to open an existing document. At first I thought it would be in the open command, but there is no param for a filename... Is there a way to accomplish the task of opening an existing form so I can write on it?

Thanks again for your release of this library!

Posted: Thu Oct 28, 2004 6:33 pm
by LuckyLuke
For the moment it is not possible to open existing PDF files. However, i found a php class doing this : FPDI. I'll have a look on this.

The lib was compiled before fred changed a bit in PB3.92. That's caused the crashes.

@ABBKlaus, El_Choni:
I can't create a new lib with PB3.92 (after fred changes) and Tailbite V1.2Beta1.5. Putting the pdf_SetProtection in comments works fine. :?
I guess that's why Tut19 fails .
Any help is appreciated.
Maybe I need to split the lib in several smaller parts ?

thanks Lucky Luke

Posted: Thu Oct 28, 2004 8:31 pm
by wdurden
I took a look at your link re FPDI and I was surprised at the effort needed for that solution.... :( In another language I had captured an image of the pdf as a bmp and wrote on top of that (a less than optimum means but passable) and I suspect I will duplicate that using the manually captured image of the pdf in the background of the actual PDF.

Thanks again for your efforts!

Posted: Sat Oct 30, 2004 6:00 pm
by schic
there is a bug in _md5_16
freeing memory with FreeMemory(*txt) it works for me. I am using PB 9.2.

Code: Select all

Procedure.s _md5_16(*txt,txt_len)
  tmp$ = MD5Fingerprint(*txt,txt_len)
  ret$=""
  For i = 1 To 32 Step 2
    ret$ + Chr(hexdec(Mid(tmp$,i,2)))
  Next
  FreeMemory(*txt)
  ProcedureReturn ret$
EndProcedure
___________
schic

Posted: Sat Oct 30, 2004 6:25 pm
by El_Choni
@LuckyLuke:

I compiled your lib here, no problem (only with pdf_SetProtection())

EDIT: funny, now TailBite crashes when compiling again.

Posted: Fri Nov 05, 2004 1:59 am
by El_Choni
Fixed (update to TailBite 1.2 Beta 1.8)

HELP FILE in purepdf

Posted: Fri Nov 05, 2004 2:01 pm
by PATLOU
It seems that in the help file the explanation on PDF_setprotection isn't present.
Can you plan to open an existing document ?
Can you plan forms ?
Thanks for your library which know works perfectly with teh new version of Talibite (Thanks also to El Choni)
Sorry for my bad english.

Posted: Sat Nov 06, 2004 10:09 am
by LuckyLuke
@PATLOU
Open an existing document seems to be difficult to implement. (PHP class FPDI).
The forms script on the FPDF site only works with Acrobat Reader 5.1.

@ALL
Interested in helping me to improve the PurePDF lib ? Please contact me.

Posted: Sat Nov 06, 2004 11:16 am
by Psychophanta
Lucky,
I don't use your lib at the moment, but i send you my congratulations for this useful product. :D

Posted: Thu Nov 11, 2004 3:38 pm
by LuckyLuke
New version released :
PurePDF 1.21

Barcode support added.
Added constants (see help file)
Improved pdf_image function

Some functions have other arguments now :
pdf_open
pdf_cell
pdf_setdisplaymode

Enjoy :wink:

Posted: Fri Dec 03, 2004 10:22 am
by Flype
could you please have a look at the problem explained here :
viewtopic.php?t=13259