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

  1. #1

    Default Stamp annotation

    Hi,

    I try to add a stamp annotation by code, a real stamp, not stamp from the sample code (i.e, PDFReference.pdf, Interactive Features).

    Is there someone who guide me? Any hint will be appreciate, in particular a sample using the PDE high level layer, but one with the COS low level layer is appreciate too.

    Thank you.
    Christian R.
    Christian_Rocher@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. 3D annotation Posters
      How do you set a poster on a 3D annotation? I've tried setting up a image Xobject but that did not work. The docs say that I have to use a...
    2. Screen Annotation Help
      Hi there, If anyone is familiar with screen annotations, could you please guide me into the right direction as to what entries I am required to...
    3. How to image Annotation?
      First, thanks you for your reply. I want to image annotation,but Stamper is a text annotation .can you give me Some suggestions about image annotion...
    4. Adobe Annotation
      Problem in hiding the free text annoation after entering some text .show error when i tried to hide annotation using method called...
    5. ASP - PDF annotation
      Does anyone know how to do the pdf annotation with ASP? Thanks
  3. #2

    Default Re: Stamp annotation

    Assuming you mean the creation of a Stamp annotation - then everything you need is documented in the PDF Reference. There is also a sample in the SDK that demonstrates most of the key things you need to know.

    If, after reviewing both of those things, you still have problems - please identify specific areas.

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: Stamp annotation

    Thank for this "no hint", but I need a real stamp as documented in the "Interactive Features", not the sample with this horrible hand made stamp.

    There is a built-in stamp in Acrobat, all is in the documentation about the stamp itself (Interactive features). The hard part for me is to implement it with the PDE layer, because there is no clear sample of using PDE in this way.

    Thank to anybody who can help me.
    Christian R.
    Christian_Rocher@adobeforums.com Guest

  5. #4

    Default Re: Stamp annotation

    The "Stamp" in Interactive Features is a Stamp Annotation. That means that before you worry about PDE layer, you need to first learn about the PD and Cos Layers - esp. PDAnnot and the CosDict and CosArray objects. And again, I point you to the COMPLETE Acrobat SDK and the Stamper plugin sample for about 95% of what you need here - the differences being that it creates a custom type for the Annot instead of Stamp.

    Once you've got the annotation itself working - THEN you can worry about putting other content into the visual appearance (AP) for the annotation. The Stamper sample does this "the hard way", but you could easily replace that with PDE layer calls. Look at the Snippet samples for a variety of PDE layer examples.

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  6. #5

    Default Re: Stamp annotation

    Hi,

    In respect with the sentence "You can do it, but you must do it yourself", I try to create my own stamp :-((.

    Please, Is there someone to explain how to write multi-lines text. In the documentation, I'm supposed to be able to use \n and-or \r to do it. But those characters appears as is!!!???

    Where is the truth. Must I create a second stream in my object? Or a second stream in another object? Or...? Or forgot PDF and move to ODT (OpenDocument Text file)?

    Any practical assistance is appreciate.
    Thank you
    Christian R.
    Christian_Rocher@adobeforums.com Guest

  7. #6

    Default Re: Stamp annotation

    If you are using PDFEdit, there is no such thing as multi-line text.
    There are just lines of text, which you place and position separately.
    This follows from the PDF Reference, which the PDFEdit layer just
    abstracts: no newline characters in page text.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  8. #7

    Default Re: Stamp annotation

    Hi,

    Finally after hard efforts to understand how to write a stamp, I encountered a new problem.

    When I open a PDF file in Acrobat all works fine. But when when a PDF file is displayed in an external window (OpenInWindowEx), I cannot access my stamp annotation, the tool is not accessible. The button and the menu are not visible. I tried to call it by code and it does not work too.

    How can I activate my stamps?

    Thank you.
    Christian_Rocher@adobeforums.com Guest

  9. #8

    Default Re: Stamp annotation

    There's a function something like AVToolButtonIsExternal which you use
    to set the function visible externally. You have to code very
    carefully in this case. Most especially, never use AVAppGetActiveDoc,
    as it will return NULL, or a document open in Acrobat.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  10. #9

    Default Re: Stamp annotation

    Hi Aandi,

    It works fine. Thanks a lot.

    Christian R.
    Christian_Rocher@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