/*---------------------------------------------------------------------------*
| Copyright (c) 1997-2010 PDFlib GmbH. All rights reserved. |
+---------------------------------------------------------------------------+
| This software may not be copied or distributed except as expressly |
| authorized by PDFlib GmbH's general license agreement or a custom |
| license agreement signed by PDFlib GmbH. |
| For more information about licensing please refer to www.pdflib.com. |
*---------------------------------------------------------------------------*/
/* $Id: pdflib.h,v 1.357.2.32 2010/12/08 12:38:54 rjs Exp $
*
* Public function declarations for PDFlib, PDFlib+PDI, and PPS;
* see PDFlib API reference for details.
*
*/
#ifndef PDFLIB_H
#define PDFLIB_H
/* Make our declarations C++ compatible */
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <setjmp.h>
#define PDFLIB_PRODUCTNAME "PDFlib"
/*
* The version defines below can be used to check the version of the
* include file against the library.
*/
#define PDFLIB_MAJORVERSION 8 /* major version number */
#define PDFLIB_MINORVERSION 0 /* minor version number */
#define PDFLIB_REVISION 2 /* revision number */
#define PDFLIB_SHORT_VERSIONSTRING "8" /* short version number */
#define PDFLIB_LONG_VERSIONSTRING "8.0.2" /* full version number*/
/*
* ----------------------------------------------------------------------
* Setup, mostly Windows calling conventions and DLL stuff
* ----------------------------------------------------------------------
*/
#if defined(WIN32) && !defined(PDFLIB_CALL)
#define PDFLIB_CALL __cdecl
#endif
#undef PDFLIB_API
#if defined(WIN32)
#ifdef PDFLIB_EXPORTS
#define PDFLIB_API __declspec(dllexport) /* prepare a DLL (internal use) */
#elif defined(PDFLIB_DLL)
#define PDFLIB_API __declspec(dllimport) /* PDFlib clients: import DLL */
#endif /* PDFLIB_DLL */
#else
#if __GNUC__ >= 4
#define PDFLIB_API __attribute__ ((visibility("default")))
#elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \
|| (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550)
#define PDFLIB_API __global
#endif
#endif /* WIN32 */
#ifndef PDFLIB_CALL
#define PDFLIB_CALL /* */ /* default: no special calling conventions */
#endif
#ifndef PDFLIB_API
#define PDFLIB_API /* */ /* default: generate or use static library */
#endif
#if !defined(PDF) || defined(ACTIVEX)
typedef struct PDF_s PDF;
#endif /* !PDF */
/* The API structure with function pointers. */
typedef struct PDFlib_api_s PDFlib_api;
/*
* ----------------------------------------------------------------------
* Function prototypes for all supported API functions
* ----------------------------------------------------------------------
*/
/* Activate a previously created structure element or other content item. */
PDFLIB_API void PDFLIB_CALL
PDF_activate_item(PDF *p, int id);
/* Deprecated, use PDF_create_bookmark(). */
PDFLIB_API int PDFLIB_CALL
PDF_add_bookmark(PDF *p, const char *text, int parent, int open);
/* Deprecated, use PDF_create_bookmark(). */
PDFLIB_API int PDFLIB_CALL
PDF_add_bookmark2(PDF *p, const char *text, int len, int parent, int open);
/* Deprecated, use PDF_create_action() and PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_add_launchlink(PDF *p, double llx, double lly, double urx, double ury,
const char *filename);
/* Deprecated, use PDF_create_action() and PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_add_locallink(PDF *p, double llx, double lly, double urx, double ury,
int page, const char *optlist);
/* Create a named destination on a page in the document. */
PDFLIB_API void PDFLIB_CALL
PDF_add_nameddest(PDF *p, const char *name, int len, const char *optlist);
/* Deprecated, use PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_add_note(PDF *p, double llx, double lly, double urx, double ury,
const char *contents, const char *title, const char *icon, int open);
/* Deprecated, use PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_add_note2(PDF *p, double llx, double lly, double urx, double ury,
const char *contents, int len_cont, const char *title, int len_title,
const char *icon, int open);
/* Add a point to a new or existing path object.
Returns: A path handle which can be used in subsequent path-related calls.
*/
PDFLIB_API int PDFLIB_CALL
PDF_add_path_point(PDF *p, int path, double x, double y,
const char *type, const char *optlist);
/* Deprecated, use PDF_create_action() and PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_add_pdflink(PDF *p, double llx, double lly, double urx, double ury,
const char *filename, int page, const char *optlist);
/* Add a file to a portfolio folder or a package (requires PDF 1.7).
Returns: -1 (in PHP: 0) on error, and 1 otherwise.
*/
PDFLIB_API int PDFLIB_CALL
PDF_add_portfolio_file(PDF *p, int folder, const char *filename, int len,
const char *optlist);
/* Add a folder to a new or existing portfolio (requires PDF 1.7ext3).
Returns: A folder handle which can be used in subsequent
portfolio-related calls.
*/
PDFLIB_API int PDFLIB_CALL
PDF_add_portfolio_folder(PDF *p, int parent, const char *foldername, int len,
const char *optlist);
/* Add a cell to a new or existing table.
Returns: A table handle which can be used in subsequent table-related calls.
*/
PDFLIB_API int PDFLIB_CALL
PDF_add_table_cell(PDF *p, int table, int column, int row, const char *text,
int len, const char *optlist);
/* Create a Textflow object, or add text and explicit options to an existing
Textflow.
Returns: A Textflow handle, or -1 (in PHP: 0) on error.
*/
PDFLIB_API int PDFLIB_CALL
PDF_add_textflow(PDF *p, int textflow, const char *text, int len,
const char *optlist);
/* Add an image as thumbnail for the current page. */
PDFLIB_API void PDFLIB_CALL
PDF_add_thumbnail(PDF *p, int image);
/* Deprecated, use PDF_create_action() and PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_add_weblink(PDF *p, double llx, double lly, double urx, double ury,
const char *url);
/* Align the coordinate system with a relative vector. */
PDFLIB_API void PDFLIB_CALL
PDF_align(PDF *p, double dx, double dy);
/* Draw a counterclockwise circular arc segment. */
PDFLIB_API void PDFLIB_CALL
PDF_arc(PDF *p, double x, double y, double r, double alpha, double beta);
/* Draw a clockwise circular arc segment. */
PDFLIB_API void PDFLIB_CALL
PDF_arcn(PDF *p, double x, double y, double r, double alpha, double beta);
/* Deprecated, use PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_attach_file(PDF *p, double llx, double lly, double urx, double ury,
const char *filename, const char *description, const char *author,
const char *mimetype, const char *icon);
/* Deprecated, use PDF_create_annotation(). */
PDFLIB_API void PDFLIB_CALL
PDF_attach_file2(PDF *p, double llx, double lly, double urx, double ury,
const char *filename, int len_filename, const char *description,
int len_descr, const char *author, int len_auth, const char *mimetype,
const char *icon);
/* Create a new PDF document subject to various options.
Returns: -1 (in PHP: 0) on error, and 1 otherwise.
*/
PDFLIB_API int PDFLIB_CALL
PDF_begin_document(PDF *p, const char *filename, int len, const char *optlist);
/* Create a new PDF document subject to various options. */
typedef size_t (*writeproc_t)(PDF *p1, void *data, size_t size);
PDFLIB_API void PDFLIB_CALL
PDF_begin_document_callback(PDF *p, writeproc_t writeproc, const char *optlist);
/* Start a Type 3 font definition. */
PDFLIB_API voi
没有合适的资源?快使用搜索试试~ 我知道了~
Libharu2.0 包括libhpdf.lib,libhpdf.dll
共31个文件
h:28个
dll:1个
hpp:1个
3星 · 超过75%的资源 需积分: 14 41 下载量 95 浏览量
2017-12-07
16:06:03
上传
评论 2
收藏 289KB RAR 举报
温馨提示
Libharu2.0 包括libhpdf.lib,libhpdf.dll,可以直接使用该静态库
资源推荐
资源详情
资源评论
收起资源包目录
Libharu.rar (31个子文件)
Libharu
libhpdf.dll 748KB
libhpdf.lib 48KB
include
hpdf_streams.h 6KB
hpdf.h 31KB
cpp_wrapped.h 60KB
hpdf_types.h 11KB
hpdf_pages.h 3KB
hpdf_annotation.h 2KB
hpdf_error.h 8KB
hpdf_list.h 2KB
hpdf_consts.h 24KB
hpdf_utils.h 4KB
hpdf_outline.h 2KB
hpdf_objects.h 13KB
pdflib.hpp 27KB
hpdf_encoder.h 9KB
hpdf_ext_gstate.h 884B
hpdf_info.h 1KB
hpdf_image.h 2KB
hpdf_encrypt.h 4KB
hpdf_catalog.h 2KB
hpdf_font.h 3KB
hpdf_gstate.h 2KB
hpdf_doc.h 3KB
hpdf_conf.h 2KB
hpdf_destination.h 1KB
hpdf_fontdef.h 11KB
hpdf_encryptdict.h 2KB
hpdf_mmgr.h 2KB
hpdf_page_label.h 904B
pdflib.h 64KB
共 31 条
- 1
资源评论
- 「已注销」2018-12-24能够正常使用
pilicaihong
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功