DjVu Namespace > Document Class : MergePages Method |
Overload | Description |
---|---|
MergePages(Document) | Merges the specified document to this document. |
MergePages(Document,ChunkNameRenameHandler,Boolean,Boolean) | Merges the specified document to this document. |
Merging two documents is not a simple task. A document may have bookmarks and annotations besides its pages. Because the pages are normally identified by their names and if both of the documents have the pages of conflicting names, simply moving the pages may break bookmarks, links and other document consistencies.
These methods take care of such complicated things automatically and are the recommended way to merge documents.
Merging two documents |
Copy Code |
---|---|
using System; using DjVu; class MargeSample { static void Main(string[] args) { using (var doc0 = new Document(args[0])) using (var doc1 = new Document(args[1])) { doc0.MergePages(doc1); doc0.SaveAs(args[2]); } } } |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family