Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9047333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:53:09+00:00 2026-06-16T11:53:09+00:00

I am trying to put a sticky note at some x,y location. For this

  • 0

I am trying to put a sticky note at some x,y location. For this i am using the pdfclown annotation class in .net.
Below is what is available.

    using files = org.pdfclown.files;
    public override bool Run()
    {
        files::File file = new files::File();
        Document document = file.Document;
        Populate(document);
        Serialize(file, false, "Annotations", "inserting annotations");
        return true;
    }

    private void Populate(Document document)
    {
        Page page = new Page(document);
        document.Pages.Add(page);
        PrimitiveComposer composer = new PrimitiveComposer(page);
        StandardType1Font font = new StandardType1Font(document, StandardType1Font.FamilyEnum.Courier, true, false);
        composer.SetFont(font, 12);
        annotations::Note note = new annotations::Note(page, new Point(78, 658), "this is my annotation...");
        note.IconType = annotations::Note.IconTypeEnum.Help;
        note.ModificationDate = new DateTime();
        note.IsOpen = true;
        composer.Flush();
    }

Link for annotation
This is putting a sticky note at 78, 658 cordinates in a blank pdf.

The problem is that i want that sticky note in a particular pdf which has some data. How can i modify it…thanks for the help..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:53:10+00:00Added an answer on June 16, 2026 at 11:53 am

    I’m the author of PDF Clown — this is the right way to insert an annotation like a sticky note into an existing page:

    using org.pdfclown.documents;
    using annotations = org.pdfclown.documents.interaction.annotations;
    using files = org.pdfclown.files;
    using System.Drawing;
    
    . . .
    
    // Open the PDF file!
    using(files::File file = new files::File(@"C:\mypath\myfile.pdf"))
    {
      // Get the document (high-level representation of the PDF file)!
      Document document = file.Document;
      // Get, e.g., the first page of the document!
      Page page = document.Pages[0];
    
      // Insert your sticky note into the page!
      annotations::Note note = new annotations::Note(page, new Point(78, 658), "this is my annotation...");
      note.IconType = annotations::Note.IconTypeEnum.Help;
      note.ModificationDate = new DateTime();
      note.IsOpen = true;
    
      // Save the PDF file!
      file.Save(files::SerializationModeEnum.Incremental);
    }
    

    Please consider that there are lots of options about the way you can save your file (to an output (in-memory) stream, to a distinct path, as a compacted file, as an appended file…).

    If you look at the 50+ samples accompanying the library’s distribution, along with the API documentation, you can discover how expressive and powerful it is. Its architecture strictly adheres to the official Adobe PDF Reference 1.7.

    enjoy!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to put some slightly tricky form validation (in this instance for checkboxes) in
I'm trying to put some custom list adapters into their own classes to make
I'm trying to put together a GUI for setting some pricing. There are three
I'm trying to put together a layout using Bootstrap that resembles your typical OS
I am trying to put together a simple POC for a n-layer application using
I trying to put my Mac's data in order. I have many rc-files at
I'm trying to put together a plugins system with .NET, and I'm not sure
trying to put together a 3-tiered array of term, class, students for a waitlist
I'm trying to put some folders on my hard-drive into an array. For instance,
I am using asp.net mvc 3 jquery validate unobstructive javascript. I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.