NO

Author Topic: Tiny PDF-library for PellesC alpha preview  (Read 8475 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Tiny PDF-library for PellesC alpha preview
« on: October 08, 2005, 11:34:10 AM »
This is tiny PDF-library for PellesC, alpha preview.
Released for user comments.
May the source be with you

MirekCZ

  • Guest
Re: Tiny PDF-library for PellesC alpha preview
« Reply #1 on: May 30, 2011, 12:22:08 AM »
This is tiny PDF-library for PellesC, alpha preview.
Released for user comments.
Tiny and nice. Many thanks. Very usefull in starting of PDF programming from the scratch.
In case of this package I needed a little time fpr laboration with polink, pocc and so on. It took less than hour.
« Last Edit: May 30, 2011, 12:27:26 AM by MirekCZ »

czerny

  • Guest
Re: Tiny PDF-library for PellesC alpha preview
« Reply #2 on: December 27, 2011, 07:04:19 PM »
Hi timovjl,

what deflat library have you used (beside of zlib)?

czerny

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Tiny PDF-library for PellesC alpha preview
« Reply #3 on: December 27, 2011, 08:40:42 PM »
It was taken from Info-ZIP package.
May the source be with you

czerny

  • Guest
Re: Tiny PDF-library for PellesC alpha preview
« Reply #4 on: December 27, 2011, 11:13:51 PM »
Thank you timovjl!

Some remarks:

I have commented the dependancy from ppdf.lib in ppdflib.h

Code: [Select]
#ifndef NODLL
//  #pragma comment(lib, "PPDF.lib")
#else
  #pragma comment(lib, "PPDFLib.lib")
#endif

because the import library is not yet created.

I think, it would be better to not include 'memcompress' in deflate.lib or alternatively to provide a header file which mirrors all the functions of this library.

czerny

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Tiny PDF-library for PellesC alpha preview
« Reply #5 on: December 28, 2011, 12:21:49 PM »
Quote
I have commented the dependancy from ppdf.lib in ppdflib.h

Code: [Select]
#ifndef NODLL
//  #pragma comment(lib, "PPDF.lib")
#else
  #pragma comment(lib, "PPDFLib.lib")
#endif

because the import library is not yet created.
Or define _DLL for dll-project and use this:
Code: [Select]
#ifndef _DLL
  #ifndef NODLL
    #pragma comment(lib, "PPDF.lib")
  #else
    #pragma comment(lib, "PPDFLib.lib")
  #endif
#endif
If you want use error.c
Code: [Select]
#include <stdio.h>
#ifdef _DLL
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif

void __cdecl error(char *msg) {
#ifdef _DLL
MessageBox(0, msg, "PPDFLib", MB_OK);
#else
fprintf(stderr, msg);
#endif
}
May the source be with you

EdPellesC99

  • Guest
Re: Tiny PDF-library for PellesC alpha preview
« Reply #6 on: December 29, 2011, 12:53:24 AM »
Hi Timo,
The link on click or rt clk save as is a .php not a zip.

I don't think I am doing something wrong.....?

Tx,
Ed

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: Tiny PDF-library for PellesC alpha preview
« Reply #7 on: December 29, 2011, 03:26:50 AM »
Hi Timo,
The link on click or rt clk save as is a .php not a zip.

I don't think I am doing something wrong.....?

Tx,
Ed
Firefox seems to do this to me after I just updated to 9.01 the other day. Just tell it to safe under the proper name, that at least worked for me...

Actually, I just tried it again and it works just as it should...  :-\ Gremlins?

Ralf