Hello,
I want to set link line style to be underline. am not finding any difference for solid and underline except cosname of S (BS) is U or S
Please anyone tells me how to change the link line style to be underline.
Thanks,
Sow
Thanks for reply.
I am using code as show below to change line style to solid and dashed.
PDLinkAnnotBorder pdLinkBorder;
PDLinkAnnotGetBorder( rpdAnnot, &pdLinkBorder);
//For solid
pdLinkBorder.dashArrayLen = 0; PDLinkAnnotSetBorder( rpdAnnot, &pdLinkBorder);
//For dashed
pdLinkBorder.dashArrayLen = 1;
for( int iIndex = 0; iIndex < PDAnnotMaxDashes; iIndex++)
{ ASInt32 iThickness = 3; pdLinkBorder.dashArray[iIndex] = Int32ToFixed( iThickness ); }
PDLinkAnnotSetBorder( rpdAnnot, &pdLinkBorder);
how should I do for underline. If am using cosobject how to change line style to underline using cosobject
Please let me know.
Thanks,
Sow
Hi Bernd,
I got one more problem. To get line style from PDAnnot always it gives value "S" for Solid or Underline.
I am using below code to findout linestyle of the annot.
CosObj cosLink = PDAnnotGetCosObj( pdAnnot );
CosObj cosBs = CosDictGet(cosLink, ASAtomFromString( "BS")); CosObj csP = CosDictGet(cosBs, ASAtomFromString( "S")); I am getting cosname of csP. It gives always S for Solid and Underline. what could be the reason. How can to differentiate the linestyle is solid or underline. Please help me to solve this issue. Thanks, Sow
Hi,
I have written follolwing code to findout annot linestyle is underline or solid. The code has
CosObj cosLink = PDAnnotGetCosObj( pdAnnot );
CosObj cosbs = CosDictGet(cosLink, ASAtomFromString("BS"));
CosObj cosSvalue = CosDictGet(cosbs, ASAtomFromString("S"));
am getting cosname value of cosSValue. It gives always "S" for underline and solid.
Please tell me am I doing anything wrong here.
Sow
Hello,
I changed underline for linestyle using Adobe Acrobat.
I verified with enfocus. In enfocus the value of "S" shows U for underline and S for solid.
But in my plug-in it always shows S for solid or underline.
I am not able to extract exact line style from link properties, if the line style is solid or underline.
How to fix this. Please help me to solve this issue.
Thanks,
Sow
Hi Bernd,
Below is the code.
CosObj cosLink, cosbs;
cosLink = PDAnnotGetCosObj( pdAnnot );
cosbs = CosDictGet(cosLink, ASAtomFromString("BS"));
CosObj cosSvalue;
cosSvalue = CosDictGet(cosbs, ASAtomFromString("S"));
CosType cosType = CosObjGetType( cosSvalue );
CString csNameValue;
if( cosType == CosName )
{
ASAtom asaName = CosNameValue( cosSvalue );
LPCSTR objstring = ASAtomGetString( asaName );
csNameValue = objstring;
}
csNamevalue is CString. This shows always S.
Thanks,
Sow
North America
Europe, Middle East and Africa
Asia Pacific