PurePDF library 1.0 BETA

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks alot LuckyLuke :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post 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
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post 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())
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post 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:
wdurden
User
User
Posts: 13
Joined: Mon Feb 23, 2004 3:29 am

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

Post 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!
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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 ?
wdurden
User
User
Posts: 13
Joined: Mon Feb 23, 2004 3:29 am

thanks Lucky Luke

Post 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!
schic
User
User
Posts: 34
Joined: Fri Sep 12, 2003 10:17 am

Post 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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

@LuckyLuke:

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

EDIT: funny, now TailBite crashes when compiling again.
El_Choni
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Fixed (update to TailBite 1.2 Beta 1.8)
El_Choni
PATLOU
User
User
Posts: 12
Joined: Mon Oct 18, 2004 6:24 am

HELP FILE in purepdf

Post 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.
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Lucky,
I don't use your lib at the moment, but i send you my congratulations for this useful product. :D
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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:
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

could you please have a look at the problem explained here :
viewtopic.php?t=13259
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply