GetContent
Leave feedback
On this page
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. |
The Content object for the loaded document.
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();
}
- class Content
- class Watermarker
- namespace GroupDocs.Watermark
- assembly GroupDocs.Watermark
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.