Pelles C forum

C language => User contributions => Topic started by: TimoVJL on October 08, 2005, 11:34:10 AM

Title: Tiny PDF-library for PellesC alpha preview
Post by: TimoVJL on October 08, 2005, 11:34:10 AM
This is tiny PDF-library for PellesC, alpha preview.
Released for user comments.
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: MirekCZ on May 30, 2011, 12:22:08 AM
Quote from: timovjl on October 08, 2005, 11:34:10 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.
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: czerny on December 27, 2011, 07:04:19 PM
Hi timovjl,

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

czerny
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: TimoVJL on December 27, 2011, 08:40:42 PM
It was taken from Info-ZIP package.
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: czerny on December 27, 2011, 11:13:51 PM
Thank you timovjl!

Some remarks:

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

#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
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: TimoVJL on December 28, 2011, 12:21:49 PM
QuoteI have commented the dependancy from ppdf.lib in ppdflib.h


#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:
#ifndef _DLL
  #ifndef NODLL
    #pragma comment(lib, "PPDF.lib")
  #else
    #pragma comment(lib, "PPDFLib.lib")
  #endif
#endif

If you want use error.c
#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
}
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: EdPellesC99 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
Title: Re: Tiny PDF-library for PellesC alpha preview
Post by: Bitbeisser on December 29, 2011, 03:26:50 AM
Quote from: EdPellesC99 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
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