Click or drag to resize

HtmlStamp Class

Class HtmlStamp. Used With the StampHTML(HtmlStamp) methods to edit PDF documents by 'stamping' additional content into the foreground or background.
Inheritance Hierarchy
SystemObject
  IronPdfHtmlStamp

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.6.19602 (4.4.6.1)
Syntax
public class HtmlStamp

The HtmlStamp type exposes the following members.

Constructors
  NameDescription
Public methodHtmlStamp
Initializes a new instance of the HtmlStamp class.
Public methodHtmlStamp(String)
Initializes a new instance of the HtmlStamp class.
Public methodHtmlStamp(String, Int32, Int32)
Initializes a new instance of the HtmlStamp class.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Fields
  NameDescription
Public fieldAutoCenterStampContentOnStampCanvas
The automatic centers stamp content within stamp canvas as defined by Width and Height.
Public fieldBottom
The position of the stamp from the Bottom edge of the PDF document in mm. If Top or Bottom is not set, the stamp will be vertically centered in the document.
Public fieldHeight
The height of the stamp in mm. Stamps can not automatically detect their own size based on their content.
Public fieldHtml
The HTML fragment which will be stamped onto your PDF. All external references to javascript, CSS and image files will be relative to HtmlBaseUrl.
Public fieldHtmlBaseUrl
The HTML base URL for which references to external CSS, Javascript and Image files will be relative.

A trick to make references relative to a your project file is

HtmlBaseUrl = new Uri(System.Reflection.Assembly.GetEntryAssembly().Location).AbsoluteUri

Public fieldHyperlink
Makes the entire stamp link to a web hyperlink. Note that HTML links created by <a href=''> tags are not reserved by stamping.
Public fieldLeft
The position of the stamp from the Left of the PDF document in mm. If Left or Right is not set, the stamp will be horizontally centered in the document.
Public fieldOpactity
Allows the stamp to be transparent. 0 is invisible, 100 if fully opaque.
Public fieldRight
The position of the stamp from the Right of the PDF document in mm. If Left or Right is not set, the stamp will be horizontally centered in the document.
Public fieldRotation
Rotates the stamp clockwise from 0 to 360 degrees as specified.
Public fieldTop
The position of the stamp from the Top edge of the PDF document in mm. If Top or Bottom is not set, the stamp will be vertically centered in the document.
Public fieldWidth
The width of the stamp in mm. Stamps can not automatically detect their own size based on their content.
Public fieldZIndex
Defines if this stamp should be placed behind or on-top of existing PDF contents.
Top
See Also