#include <SnpCreateDocument.h>
|
| ErrorCode | Create (const UIFlags uiFlags, const PMReal &width, const PMReal &height, const int32 numPages, const int32 numPagesPerSpread) |
| |
- 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
| ErrorCode SnpCreateDocument::Create | ( | const UIFlags | uiFlags, |
| | const PMReal & | width, |
| | const PMReal & | height, |
| | const int32 | numPages, |
| | const int32 | numPagesPerSpread |
| ) | | |
Create a document and put it on view in a window.
- Parameters
| uiFlags | IN |
| width | IN width of page in points |
| height | IN height of page in points |
| numPages | IN number of pages |
| numPagesPerSpread | IN number of pages per spread |
- Returns
- kSuccess on success, other ErrorCode otherwise.