Hi Arian,

Xournal is not set up to handle a changing PDF background. It opens the 
file via poppler_document_new_from_file() and lets poppler take care of 
it, but the behavior when the file subsequently changes is undefined as 
far as I can tell -- in practice current version of poppler seems to try 
to load from the modified file, while I think older versions kept a copy 
of the file in memory and didn't check for changes. Meanwhile xournal 
keeps its own copy of the original file in memory so it would still work 
from the old version for various things (export to PDF legacy version in 
particular).

I've gotten very erratic behavior as well -- getting a mix of old and 
new pages, while zooming in/out causes sometimes a refresh to the new 
document, sometimes blank pages, etc.

The point is that you just shouldn't expect good behavior when the PDF 
changes anyway -- if the number of pages changes, xournal won't modify 
the xoj to reflect that anyway and we don't really want it to unless 
we're sure the user wants to do that. The official party line for the 
time being is: don't change the PDF. If you do, quit xournal and reload, 
then you won't be able to see any newly added pages, and all your 
annotations might be off.

Denis



On 03/01/2016 09:32 AM, Arian Sanusi wrote:
> Hi all,
>
> I annotated a PDF I later regenerated using pdflatex. When scrolling off the 
> region xournal already rendered and has in cache it shows a white background. 
> It also errored out before, saying something along "could not render PDF", 
> but I currently cannot reproduce this.
>
> This does not make for a very good user experience. I'd guess it would be 
> reasonable to notify the user (something like "background changed. reload? 
> Without reload, the background might not be rendered correctly.)
>
> I'm not sure how pdflatex does this, but I guess it opens the file it 
> outputs, it does not unlink the old one and opens a new one. Otherwise in my 
> understanding, xournal would notice any of this.
>
> best regards,
>
> arian
>
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>
>
>
> _______________________________________________
> Xournal-devel mailing list
> Xournal-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xournal-devel
>

-- 
Denis Auroux
UC Berkeley, Department of Mathematics
817 Evans Hall, Berkeley CA 94720-3840, USA
aur...@math.berkeley.edu

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to