This section describes an obsolete packaging solution. We recommend using 3D mockups for packaging, which are integrated into the Customer's Canvas cloud.
MergeGraphicsAndDieCutTemplate
- Less than a minute to read
The ~/api/Origami/MergeGraphicsAndDieCutTemplate endpoint allows you to merge graphic design created in the Design Editor with a die-cut template in a PDF format. The die-cut template is rendered in the overprint mode.
Request type
[GET
]
URL
~/api/Origami/MergeGraphicsAndDieCutTemplate?graphicsUrl=<linkToHiRes>&template=<templateName>
Required URL Params
graphicsUrl
=[string] - a URL that links to the resulting file of the Design Editor.template
=[string] - a template file name.
Example call
<a href="https://example.com/api/Origami/MergeGraphicsAndDieCutTemplate?graphicsUrl=http://example.com:58102/api/rendering/GetHiResOutput/default/f6169e31-aaef-4f18-be71-124b7e3fe362/0_-1.pdf/design&template=h5mkuxbl.r0u">Download a packaging</a>
Success response
If the result is successful, this method returns the content of a PDF file with graphic design merged with the die-cut template in the file stream.
Status Code: 200 OK
Content-type: application/octet-stream