InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpCreateDocument Class Reference

#include <SnpCreateDocument.h>

Public Member Functions

ErrorCode Create (const UIFlags uiFlags, const PMReal &width, const PMReal &height, const int32 numPages, const int32 numPagesPerSpread)
 

Detailed Description

  • How to create a new document and put it on view in a window,
  • uses SDKLayoutHelper to perform the document action,
  • the page dimensions, total number of pages and number of pages in each spread can be given.
See Also
SDKLayoutHelper

Member Function Documentation

ErrorCode SnpCreateDocument::Create (const UIFlags uiFlags,
const PMRealwidth,
const PMRealheight,
const int32 numPages,
const int32 numPagesPerSpread 
)

Create a document and put it on view in a window.

Parameters
uiFlagsIN
widthIN width of page in points
heightIN height of page in points
numPagesIN number of pages
numPagesPerSpreadIN number of pages per spread
Returns
kSuccess on success, other ErrorCode otherwise.