Step by step for make libharu work on c++ builder
(this no need hpdf.dll or hpdf.lib)
A. Combine all file :
1. make new folder ex : sourcelib.
2. copy all header file (*.h) from include folder into sourcelib folder.
3. Copy all c file (*.c) from src folder into sourcelib folder.
4. Copy zconf.h, zlib.h & zlib.lib from zlib folder into sourcelib folder.
(at this point i have to remove all file which contain name png, because when try to compile
there error, i hope someone can find solution for this png stuff)
Embedded on C++ Builder Xe7
1. Open C++ Builder Xe7
2. Create File->New->Multi Device Application
3. Save project
4. Copy/Remove folder sourcelib (point A.1) into project folder
5. on C++ Builder Right Click on project then click add
6. chose folder sourcelib then Change type file combobox into any file (*.*)
7. select all file then click open
that its now you can create pdf app for windwos,mac,android & ios
you only add
#include <setjmp.h>
#include "hpdf.h"
jmp_buf env;
for error handle you can modified something like this
void error_handler(HPDF_STATUS error_no,HPDF_STATUS detail_no,void *user_data)
{
String msgreslt;
msgreslt = ("ERROR: error_no=%04X, detail_no=%u\n",(HPDF_UINT)error_no,(HPDF_UINT)detail_no);
longjmp(env, 1);
}
and for the rest you can copy script from libharu demo folder
I hope this will help someone out there
Have A nice Day