Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfAnnotation::SetBorderStyle ( double  dHCorner,
double  dVCorner,
double  dWidth,
const PdfArray rStrokeStyle 
)

Set the annotations border style.

Parameters:
dHCornerhoritzontal corner radius
dVCornervertical corner radius
dWidthwidth of border
rStrokeStylea custom stroke style pattern

Definition at line 155 of file PdfAnnotation.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfElement::GetObject(), PoDoFo::PdfArray::push_back(), and PoDoFo::PdfArray::size().

{
    // TODO : Support for Border style for PDF Vers > 1.0
    PdfArray aValues;

    aValues.push_back(dHCorner);
    aValues.push_back(dVCorner);
    aValues.push_back(dWidth);
    if( rStrokeStyle.size() )
        aValues.push_back(rStrokeStyle);

    this->GetObject()->GetDictionary().AddKey( "Border", aValues );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index