GetContent
Watermarker.GetContent<T> method
Returns the Content
object for the loaded document.
public T GetContent<T>()
where T : Content
Parameter | Description |
---|---|
T | The requested type of a Content object. |
Return Value
The Content
object for the loaded document.
Examples
Rasterize pdf document page with added watermark.
PdfLoadOptions loadOptions = new PdfLoadOptions();
using (Watermarker watermarker = new Watermarker(@"C:\doc.pdf", loadOptions))
{
using (ImageWatermark watermark = new ImageWatermark(@"C:\watermark.png"))
{
watermarker.Add(watermark);
}
PdfContent content = watermarker.GetContent<PdfContent>();
content.Rasterize(300, 300, PdfImageConversionFormat.Png);
watermarker.Save();
}
See Also
- class Content
- class Watermarker
- namespace GroupDocs.Watermark
- assembly GroupDocs.Watermark