资源简介
vc 操作pdf源代码 pdflib 4.0
代码片段和文件信息
/* $Id: hello.cv 1.6.2.2 2002/01/22 19:49:33 tm Exp $
* PDFlib client: hello example in C
*
*/
#include
#include
#include “pdflib.h“
int
main(void)
{
PDF *p;
int font;
p = PDF_new();
/* open new PDF file */
if (PDF_open_file(p “hello.pdf“) == -1) {
fprintf(stderr “Error: cannot open PDF file hello.pdf.\n“);
exit(2);
}
PDF_set_info(p “Creator“ “hello.c“);
PDF_set_info(p “Author“ “Thomas Merz“);
PDF_set_info(p “title“ “Hello world (C)!“);
PDF_begin_page(p a4_width a4_height); /* start a new page */
/* Change “host“ encoding to “winansi“ or whatever you need! */
font = PDF_findfont(p “Helvetica-Bold“ “host“ 0);
PDF_setfont(p font 24);
PDF_set_text_pos(p 50 700);
PDF_show(p “Hello world!“);
PDF_continue_text(p “(says C)“);
PDF_end_page(p); /* close page */
PDF_close(p); /* close PDF document */
PDF_delete(p); /* delete the PDF object */
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2004-03-24 16:17 pdflib-4.0.2
目录 0 2004-03-17 16:21 pdflib-4.0.2\bind
目录 0 2004-03-17 16:42 pdflib-4.0.2\bind\c
文件 4352 2004-03-17 16:31 pdflib-4.0.2\bind\c\c.dsp
文件 499500 2004-03-17 16:35 pdflib-4.0.2\bind\c\hello
文件 1007 2004-03-17 16:31 pdflib-4.0.2\bind\c\hello.c
文件 509056 2004-03-17 16:34 pdflib-4.0.2\bind\c\image
文件 1302 2004-03-17 16:31 pdflib-4.0.2\bind\c\image.c
文件 2592 2004-03-17 16:31 pdflib-4.0.2\bind\c\Makefile
文件 2510 2004-03-17 16:31 pdflib-4.0.2\bind\c\Makefile.in
文件 499500 2004-03-17 16:34 pdflib-4.0.2\bind\c\pdfclock
文件 2508 2004-03-17 16:31 pdflib-4.0.2\bind\c\pdfclock.c
文件 2393 2004-03-17 16:31 pdflib-4.0.2\bind\c\personalize.c
文件 1886 2004-03-17 16:31 pdflib-4.0.2\bind\c\quickreference.c
文件 39 2004-03-17 16:31 pdflib-4.0.2\bind\c\readme.txt
目录 0 2004-03-24 16:16 pdflib-4.0.2\bind\cpp
文件 2951 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\Cplusplus.dsp
文件 2534 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\except.c
文件 2550 2004-03-18 09:59 pdflib-4.0.2\bind\cpp\except.h
文件 1067 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\hello.cpp
文件 1400 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\image.cpp
文件 3377 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\Makefile.in
文件 2563 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\pdfclock.cpp
文件 21946 2004-03-18 10:06 pdflib-4.0.2\bind\cpp\pdflib.cpp
文件 26525 2004-03-18 09:33 pdflib-4.0.2\bind\cpp\pdflib.h
文件 12028 2004-03-18 09:39 pdflib-4.0.2\bind\cpp\pdflib.hpp
文件 2414 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\personalize.cpp
文件 2011 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\quickreference.cpp
文件 294 2004-03-17 16:26 pdflib-4.0.2\bind\cpp\readme.txt
目录 0 2004-03-17 16:21 pdflib-4.0.2\bind\java
............此处省略404个文件信息
- 上一篇:vivado使用误区与进阶.pdf
- 下一篇:测试用的pcm音频数据
评论
共有 条评论