how do i Remove WaterMarks / Stamps with SDK?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default how do i Remove WaterMarks / Stamps with SDK?

    Hi,
    I have added watermarks to a couple of thousand files in our DB - using API, these are status watermarks that should change when the relevant object changes status. I originally intended to do it by keeping the source files (without watermarks) and using them as base for the new watermark, but apparently the source is not always available and i have to remove the watermarks.

    We have Acrobat 8.1 pro, and can remove the watermark easily through UI, but I can't find the way to do it through API.

    I have both "addWaterMarkFromText" with status date and "addWatermarkFromFile" with status stamp on each file.

    I tried and got false on:

    pdApp.MenuItemExecute("COMP:RemoveWatermark")

    I tried the OCG approach:
    'get the OCG's
    Dim OCGs As Object
    OCGs = jsObj.getOCGs(0)
    For i As Integer = 0 To OCGs.length - 1
    If OCGs(i).name = "WaterMark" Then
    OCGs(i).state = False
    End If
    Next

    It finds one watermark OCG on the first page but doesn't turn it off.
    keep in mind that i do want a watermark OCG - but a new one with the new status

    Anyone knows how i can do it?????
    Jaakov_Jalink@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. customized stamps
      Hi, I work for a large firm that uses PDFs to send out to the people who review them. They use stamps to do so, but within the firm we would like...
    2. Printing Stamps
      I'm using the 5.0.5 version of acrobat. We use a custom draft stamp when we send items to clients. Is there a way to be sure that the "draft" prints...
    3. How to add my customize stamps to PDF?
      I could only add the default stamps that come with the Acrobat, how could I add my customize stamp to PDF? Thank you for your help Goran
    4. WATERMARKS, SLIDESHOWS ETC
      How does the watermark work or slideshow pictures to EXE work?
  3. #2

    Default Re: how do i Remove WaterMarks / Stamps with SDK?

    There is no Javascript API for removing a watermark.
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: how do i Remove WaterMarks / Stamps with SDK?

    Hi Leonard,
    Is there any other way - short of UI send keys to do it???

    should i give up on this and only concentrate on finding the unstamped files???

    Thanks,
    JJ.
    Jaakov_Jalink@adobeforums.com Guest

  5. #4

    Default Re: how do i Remove WaterMarks / Stamps with SDK?

    You could write a custom plugin in C/C++ to remove them if it's important enough...
    Leonard_Rosenthol@adobeforums.com Guest

  6. #5

    Default Re: how do i Remove WaterMarks / Stamps with SDK?

    Can you point me to some sample C/C++ plugin??
    Jaakov_Jalink@adobeforums.com Guest

  7. #6

    Default Re: how do i Remove WaterMarks / Stamps with SDK?

    There are many samples in the SDK.
    Bernd Alheit Guest

  8. #7

    Default Re: how do i Remove WaterMarks / Stamps with SDK?

    Thanks, I'll check there.
    Jaakov_Jalink@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139