This sample shows how to merge two PDF pages into one page side by side. For this, the code creates an XObject from each page and then draws these objects on a new page side by side.
Docotic.Pdf library can create XObjects from PDF document pages. XObject is a container with graphics, images, and text. For most use cases, such objects are like vector image.
You can reuse the same XObject on many pages without inflating the size of the document. You can put an XObject into another document. Use one of the PdfCanvas.DrawXObject methods in your C# or VB.NET code to add the XObject to a page.
XObjects are a good choice for watermarks and backgrounds. You can also use XObjects to impose (combine) PDF pages onto sheets to make books, booklets, or special arrangements. It is possible to resize pages with the help of such objects.