[Okular-devel] [Bug 281813] Add support for LaTeX formulas in annotations

Jonathan Verner jonathan.verner at gmail.com
Mon Sep 12 08:12:06 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=281813


Jonathan Verner <jonathan.verner at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.verner at gmail.com




--- Comment #7 from Jonathan Verner <jonathan verner gmail com>  2011-09-12 08:12:06 ---
(In reply to comment #2)
> annotations to file in case of PDF that support annotations, the problem is
> that this is not supported as far as i know by PDF thus makes our already hard
> work even harder

PDF supports Appearance Streams for annotations, so we could have latex render
the formula into a PDF file and create the AP entry in the annotation dict from
the pdf. We could also include some special entry in the annotation dict to
indicate that this is in fact a rendered LaTeX formula and what the LaTeX code
was so that we could edit it afterwards...

I had some luck with this approach, however the saving was done by podofo not
poppler.

Same way we could --- I suppose at least --- add a custom field to the
annotation xml entry to indicate that it is a formula so that we don't need
to do automatic guessing (maybe even create a new annotation type). If that
is a no-go, I also like Albert's approach in comment #6.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list