PDF Toolkit

Samples

Overlay PDF

Add a PDF page as an overlay to another PDF

This Code sample requires the PDF Toolkit and is found in: C:\Aquaforest\PDF Toolkit\samples\AddOverlay


using Aquaforest.PDF;

namespace AddOverlay
{
    class Program
    {
        static void Main(string[] args)
        {
            PDFDocument overlay = new PDFDocument(@"..\..\..\documents\source\overlay.pdf");
            PDFDocument overlayDestination = new PDFDocument(@"..\..\..\documents\source\image_pdf.pdf");
            PDFOverlay o = new PDFOverlay(overlay, overlayDestination);
            o.ApplyOverlay(@"..\..\..\documents\output\overlay_output.pdf");
        }
    }
}