Back to Website
Show / Hide Table of Contents

Interface Editor.IFinishProductDesignOptions

Parameters of rendering the hi-res and preview images.

Package: @aurigma/design-editor-iframe
Remarks

Editor.finishProductDesign() takes these options.

Examples
// Rendering the product.
const renderingResult = await editor.finishProductDesign();
// Get the promise properties.
stateId = renderingResult.stateId;
userId = renderingResult.userId;

Properties

applyDataToVariablesOnly

if false, applies personalization data to any field with the specified name; if true, the data applies only to fields marked as variable. The default value is false.

Declaration
applyDataToVariablesOnly?: boolean;
Property Value
Type Description
boolean

if false, applies personalization data to any field with the specified name; if true, the data applies only to fields marked as variable. The default value is false.

fileName

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_card as a value of the argument and configure Customer's Canvas to save results in PDF, the result file name will be business_card.pdf.

Declaration
fileName?: string;
Property Value
Type Description
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_card as a value of the argument and configure Customer's Canvas to save results in PDF, the result file name will be business_card.pdf.

generateLargePreviews

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 is false.

Declaration
generateLargePreviews?: boolean;
Property Value
Type Description
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 is false.

generateProductProof

If true, this method renders previews of all product pages to a multi-page PDF file. The default value is false.

Declaration
generateProductProof?: boolean;
Property Value
Type Description
boolean

If true, this method renders previews of all product pages to a multi-page PDF file. The default value is false.

largePreviewMaxHeight

The maximum height of large proof images. By default, this value is equal to the surface height.

Declaration
largePreviewMaxHeight?: number;
Property Value
Type Description
number

The maximum height of large proof images. By default, this value is equal to the surface height.

largePreviewMaxWidth

The maximum width of large proof images. By default, this value is equal to the surface width.

Declaration
largePreviewMaxWidth?: number;
Property Value
Type Description
number

The maximum width of large proof images. By default, this value is equal to the surface width.

pregenerateHiRes

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. If false, this method only updates links and starts generating print files when a request to download them is received. The default value is false.

Declaration
pregenerateHiRes?: boolean;
Property Value
Type Description
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. If false, this method only updates links and starts generating print files when a request to download them is received. The default value is false.

pregeneratePreviewImages

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. If false, 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 is false.

Declaration
pregeneratePreviewImages?: boolean;
Property Value
Type Description
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. If false, 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 is false.

productProofPageIndexes

Specifies the indexes of the product surfaces to be included in the output PDF file. You can specify comma-separated numbers as well as page ranges (two numbers separated by a dash "-"), in any order. Any negative values are not allowed. For multiple entries of an index, only one surface copy will be rendered to the file. By default, the resulting PDF will contain all product surfaces.

Declaration
productProofPageIndexes?: string;
Property Value
Type Description
string

Specifies the indexes of the product surfaces to be included in the output PDF file. You can specify comma-separated numbers as well as page ranges (two numbers separated by a dash "-"), in any order. Any negative values are not allowed. For multiple entries of an index, only one surface copy will be rendered to the file. By default, the resulting PDF will contain all product surfaces.

Examples

"0,1,2,3,4" "3,4,1,0,2" the result is equal to "0,1,2,3,4" "1,1,2,0,0" the result is equal to "0,1,2" "0-4" "0-4,6,8-10,12"

proofMaxHeight

The maximum height of proof images, in pixels. This value is 500 by default.

Declaration
proofMaxHeight?: number;
Property Value
Type Description
number

The maximum height of proof images, in pixels. This value is 500 by default.

proofMaxWidth

The maximum width of proof images, in pixels. This value is 500 by default.

Declaration
proofMaxWidth?: number;
Property Value
Type Description
number

The maximum width of proof images, in pixels. This value is 500 by default.

stateId

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.

Declaration
stateId?: string;
Property Value
Type Description
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.

storeDataInState

if true, saves personalization data to state files. In this case, a state file will represent the initial product design without applying this data. If false, then the resulting state file will contain a set of personalized product copies but will not include the personalization data. The default value is true.

Declaration
storeDataInState?: boolean;
Property Value
Type Description
boolean

if true, saves personalization data to state files. In this case, a state file will represent the initial product design without applying this data. If false, then the resulting state file will contain a set of personalized product copies but will not include the personalization data. The default value is true.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback