Skip navigation
Currently Being Moderated

Issue in setting bleed to a document as InDesign CS5 Server plugin

Jan 2, 2012 8:43 PM

Hello all,

I am creating a new document in InDesign CS5 Server through C++ Plugin and trying to set bleed to the document. I have used the command to set bleed. But it doesn't seem to apply properly. I check in the debug version also. It show success to the command but when I open the document there is no bleed applied. I am using following command.

 

 

InterfacePtr<ICommand> pageSetupPrefsCmd(CmdUtils::CreateCommand(kSetPageSetupPrefsCmdBoss)) ;
if(pageSetupPrefsCmd == nil)
{
CAlert::ErrorAlert("Error in SetDocumentBleed function, pageSetupPrefsCmd is nil.");
break;
}


InterfacePtr<IDocSetupCmdData> docSetupData(pageSetupPrefsCmd, IID_IDOCSETUPCMDDATA);
if(docSetupData == nil)
{
CAlert::ErrorAlert("Error in SetDocumentBleed function, docSetupData is nil.");
break;
}

pageSetupPrefsCmd->SetItemList(UIDList(m_pDocument));
docSetupData->SetDocument(::GetUIDRef(m_pDocument));
docSetupData->SetNPagesPerSpread(1);
docSetupData->SetPageSize(pagesRectangle);
docSetupData->SetPageOrientationIsWide(bWide);
docSetupData->SetUseUniformBleed(kFalse);
docSetupData->SetBleedBox(bleedRect);
ErrorCode error = CmdUtils::ProcessCommand(pageSetupPrefsCmd);
if (error == kFailure)
CAlert::WarningAlert("Command failed");

 

 

Can some one please help me in letting me know what wrong I am doing in this command? This has become quiet critical for me.

 

Thanks all in advance.

 

Regards
Farzana.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points