How to .... ?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

How to .... ?

Post by John - Tracker Supp »

We are in the process of evaluating the tracker ActiveX and so far things look pretty good but we have a question.

Here is what we need to accomplish:

1. Start with a blank PDF.
2. A medical records analyst adds an Sticky note and a line (comment) to the document.
3. Later a Medical Records review person needs to redact a certain portion of the document because a physician accidentally put say HIV information on a History and Physical document - using a text box and 'fallatening'

4. NOTE: Through creating a custom style, we figured how to apply the style to a rectangle comment to achieve the redaction; however, it is only a “layer” and can be moved by anyone viewing the document. We need to “burn” or “flatten” this markup, without flattening the Sticky note or line left by the original analyst.


Is there a programmatic way to get and set the list of “comments” that were added to a PDF document. For example, if we have a PDF document and we had a line, box and a sticky note, is there a way to programmatically get those, hold onto them for a minute while we are manipulating the document and put them back on.

Thanks,
Jon Stonis
Product Planner
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to .... ?

Post by Vasyl - PDF-XChange »

3. Later a Medical Records review person needs to redact a certain portion of the document because a physician accidentally put say HIV information on a History and Physical document - using a text box and 'fallatening'
We will to add 'redaction' tool in the near future (possible in 43 build).
Is there a programmatic way to get and set the list of “comments” that were added to a PDF document. For example, if we have a PDF document and we had a line, box and a sticky note, is there a way to programmatically get those, hold onto them for a minute while we are manipulating the document and put them back on.
You can use special Java Script for this (by RunJavaScript routine in our ActiveX control):

Code: Select all

function lockAnnots(nPage, bReadOnly)
{
    var a = this.getAnnots(nPage);
    if (a != null)
    {
      for (i = 0; i < a.length; i++) a[i].readOnly = bReadOnly;
    }
}
lockAnnots(0, true); // lock all annotations on the first page
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.