<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add font color in Poppler"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107151#c23">Comment # 23</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add font color in Poppler"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107151">bug 107151</a>
              from <span class="vcard"><a class="email" href="mailto:haxtibal@posteo.de" title="Tobias Deiminger <haxtibal@posteo.de>"> <span class="fn">Tobias Deiminger</span></a>
</span></b>
        <pre>(In reply to Albert Astals Cid from <a href="show_bug.cgi?id=107151#c22">comment #22</a>)
<span class="quote">>  * DefaultAppearance name
> Are we sure this is the best name for the class? Wouldn't AnnotAppearance
> make more sense? What's "Default" about this class?</span >
We model the /DA entry here. It's written "default appearance string" in PDF
1.7, P. 396. And because we do some abstraction and our model is no more a
string, I thought we strip "string", and what remains is "DefaultAppearance".

I think we should not mix up /DA with /AP, even if they're similar. AP is the
annotations appearance, while DA establishes context if AP is missing and we
need to create a AP replacement in-memory. DA has limited set of allowed
operators, while AP can do almost everything.

Does this make sense?

Btw., some other PDF libraries expose DA actually as string. See [0]. I don't
think exposing as string is a good idea. Just wanted to mention it, as it might
be the last time we think about that API for a while.

[0]
<a href="https://pdfbox.apache.org/docs/2.0.1/javadocs/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationFreeText.html#setDefaultAppearance(java.lang.String">https://pdfbox.apache.org/docs/2.0.1/javadocs/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationFreeText.html#setDefaultAppearance(java.lang.String</a>)
[1]
<a href="https://github.com/gdelugre/origami/blob/98ea557af7aa9e926aac564bf89e6e0ead4a1a5e/lib/origami/annotations.rb#L309">https://github.com/gdelugre/origami/blob/98ea557af7aa9e926aac564bf89e6e0ead4a1a5e/lib/origami/annotations.rb#L309</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>