PurePDF library 1.0 BETA

Developed or developing a new product in PureBasic? Tell the world about it.
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

PurePDF library 1.0 BETA

Post 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
clipper
User
User
Posts: 44
Joined: Fri Aug 29, 2003 7:47 am
Location: Germany

Post 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
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post 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?
Christian
Enthusiast
Enthusiast
Posts: 154
Joined: Mon Dec 08, 2003 7:50 pm
Location: Germany

Post 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
aXend
Enthusiast
Enthusiast
Posts: 103
Joined: Tue Oct 07, 2003 1:21 pm
Location: Netherlands

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

Post 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:
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

No 5 worked for me too.
Excellent work.
This thing is excellent. Great work.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
aXend
Enthusiast
Enthusiast
Posts: 103
Joined: Tue Oct 07, 2003 1:21 pm
Location: Netherlands

Post 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.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
clipper
User
User
Posts: 44
Joined: Fri Aug 29, 2003 7:47 am
Location: Germany

Acrobat Reader rebuild

Post 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
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

Respect :) :) :)
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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
aXend
Enthusiast
Enthusiast
Posts: 103
Joined: Tue Oct 07, 2003 1:21 pm
Location: Netherlands

Post by aXend »

This works perfectly now. :D Compliments :!:
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Great work!!!

PB Forum MUST have the most brilliant peoples on the Internet... :)
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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
Post Reply