PdfPage.AddRichMediaAnnotation Method

Adds the new rich media annotation to the PdfPage.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfRichMediaAnnotation AddRichMediaAnnotation(
	PdfRectangle bounds,
	PdfFileSpecification asset,
	PdfRichMediaContentType contentType
)
VB
Public Function AddRichMediaAnnotation ( 
	bounds As PdfRectangle,
	asset As PdfFileSpecification,
	contentType As PdfRichMediaContentType
) As PdfRichMediaAnnotation

Parameters

bounds
Type: BitMiracle.Docotic.Pdf.PdfRectangle
The bounds of the rich media annotation.
asset
Type: BitMiracle.Docotic.Pdf.PdfFileSpecification
The file specification with a rich media content to use in the annotation.
contentType
Type: BitMiracle.Docotic.Pdf.PdfRichMediaContentType
The type of the rich media content.

Return Value

Type: PdfRichMediaAnnotation
The newly created PdfRichMediaAnnotation object.

Remarks

Adobe software usually supports media in the following formats:

  • U3D and PRC for ThreeD type.
  • H.264 encoded audio for Sound type.
  • H.264 encoded video for Video type.

Flash is deprecated and should not be used in new annotations.

See Also