Aurigma Forums
»
Customer's Canvas
»
Discussions – Customer's Canvas
»
how can i configure color space (CMYK) and output file format (PDF) in the product definition?
Rank: Newbie
Groups: Member
Joined: 1/4/2016(UTC) Posts: 2
Thanks: 1 times
|
In customer's canvas, how can i configure color space (CMYK) and output file format (PDF) in the product definition while using IframeApi.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hi, As far as I understand, you are asking about configuring output files in the Iframe API. The API comes with the same set of parameters as the query-string one: Code:
...
"rendering": {
...
“hiResOutputColorSpace”: “CMYK”,
“hiResOutputFileFormat”: “PDF”,
...
},
...
Color profiles are configured in web.config using RgbColorProfileFileName, CmykColorProfileFileName, and GrayscaleColorProfileFileName settings. Information on Iframe API parameters and on how to set up color profiles can be found here: http://customerscanvas.com/docs/cc/reference.htm Details on how color management works in Customer’s Canvas are discussed here: http://customerscanvas.c...ion-and-proof-images.htm |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/4/2016(UTC) Posts: 2
Thanks: 1 times
|
my question is how can i add these settings in product definition, not in clientConfig.json $(function () { productDefinition = { surfaces: [ { printAreas: [{ designFile: "DIY6X9ebookOnly300DPI", safetyLines: [{ margin: 8.5, color: 'rgba(0,255,0,255)', altColor: 'rgba(255,255,255,0)', stepPx: 5, widthPx: 1 }] }] }] }; Edited by user Monday, January 4, 2016 10:30:14 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 10/20/2015(UTC) Posts: 52
Was thanked: 14 time(s) in 13 post(s)
|
Hi vpaul, Well, you could specify these parameters as the third parameter of loadEditor, but we have found the bug and this feature doesn't work. We will fix it to the next release. In your case that would look like: Code:
CustomersCanvas.IframeApi.loadEditor(document.querySelector('#editorFrame'), {
surfaces: [{
printAreas: [{
designFile: "DIY6X9ebookOnly300DPI",
safetyLines: [{
margin: 8.5,
color: 'rgba(0,255,0,255)',
altColor: 'rgba(255,255,255,0)',
stepPx: 5,
widthPx: 1
}]
}]}, {
rendering: {hiResOutputFileFormat: 'pdf', hiResOutputColorSpace: 'cmyk'}
});
Thanks for the bug report. I will keep you updated. Best regards, Kate Danilova Aurigma Inc.
|
2 users thanked Kate D. for this useful post.
|
|
|
Aurigma Forums
»
Customer's Canvas
»
Discussions – Customer's Canvas
»
how can i configure color space (CMYK) and output file format (PDF) in the product definition?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.