Professional Web Applications Themes

how do i Remove WaterMarks / Stamps with SDK? - Adobe Acrobat 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" ...

  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. #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

  3. #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

  4. #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

  5. #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

  6. #6

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

    There are many samples in the SDK.
    Bernd Alheit Guest

  7. #7

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

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

Similar Threads

  1. Watermarks
    By garry@dot&pf webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 6
    Last Post: December 11th, 03:57 PM
  2. customized stamps
    By Yasmine_Medjadji@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 2
    Last Post: November 13th, 01:54 PM
  3. How to add my customize stamps to PDF?
    By goranwong@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 7
    Last Post: April 14th, 09:07 AM
  4. Creating watermarks
    By garry@dot&pf webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 3
    Last Post: July 24th, 02:02 AM
  5. Multiple Watermarks
    By Teresa in forum Windows XP/2000/ME
    Replies: 1
    Last Post: July 1st, 04:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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