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 7824285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:32:58+00:00 2026-06-02T08:32:58+00:00

I am trying to find a way to allow the user to annotate (i.e.

  • 0

I am trying to find a way to allow the user to annotate (i.e. free form drawing) an existing PDF file in iOS, but the only approach that I have found seems extraordinarily cumbersome.

The solution is in Monotouch, but I can translate from Objective-C if needed. This will also mean that many of the method and property names may not be completely familiar to non-Monotouch developers, but I am just looking for an approach.

I currently have code that allows users to annotate images (jpg, png) using the TouchesMoved and TouchesBegan events on a UIView. This works well and accomplishes what I need.

However, when working with an existing PDF file, it seems that the majority of the CGPDF functionality is centered around creating new files rather than editing existing ones.

The only approach that I have been able to come up with is the following:

  1. When the UIView is opened, create a temporary file and set the PDF context to that file (UIGraphics.BeginPDFContext(filename)).

  2. Create a new CGPDFDocument from the original file and then draw each page from the original PDF into the current context, which will be the new temporary file.

  3. Destroy the original PDF document created in step 2.

  4. Show the user the first page and then let them draw on it, with the drawing commands being sent to the new file’s context. There will also be methods to allow the user to change pages.

  5. When the user is done, close the PDF context, which will save all of the annotations to the new PDF file.

This seems like it has the potential to be an enormous memory and performance hog, so I am wondering if there is any other way to approach this?

  • 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-02T08:33:00+00:00Added an answer on June 2, 2026 at 8:33 am

    The way that we finally accomplished this was to draw the PDF into a regular view, then insert a subview above this view where the annotations are actually drawn. We have to record the annotations as they occur and adjust for zooming. When the user is done, we draw each page of the PDF into a new PDF file and play back the annotations into that page, thus effectively adding annotations to an existing PDF.

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

Sidebar

Related Questions

i am trying to find a way to allow a user to click items
I'm trying to find a way to validate a large XML file against an
I'm currently trying to find out if there is a way to allow our
I'm trying to find a way to strip tags from a user-inputted string except
I'm trying to find a way to allow really long text in an HTML
Trying to find a way to send a POST HTTPS request from Python to
I am trying to find a way to impelement a share button into my
I am trying to find a way to may a onclick javascript function execute
I'm trying to find a way to spilt a string into single words OR
I'm trying to find a way to buffer FileNames from a given directory in

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.