Tiny PDF-library for PellesC alpha preview

Started by TimoVJL, October 08, 2005, 11:34:10 AM

Previous topic - Next topic

TimoVJL

This is tiny PDF-library for PellesC, alpha preview.
Released for user comments.
May the source be with you

MirekCZ

#1
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.

czerny

Hi timovjl,

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

czerny

TimoVJL

May the source be with you

czerny

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

TimoVJL

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
}
May the source be with you

EdPellesC99

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

Bitbeisser

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