摘要:
断断续续的写了一些关于iText in Action 2nd这本书的很多读书笔记,这里汇总一下方便别人也方便自己。 Part 1 (从头构建pdf文档) Pdf和Itext的介绍 五步创建一个新的pdf文档 Using iText’s Basic building block 文档中添加chunk, 阅读全文
摘要:
前言在前面的章节中我们知道一个PdfStamper对象只能对应一个PdfReader对象。因此当我们将多个文档组装或者编辑时就需要用到另一个类:PdfCopy。PdfCopy继承PdfWriter,因此在五步创建文档过程中可以用PdfCopy代替PdfWriter,就如以下代码所示:listing 6.20 SelectPages.csint n = reader.NumberOfPages;Document document = new Document();PdfCopy copy = new PdfCopy(document, new FileStream(result2, FileMo 阅读全文