Queries regarding adding a new 'typewriter' annotation tool to the toolbar

Tobias Deiminger haxtibal at posteo.de
Mon May 21 15:17:03 UTC 2018


Am 21.05.2018 11:18 schrieb Albert Astals Cid:
> El diumenge, 20 de maig de 2018, a les 13:38:42 CEST, Tobias Deiminger 
> va
> escriure:
>> Hi,
>> 
>> this one is about saving the actual annotation (rather then the tool
>> configuration).
>> 
>> Am Freitag, 18. Mai 2018, 17:04:09 CEST schrieb Dileep Sankhla:
>> > 4. In Okular::Annotation::Style::setColor(const QColor &color), it sets
>> > d->m_color = color (see tree/core/annotations.cpp. Here d is just a
>> > pointer
>> > to a class Private). Does it save color in some config/xml file as the
>> > previously set annotation color is always there whenever you close and
>> > open
>> > okular?
>> 
>> Yes, it does. For quite some time, saving annotations to an external 
>> XML
>> file (called "docdata") was the only option to persist annotations.
>> 
>> Thanks to a major piece of work in an extra branch
>> "dont-use-docdata-for-annots-and-forms", we now have a second option
>> where we can save the annotation into a PDF file as its native  PDF
>> representation.
> 
> That's not really correct, automatic saving to docdata was the default 
> option,
> but saving to PDF has been available for years.

Ah ok, sorry for spreading b.s.! Thanks Albert for resolving my 
misconception.

> Also automatic saving to docdata is now gone, you either save back to 
> the
> original file format or you save to the .okular format, which is the 
> file +
> docdata, but basically you should not be having a any annotations under
> .local/share/okular/docdata unless you're using an old version of 
> Okular.

My bad, I was using the older Ubuntu okular 1.1.3 installation while not 
in "development mode", guess that's why I saw annotations in 
.local/share/okular/docdata.

> Cheers,
>   Albert

Regards
Tobias


More information about the Okular-devel mailing list