Picas to Points conversion
Hi All,
I am working with InDesign CS3.
By default we have 1 picas = 12 points.
I have some value in picas like 2p3 and I want to convert it in points by using InDesign API.
I have tried following.
PMString picasStr("2p3");
InterfacePtr<IMeasurementSystem> ms(gSession, UseDefaultIID());
if( !ms )
break;
InterfacePtr<IUnitOfMeasure> currentVUnit(ms->QueryUnitOfMeasure(ms->Location(kPointsBoss)));
if( !currentVUnit )
break;
currentVUnit->Parse(picasStr, topInPt, kTrue);
But it returns false. Thus fail to convert the value.
If anybody have the solution then please let me know.
Regards,
Alam
