- Introduction
- What's New?
- Features
- Upgrading the Design Editor
- Breaking Changes in 6.0
- Getting Started
- Integration with E-commerce
- Integration with Remote Asset Sources
- Printable Files and Proof Images
- Configuring Products
- Creating Product Templates
- User Interface
- Configuration Files
- APIs
- IFrame API
- Getting Started with IFrame API
- Using the Design Atoms Framework in IFrame API
- Changing the Product Size
- BaseEditor Module
- IframeApi Module
- Commands Module
- Configuration Module
- Editor Class
- applyProductTheme Method
- BarcodeFormat Enumeration
- BarcodeSubType Enumeration
- clearSelection Method
- dispose Method
- finishProductDesign Method
- getProduct Method
- getProofImages Method
- getSelectedItems Method
- getUnchangedItems Method
- IBarcodeData Interface
- IFinishDesignResult Interface
- IProofResult Interface
- ISaveProductResult Interface
- ISurfacesChanges Interface
- ISurfaceUserInfo Interface
- IUnchangedItem Interface
- IUnchangedItems Interface
- IUserChangeItem Interface
- IUserChanges Interface
- IUserInfo Interface
- IValidationResult Interface
- IViolationWarningData Interface
- loadUserInfo Method
- openGallery Method
- openGalleryForBackground Method
- openGalleryForItem Method
- redo Method
- revertProduct Method
- saveProduct Method
- selectAllItems Method
- selectItems Method
- subscribe Method
- undo Method
- validateUserInfo Method
- ViolationState Enumeration
- ZoomMode Enumeration
- loadEditor Function
- ObjectModel Module
- PostMessage Module
- preload Function
- RuntimeConfiguration Class
- Web API
- Design Atoms Framework
- UI Framework
- Dynamic Image API
- IFrame API
- Add-ons
- System Requirements
- Troubleshooting
- Migrating Your Applications
- Licensing
- Copyright Notices
finishProductDesign Method
Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation
Callable
-
Saves the current product state and returns links to the hi-res output. For details, see the Introducing the IFrame API topic.
Parameters
-
Optional options: object
Parameters of the hi-res and preview images.
-
Optional file
Name: string The name of the resulting print file. This name is only used when you allow end-users directly downloading hi-res files using the links returned by the finishProductDesign method. The file name is combined with a file extension of configured output format. For example, if you pass
business_cardas a value of the argument and configure Customer's Canvas to save results in PDF, the result file name will bebusiness_card.pdf. -
Optional generate
Large Previews: boolean If
true, this method renders real-size proof images. If largePreviewMaxWidth and largePreviewMaxHeight are not set, then this method will take the size of the rendered surface. The default value isfalse. -
Optional generate
Product Proof: boolean If
true, this method renders previews of all product pages to a multi-pagePDFfile. The default value isfalse. -
Optional large
Preview Max Height: number The maximum height of large proof images. By default, this value is equal to the surface height.
-
Optional large
Preview Max Width: number The maximum width of large proof images. By default, this value is equal to the surface width.
-
Optional pregenerate
HiRes: boolean If
true, this method starts generating hi-res outputs in the background when called. In this case, the resulting links to hi-res outputs will be obtained before the image generation is complete. Iffalse, this method only updates links and starts generating print files when a request to download them is received. The default value isfalse. -
Optional pregenerate
Preview Images: boolean If
true, this method starts generating preview images in the background when called. In this case, the resulting links to these images will be obtained before the image generation is complete. Iffalse, this method only updates links to these images and starts generating the preview images when a request to download them is received. The default value isfalse. -
Optional proof
Max Height: number The maximum height of proof images, in pixels. This value is
500by default. -
Optional proof
Max Width: number The maximum width of proof images, in pixels. This value is
500by default. -
Optional state
Id: string Specifies a state file name without an extension, up to 36 symbols length. If such a file exists, it will be overwritten. You can pass this parameter for any user except master and default. If you omit this parameter, then a new file name is generated.
-
-
Optional data: object
Parameters of variable data printing. You can pass either dataSet or itemsData into this method.
-
Optional data
Set: IDataSet Creates a new product from the initial product definition and applies variable data to it.
-
Optional items
Data: IItemsData Applies a single set of variable data to the product.
-
Returns Promise < IFinishDesignResult >
Returns a promise with the resulting product details: the bounding rectangle, links to the hi-res output, permanent links to proof images, a return-to-edit URL, user changes, userId, and stateId.
-