Why is my strikethrough annotation so thin?


I’m importing an XFDF annotation with PDFNet and then viewing the result in Acrobat. The XFDF annotation is a strike-through annotation:


The “width” is 2, but still the line is thin. Why?


To apply the thickness, you will need to call RefreshAppearance on the annotation. This call makes PDFNet create the appearance of the Annotation, rather than Acrobat (which creates thin lines for underline and strikethrough, even if you create them in the Acrobat viewer.)

The code would look something like:

Dim itr As PageIterator = doc.GetPageIterator()
While itr.HasNext() ’ Read every page
Dim page As Page = itr.Current()
Dim num_annots As Integer = page.GetNumAnnots()
Dim i As Integer = 0
While i < num_annots
Dim ann As Annot = page.GetAnnot(i)
If ann.IsValid() Then
End If
i = i + 1
End While
End While