Skip to content

Instantly share code, notes, and snippets.

@smourier
Created March 12, 2026 09:26
Show Gist options
  • Select an option

  • Save smourier/0e6f6bd43d43458fae2a6b3b735610be to your computer and use it in GitHub Desktop.

Select an option

Save smourier/0e6f6bd43d43458fae2a6b3b735610be to your computer and use it in GitHub Desktop.
IPdfContentSource
[System.Runtime.InteropServices.Marshalling.GeneratedComInterface, Guid("42a5bb06-8ce3-4925-b3a6-d9a23222fb44")]
public partial interface IPdfContentSource : IInspectable
{
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT get_DocumentMetadata(out HSTRING value);
}
[System.Runtime.InteropServices.Marshalling.GeneratedComInterface, Guid("0a623230-d3e7-43fe-864b-3cf6872f1fb3")]
public partial interface IPdfContentSource : IInspectable
{
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT GetReadingDirection(out int direction);
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT get_IsDataFullyAvailable(out BOOL value);
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT SaveAsync(nint file, uint saveType, nint progress);
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT SaveRecoveryDataAsync(); // unfinised
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT get_ContentLanguage(out HSTRING value);
[PreserveSig]
[return: MarshalAs(UnmanagedType.Error)]
HRESULT get_Permissions(out uint value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment