How To Add Push Button To PDF Document In PDF Mosiac .NET SDK

This sample shows how to use buttons in your PDF document.
Use PDFPushButton class to add a button.

PDF push buttons


using PDFMosaic;
using System;

namespace Buttons
    class Buttons
        static void Main()
            PDFDocument doc = new PDFDocument();
            PDFPage page = new PDFPage(PDFPaperFormat.A4);

            PDFPushButton button = new PDFPushButton(10, 40, 100, 30, "btn1");
            button.Caption = "Button";


            doc.Save("Buttons.pdf", true);