Selective PDF page content rendering

XFINIUM.PDF 6.9 brings support for selective PDF page content rendering. This means that you can render only the page text or only the vector graphics if you want.

The properties for specifying what content gets rendered are part of PdfRendererSettings class.
RenderText – enables or disables the rendering of text content
RenderImages – enables or disables the rendering of images on the page
RenderGraphics – enables or disables the rendering of vector graphics
RenderAnnotations – enables or disables the rendering of page annotations
RenderFormFields – enables or disables the rendering of form fields
By default all these properties are true so all page content is rendered.

The code below shows how to render only the page content and exclude the annotations and form fields.

C#:

VB.NET:

Download the latest version and give it a try and let us know what you think.

Leave a Reply