资源简介
vc环境下用于输出pdf文档的一款开源库,已经编译成功
代码片段和文件信息
#include
#include
#include
#include
#include “hpdf.h“
jmp_buf env;
#ifdef HPDF_DLL
void __stdcall
#else
void
#endif
error_handler (HPDF_STATUS error_no
HPDF_STATUS detail_no
void *user_data)
{
printf (“ERROR: error_no=%04X detail_no=%u\n“ (HPDF_UINT)error_no
(HPDF_UINT)detail_no);
longjmp(env 1);
}
void
draw_image (HPDF_Doc pdf
const char *filename
float x
float y
const char *text)
{
#ifdef __WIN32__
const char* FILE_SEPARATOR = “\\“;
#else
const char* FILE_SEPARATOR = “/“;
#endif
char filename1[255];
HPDF_Page page = HPDF_GetCurrentPage (pdf);
HPDF_Image image;
strcpy(filename1 “images“);
strcat(filename1 FILE_SEPARATOR);
strcat(filename1 filename);
image = HPDF
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1945 2010-10-12 22:39 libharu\include\config.h.in
文件 42545 2011-03-28 21:33 libharu\include\hpdf.h
文件 1586 2010-11-22 18:13 libharu\include\hpdf_3dmeasure.h
文件 2669 2010-11-22 18:13 libharu\include\hpdf_annotation.h
文件 2099 2010-01-19 17:30 libharu\include\hpdf_catalog.h
文件 2735 2011-04-26 22:26 libharu\include\hpdf_conf.h
文件 3299 2011-10-12 16:22 libharu\include\hpdf_config.h
文件 24870 2011-04-21 02:43 libharu\include\hpdf_consts.h
文件 1186 2010-01-19 17:30 libharu\include\hpdf_destination.h
文件 3627 2010-01-19 17:30 libharu\include\hpdf_doc.h
文件 9463 2011-04-21 02:43 libharu\include\hpdf_encoder.h
文件 4325 2010-01-19 17:30 libharu\include\hpdf_encrypt.h
文件 1776 2010-01-19 17:30 libharu\include\hpdf_encryptdict.h
文件 8871 2010-01-19 17:30 libharu\include\hpdf_error.h
文件 1048 2010-11-22 18:13 libharu\include\hpdf_exdata.h
文件 971 2010-01-19 17:30 libharu\include\hpdf_ext_gstate.h
文件 3388 2010-01-19 17:30 libharu\include\hpdf_font.h
文件 11315 2010-01-19 17:30 libharu\include\hpdf_fontdef.h
文件 2430 2010-01-19 17:30 libharu\include\hpdf_gstate.h
文件 3032 2010-11-22 18:23 libharu\include\hpdf_image.h
文件 1251 2010-01-19 17:30 libharu\include\hpdf_info.h
文件 1823 2010-01-19 17:30 libharu\include\hpdf_list.h
文件 1990 2010-01-19 17:30 libharu\include\hpdf_mmgr.h
文件 1816 2010-01-19 17:30 libharu\include\hpdf_namedict.h
文件 14307 2010-11-22 18:24 libharu\include\hpdf_ob
文件 1717 2010-01-19 17:30 libharu\include\hpdf_outline.h
文件 3181 2010-01-19 17:30 libharu\include\hpdf_pages.h
文件 991 2010-01-19 17:30 libharu\include\hpdf_page_label.h
文件 1016 2010-11-22 18:14 libharu\include\hpdf_pdfa.h
文件 6662 2010-11-22 18:21 libharu\include\hpdf_streams.h
............此处省略86个文件信息
评论
共有 条评论