Tile PDF pages vertically with iTextSharp

五迷三道 提交于 2019-11-29 16:36:24
Bruno Lowagie

I changed your question because splitting a PDF has a different meaning to many of us. For instance: you can split a PDF with 10 pages into two PDF with 5 pages.

You don't want to split a PDF, you want to tile a PDF. This is explained in chapter 6 of my book: http://www.manning.com/lowagie2/samplechapter6.pdf See section 6.2.3 "N-up copying and tiling PDF documents".

In case you aren't familiar with Java, you can always download the C# version of the examples here: http://sourceforge.net/p/itextsharp/code/HEAD/tree/book/iTextExamplesWeb/iTextExamplesWeb/iTextInAction2Ed/

For instance: http://sourceforge.net/p/itextsharp/code/HEAD/tree/book/iTextExamplesWeb/iTextExamplesWeb/iTextInAction2Ed/Chapter06/TilingHero.cs

You'll need to adapt this example as it tiles an A0 page into 16 A4 pages, but that's a matter of simple math. That would be off topic on a developers' forum ;-)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!