Page 1 of 6

PurePDF library 1.0 BETA

Posted: Sat May 29, 2004 8:32 pm
by LuckyLuke
Hi,

Based on the FPDF I created a PureBasic PDF Library.

The files can be downloaded at :
http://smollies.fateback.com/PurePDF.zip
and at : http://www.purearea.net

I'm still working on the reference manual.
Any comments are welcome.

Enjoy,

LuckyLuke

Posted: Sun May 30, 2004 6:15 am
by clipper
Hey Luke I´m lucky
great work!!

I dont´t want to be outrageous so allow me to ask this: Do you plan to publish the sources ?

Thank´s a lot for the lib

Posted: Sun May 30, 2004 9:45 am
by Num3
Excellent work!

The only example that did not work was n.5, seems you're using another lib to make the compression? Zlib?

Posted: Sun May 30, 2004 10:09 am
by Christian
Hi!

Same for me: Number five doesn't work. But nevertheless you did a great job! :)

Did you write the library in Purebasic and compiled with Talbite or did you use C?

regards,
Christian

Posted: Sun May 30, 2004 12:34 pm
by aXend
This works great! Thanks! :D
Tutorial number 5 did work for me. I had to install ZLib and ZLibWrapper.

I have one remark: I have a PDF tool that makes it possible to edit a PDF document. This tool can open all PDF's I have seen yet, but it can't open the PDF your tool produces. I also see that Adobe Acrobat Reader opens the PDF's saying "Rebuilding...". Do you use a different PDF structure than normal and could you change that?

Posted: Sun May 30, 2004 2:04 pm
by LuckyLuke
Thanks for nice the comments. :D
Example 5 is using the ZLib and ZLibWrapper libraries.
I Used purebasic and Tailbite to create this lib.
I need to do some cleanup first of the sources before publishing the them.

The download file contains a reference manual now.

Have to go now. Icecream is waiting for me. :wink:

Posted: Sun May 30, 2004 7:10 pm
by GeoTrail
No 5 worked for me too.
Excellent work.
This thing is excellent. Great work.

Posted: Sun May 30, 2004 10:29 pm
by aXend
I still have some remarks about the PDF structure. I used a PDF analyzer and that crashed on reading your PDF's. All other PDF's are processed perfectly. May be you should have a look at it.

Posted: Sun May 30, 2004 10:44 pm
by GeoTrail
I did notice that when opening the pdf files, Acrobat Reader had to rebuild the file before opening them. It only does that on the files created with the lib. I'm using the latest Acrobat Reader.

Acrobat Reader rebuild

Posted: Mon May 31, 2004 6:43 am
by clipper
I think there is an error in the generated PDF-Files.
In my tutorial1.pdf, the Offset to xref is not correct:

Code: Select all

startxref
888
%%EOF
this points to "startxref"
you must use the offset to "xref"

Code: Select all

startxref
663
%%EOF

Posted: Mon May 31, 2004 7:26 am
by eddy
Respect :) :) :)

Posted: Mon May 31, 2004 12:50 pm
by LuckyLuke
An updated version that solves the startxref problem (wrong offset used :oops: ) can be found at :
http://smollies.fateback.com/PPDFUp01.zip

Thanks again for the information/comments. :D

Posted: Mon May 31, 2004 5:49 pm
by aXend
This works perfectly now. :D Compliments :!:

Posted: Tue Jun 01, 2004 12:38 pm
by techjunkie
Great work!!!

PB Forum MUST have the most brilliant peoples on the Internet... :)

Posted: Sat Jun 05, 2004 9:22 pm
by LuckyLuke
Version 1.02 released
- Added pdf_Ellipse
- Added pdf_Circle
- Added pdf_IncludeJS (include javascript in PDF document)
- Added pdf_MultiCellBlt
- Added WaterMark tutorial (tut13)
- Update pdf_Cell : Forced justification added (FJ)
- Update pdf_MultiCell : Forced justification added (FJ)
- Bugfix pdf_Multicell (using border 1)
- Bugfix pdf_Rotate (angle 0 restored)

http://smollies.fateback.com/PPDFUp02.zip