- 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
getProofImages Method
Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation
Callable
-
Renders proof images (72 DPI). For details, see the Introducing the IFrame API topic.
Parameters
-
Optional options: object
Parameters of proof images. Note, when defining the width and height, the resulting image will be proportionally resized to fit the defined rectangle. For example, if the maximum width and height are both set to
640pixels, then a1280 x 960px image will be resized to640 x 480px. When using mockups, specify the size of proof images more than or equal to the preview mockup size to avoid loss of the image quality.-
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. In this case, the IRenderingProperty.proofImageFileFormat will be ignored. The default value isfalse.When you generate product previews in PDF files and allow your users to directly download these files using the links returned by this method, you can pass the filename query parameter that enables the download and customizes the resulting file name. For example, to download a
booklet.pdffile:https://example.com/api/rendering/GetProofImage/JohnWood/06047be9-78fb-4b89-98c5-8b1712ba1b51/-1_-1.pdf?filename=booklet -
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 max
Height: number The maximum height of proof images. This value is
500by default. -
Optional max
Width: number The maximum width of proof images. This value is
500by default. -
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 returned before the image generation is complete. Iffalse, this method only returns links to these images and starts generating the preview images when a request to download them is received. The default value isfalse.
-
-
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 < IProofResult >
Returns an array of temporary links to proof images.
-