Question
How to Create IPathFinder
Hello InDesign SDK Developers.
I keep testing and I can't solve the problem, so I'm looking forward to your help.
I want to perform XOR operation on two or more closed paths using IPathFinder.
UIDRef uidRef1 = CreatePath()...;//CreatePath function receives PathPointList as a parameter and creates a closed path.UIDRef uidRef2 = CreatePath()...;
InterfacePtr<IPathGeometry> pathGeometry(uidRef2 , UseDefaultIID());
InterfacePtr<IPathFinder>iPathFinder(uidRef1 , UseDefault());
if (! iPathFinder) {
break;
}
iPathFinder->AddPath(pathGeometry);
IPathGeometry *result = nil;
iPathFinder->combine(result, IPathFinder::kXOr);
I can't get iPathFinder here, I need help on how to do it
thank you
