.Net Windows application and PDF redaction(editing)

Posted on 2009-02-11
Last Modified: 2013-12-17
Hi I am new to Acrobat SDK.
I am trying to develop a Windows application using C# which can load PDF documents(Scanned  Images) stored in Oracle database as BLOBS(Binary bytes) into the application window and allow user to redact(paint black rectangle) to hide sensitive info and save it back to Oracle using ADO.NET.
I am planning to use VISUAL STUDIO 2008, C#, ADOBE ACROBAT PRO 9.0 and ORACLE 11g
I have 3 questions;
# How do I load a PDF byte stream into windows application.
# Is there any activex PDF viewer available for the app to use to load the PDF? If no, then how do I do that?
What kind of tools/utility that acrobat provides for a windows .net app to allow user to redact the PDF.
# How can I save the redacted PDF it back to byte stream so I can save that to the database?.
Thanks a lot in advance
Question by:hasan_tek
    LVL 44

    Expert Comment

    by:Karl Heinz Kremer
    Take a look at iTextSharp ( - This will allow you to load a PDF, but drawing on a PDF image is not as simple as you might think. The Acrobat SDK will not help you - unless you are willing to write a plug-in (in C++), you do not have access to the bitmap information in the document. Acrobat does allow you to redact documents, but as far as I know, there is no API, so you have to use the Acrobat application to manipulate your documents.
    LVL 1

    Author Comment

    Is it easier to convert the PDF to Multipage TIFF(which I can do using ADOBE ACROBAT SDK) and use some drawing utility inside the app and convert it back to PDF?. IF that is possible could you please help me in what kind of controls do I use to edit a Tiff within the .Net app and how to programatically save the changes
    LVL 8

    Assisted Solution

    You could just use a PictureBox.  Load the TIFF into the PB and allow the user to 'draw' on the picturebox by manually handling clicks and painting using GDI.

    Than save the updated image back to PDF.
    LVL 1

    Author Comment

    Thanks Mac-will,
    "allow the user to 'draw' on the picturebox by manually handling clicks and painting using GDI."
    Could you suggest any code link or example regarding allowing user to click through and paint, because I donot have any experience with GDI.
    LVL 1

    Accepted Solution

    I am trying a different solution to this issue.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article is in response to a question here ( at Experts Exchange. The Original Poster has a scanned signature and wants to make the background transparent so that the signature may be pl…
    This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
    In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now