PDF Mosaic: How to add Strike Out annotation to PDF documents


Home       Features       Download       License       Tutorial       Version History       Source Code

 

This sample shows how to add strike out annotations to your PDF document.

Use PDFStrikeOutAnnotation class to add strike out annotation.


 

using PDFMosaic;
using System;
 
namespace PDFStrikeOutAnnotationSample
{
    class PDFStrikeOutAnnotationSample
    {
        static void Main()
        {
            PDFDocument pdf = new PDFDocument();
            pdf.Pages.Add(new PDFPage(PDFPaperFormat.A4));
            PDFStrikeOutAnnotation annot = new PDFStrikeOutAnnotation(100, 50, 75, 50, 45);
            annot.Contents = "PDF strike out annotation";
            annot.Color = new PDFColorRGB(80, 0, 150);
 
            pdf.Pages[0].Annotations.Add(annot);
            pdf.Save("TestStrikeOutAnnotation.pdf", true);
        }
    }
}

 


Home       Features       Download       License       Tutorial       Version History       Source Code