The GetContentLayout2 method retrieves the content object and its layout object
HRESULT GetContentLayout2(
[out, string] BSTR* p_pwsContentId
[out, string] BSTR* p_pwsLayoutId
);
Parameters:
p_pwsContentId
[out, string] - content id
p_pwsLayoutId
[out, string] - layout id
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_PROFILE_ERROR
- error reading profileRemarks:
The content layout defines how the printed content will be positioned on the PDF page. There is only one content object in the profile.
For layout options, see Working with Layout objects.