Announcement

Collapse
No announcement yet.

stamp PDF

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • FAQ stamp PDF

    Hi,

    How can I stamp a PDF document in top-corner-right using PageNumberingLabel class (I need the page number to be included in the stamp)? I don't know the stamp label's size in advance.

    Thank you in advance,
    Zora

  • #2
    Hello Zora,

    In order to stamp a PDF document in the top-right-corner (0, pageWidth) please use the StampTemplate.

    Stamp Templates
    All page elements within this Template will appear in the foreground of the other contents of the PDF.

    [Visual Basic]
    Dim MyTemplate As Template = New Template()
    MyTemplate.Elements.Add( New Label( "Header", 0, 0, 200, 12 ) )
    MyDocument.StampTemplate = MyTemplate

    [C#]
    Template template = new Template();
    template.Elements.Add( new Label( "Header", 0, 0, 200, 12 ) );
    document.StampTemplate = template;

    I hope this information helps you out.

    Thank you,
    Huy Tran

    Comment


    • #3
      Hi,
      I need to create a custom image stamp in the .Net SDK, but I cannot find the Template object or the StampTemplate in the SDK API?

      Thanks,
      OleM

      Comment


      • #4
        Dear Olemh,

        This post was not in the correct thread. The SDK is not Foxit ActiveX 5.1 SDK, however, it is Foxit Merger for .net SDK. Here is the evaluation link: http://cdn01.foxitsoftware.com/pub/f...NET102_enu.zip

        Include the library into your project and then you will see the StampTemplate in the Document class.

        Sincerely,
        Huy

        Comment

        Working...
        X