![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpCreateInddPreview () | |
| virtual | ~SnpCreateInddPreview () |
| ErrorCode | CreateFirstPagePreview (const UIDRef &docRef, const bool16 &faceless, const IDFile &jpegFile, const PMReal &xScale=1.0, const PMReal &yScale=1.0, const PMReal &desiredRes=36.0) |
This snippet class uses SnapshotUtils to make a preview of the 1st page of an InDesign document. If there is a front document, it is used to create the preview, otherwise, user will be prompted to select a file, which will be open faceless.
| inline |
Constructor.
| inlinevirtual |
Destructor. Cleans up the internal SnapshotUtils member.
| ErrorCode SnpCreateInddPreview::CreateFirstPagePreview | ( | const UIDRef & | docRef, |
| const bool16 & | faceless, | ||
| const IDFile & | jpegFile, | ||
| const PMReal & | xScale = 1.0, | ||
| const PMReal & | yScale = 1.0, | ||
| const PMReal & | desiredRes = 36.0 | ||
| ) |
Creates the preview of the first page of a document, and immediately saves it to a JPEG format file.
| docRef | IN UIDRef for the document to preview. |
| faceless | IN bool16 if the document is opened via a choose file dialog, it is not displayed in layout window. |
| jpegFile | IN IDFile for the JPEG file to save. |
| xScale | IN Scale in the X-direction. Default = 1.0 (=100%) |
| yScale | IN Scale in the Y-direction. Default = 1.0 (=100%) |
| desiredRes | IN Desired resolution. Default = 36.0. |