Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 110690

Re: How to change pasteboard size

$
0
0

Sure.

As I wrote IUIDData need UIDRef of the document pointer

     InterfacePtr<IDocument> iDoc(Utils<ILayoutUIUtils>()->GetFrontDocument(), UseDefaultIID());

     InterfacePtr<IUIDData> theUIDData(setPasteboardCmd, UseDefaultIID());

     theUIDData->Set(::GetUIDRef(iDoc));


IPMPoint data is a distance from the outer edge of the page to the edge of the pasteboard. Distance in points.


     PMReal theXValue = 612.0; // distance from the right/left edge to the pasteboard

     PMReal theYValue = 81.0; // distance from the top/bottom edge to the pasteboard

     InterfacePtr<IPMPointData> thePointData(setPasteboardCmd, UseDefaultIID());

     thePointData->Set(PMPoint(theXValue, theYValue));


Unfortunatelly i don't know why the X value is equal -500 in new document. And i couldn't find any samples.

I have read only documentation of kSetPasteboardPrefsCmdBoss.


Regards

Bartek


 


Viewing all articles
Browse latest Browse all 110690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>