You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
* << Haru Free PDF Library 2.0.0 >> -- font_demo.cpp * * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp> * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. * It is provided "as is" without express or implied warranty. * */ #include <assert.h>
#include <iconv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include "appbase/utils/zsimplepdf.hpp"
using namespace std; using namespace iflytop;
int main() { ZSimplePDF pdf("test.pdf"); pdf.newConent(30); pdf.addText("Page0 Size30 文件头.....\n"); pdf.newConent(20); pdf.addText("文件内容 文件内容\n"); pdf.addText("文件内容 文件内容\n"); pdf.addText("文件内容 文件内容\n"); pdf.newConent(15); pdf.addText("文件内容 文件内容\n");
pdf.newPage();
pdf.newConent(30); pdf.addText("Page1 Size30 文件头.....\n"); pdf.newConent(20); pdf.addText("文件内容 文件内容\n"); pdf.addText("文件内容 文件内容\n"); pdf.addText("文件内容 文件内容\n"); pdf.newConent(15); pdf.addText("文件内容 文件内容\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n"); pdf.addText("\n");
pdf.dump(); // pdf.dump("test.pdf", "940年3月,英国物理学家奥托弗里施鲁道夫佩尔斯撰写了弗");
return 0; }
|