XFINIUM.PDF Documentation
ExtractOptionalContentGroup Method



Xfinium.Pdf.Content Namespace > PdfContentExtractor Class : ExtractOptionalContentGroup Method
The name of the optional content group to be extracted.
Extracts the content of an optional content group.
Syntax
'Declaration
 
Public Function ExtractOptionalContentGroup( _
   ByVal ocgName As String _
) As PdfPageOptionalContent
'Usage
 
Dim instance As PdfContentExtractor
Dim ocgName As String
Dim value As PdfPageOptionalContent
 
value = instance.ExtractOptionalContentGroup(ocgName)
public PdfPageOptionalContent ExtractOptionalContentGroup( 
   string ocgName
)
public:
PdfPageOptionalContent^ ExtractOptionalContentGroup( 
   String^ ocgName
) 

Parameters

ocgName
The name of the optional content group to be extracted.

Return Value

The optional content group if it exists.
Remarks
The optional content group is extracted as a form XObject that can be later drawn on another page.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfContentExtractor Class
PdfContentExtractor Members