PurePDF Version 2.0

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 Version 2.0

Post by LuckyLuke »

Hi,

A new version of the PurePDF is available. Please note that I will release very soon extension libraries of PurePDF. The lib is also uploaded to PBOSL.
For the moment not all previous functions are available !

New functions :
- pdf_InsertTOC()
- pdf_TOCEntry()

The files can be download here.

Any comments are welcome.

Enjoy,

LuckyLuke
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

very thank you.

EDIT: bug while installing... please note the double '\\'
Image
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
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

The following directory should exist : ..\Examples\Source.

@NUM3: Can you fix this problem in the installer ? Thanks.
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Great! :)

Yeah... :cry: the same error during installation here...
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Got an error after PurePDF 2.0 installation,

Error: Constant already declared with a different value: #PDF_ALIGN_CENTER

[pause]

Hmmm... two .res files?!? One "pdf.res" and one "pdfres.res". The "pdfres.res" is from the new installation. Another Installer error? ;)

[edit]

I just renamed "pdfres.res" to "pdf.res" and deleted the other.
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

LuckyLuke wrote:The following directory should exist : ..\Examples\Source.

@NUM3: Can you fix this problem in the installer ? Thanks.
Upssss...

Stupid bug!

This will happen when you add files before you type the library name!

Code: Select all

FileData()\target_dir="Examples"+GetGadgetText(#Gadget_Li_name)+"\Source"
I've created an extra check to prevent this bug!

You can get the fixed version here: http://io-soft.planetaclix.pt/files/Li2.zip
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

Thanks Num3 for this very fast reply ! :)

Important Note :
The previous version of PurePDF should be uninstalled ! Else you'll get :
Error: Constant already declared with a different value: #PDF_ALIGN_CENTER
My excuses for all these problems, but I was still at work ... (still sleeping) :wink:

New links to download from :Install or Zip
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Very, very good !! :D
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

PDFDraw, the first extension library is available here.
It contains the following functions :
  • pdf_Circle()
    pdf_Ellipse()
    pdf_Rotate()
    pdf_Sector()
    pdf_SetDash()
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

the pdf_PageNo() function disappeared... :?
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
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

pdf_PageNo() became pdf_GetPageNo().

Some other changes :
pdf_Open() => pdf_Create()
pdf_SetFooter() => pdf_SetProcFooter()
pdf_SetHeader() => pdf_SetProcHeader()
pdf_Close() => not needed anymore
pdf_CreateIndex() => removed and replaced by more flexible
pdf_InsertTOC()
pdf_SetProtection() => removed
pdf_Protection() => removed
...
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Excellent lib :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

For some reason... only half the PDF Draw functions show in PB and none of the main functions show for the PDF plugin when I code.

I tried reinstalling to no avail.

Ideas?
Intrigued - Registered PureBasic, lifetime updates user
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

@Intrigued :
Do you have the following files installed in the UserLibraries
  • mem
    pdf
    pdfDraw
Or try these downloads :
PurePDF
PDFDraw

Or can you send me the files mentioned above from your UserLibraries ?
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

I look at the new version and found in the helpfiles a lot of "ipf_"-commands. What's the difference between "pdf_" and "ipf_"?
Post Reply