sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Feature request: support visual transitions

Open Lucas-C opened this issue 3 years ago • 7 comments

Hi!

I noticed that MuPDF offers basic support for them through fz_generate_transition: http://git.ghostscript.com/?p=mupdf.git;a=blob;f=platform/x11/pdfapp.c;h=db8e58b5f472be35d1e7b98a2d04faa8d06f53d9;hb=HEAD#l1038

And indeed, they are rendered when navigating a PDF using the mupdf program, after enabling presentation mode with the p shortcut (test document with transitions).

I was wondering if Sumatra could support transitions? Maybe not by default, but possibly through a menu option ?

What are Sumatra maintainers views on this subject?

Regards

Lucas-C avatar Jul 16 '21 08:07 Lucas-C

Hi Lucas My MuPDF 1.18 does nothing with p Perhaps you use a different version? The nearest to full-screen I can get with that file is f which is almost identical in SumatraPDF they both behave the same when running through pages using the space key. Is that what you mean by transition? It is the same as If you want to watch Gif or Tiff movie converted to PDF. (see Tower of Hanoi example)

Related to similar effect https://github.com/sumatrapdfreader/sumatrapdf/issues/1343

GitHubRulesOK avatar Jul 16 '21 11:07 GitHubRulesOK

I'm using MuPDF 1.17.0

p does nothing visually, but it does enable presentation mode and transitions are then rendered when you press "PAGE DOWN" to move to the next page.

To be more specific about the transitions:

  • the PDF file I referenced as an example was built using this script, embedding several different transitions
  • the transitions supported by MuPDF are listed there: http://git.ghostscript.com/?p=mupdf.git;a=blob;f=include/mupdf/fitz/transition.h;h=609d7b221d2708eb4c15afade6c53c09484cb712;hb=HEAD#l8

Lucas-C avatar Jul 16 '21 11:07 Lucas-C

I confirm that I get a similar behaviour with MuPDF 1.18.0 under Windows

Lucas-C avatar Jul 16 '21 11:07 Lucas-C

Lucas p or P seems to do nothing for me in MuPdf-GL it is not swiping pages sideways or similar. Using Page Down is the same as in SumatraPDF to simply advance a page. That can be easily done using many shortcuts including holding down the spacebar.

GitHubRulesOK avatar Jul 16 '21 12:07 GitHubRulesOK

Transitions do not seem to be rendered by mupdf-gl.exe, only by mupdf.exe.

I know that Page Down is just one shortcut among many others to advance a page.

Do you see what are the PDF transitions I'm refering to @GitHubRulesOK? They are described in section in section 12.4.4, "Presentations", of the 1.7 PDF spec.

Lucas-C avatar Jul 16 '21 12:07 Lucas-C

OK I downloaded both MuPDF mingw32 & non tesseract 1.18 and agree that whilst p is not listed it does in both those versions enable the transitions. I wonder why its not enabled in the GL OCR version?

It could be security, since I recollect I raised a query about exploit differences between MuPDF and MuTool, need to go back to my conversation.

GitHubRulesOK avatar Jul 16 '21 13:07 GitHubRulesOK

I too would really appreciate support for the slide transitions offered by PDF, as for example described in section 14.3 of the documentation of Till Tantau's beamer package.

Currently, this seems to be only supported by Adobe Reader itself, and it often is the only reason why I still need to install that program.

dcjkfgdjhd avatar Jan 31 '24 17:01 dcjkfgdjhd