Meet us at Drupa 24. Dusseldorf/Germany. May. 28 - Jun 7.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
vpaul  
#1 Posted : Monday, January 4, 2016 2:25:09 AM(UTC)
vpaul

Rank: Newbie

Groups:
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.
Dmitry  
#2 Posted : Monday, January 4, 2016 2:51:07 PM(UTC)
Dmitry

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

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

vpaul  
#3 Posted : Monday, January 4, 2016 10:24:33 PM(UTC)
vpaul

Rank: Newbie

Groups:
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

Kate D.  
#4 Posted : Thursday, January 7, 2016 1:06:16 AM(UTC)
Kate D.

Rank: Advanced Member

Groups:
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.

thanks 2 users thanked Kate D. for this useful post.
jee88 on 1/7/2016(UTC), vpaul on 1/7/2016(UTC)
Users browsing this topic
Guest
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.