Home Features Download Tutorial Version History License PDF Mosaic Blog Source Code
This sample shows how to use buttons in your PDF document.
Use PDFPushButton class to add a button.
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"; page.Annotations.Add(button); doc.Pages.Add(page); doc.Save("Buttons.pdf", true); } } }
Home Features Download Tutorial Version History License PDF Mosaic Blog Source Code