Coder Social home page Coder Social logo

monperrus / expandanimations Goto Github PK

View Code? Open in Web Editor NEW
226.0 13.0 30.0 149 KB

LibreOffice/OpenOffice.org extension to expand animations before exporting to PDF. Looking for maintainers.

Home Page: https://github.com/monperrus/ExpandAnimations

License: GNU Lesser General Public License v3.0

Makefile 7.40% Shell 5.39% FreeBasic 87.21%

expandanimations's People

Contributors

7hil avatar abhijitutkarsh avatar cbecker avatar errotu avatar hylkevds avatar jul13579 avatar maffoo avatar monperrus avatar nikolasel avatar pixelshot91 avatar rhaschke avatar zzjjzzgggg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

expandanimations's Issues

version v0.7 does not work in LibreOffice 6.4.3.2 (v0.6 does)

First of all: Thanks for your great work!
I am trying to use your extension (v0.7) in LibreOffice 6.4.3.2 on Ubuntu 20.04. Unfortunately, I can't get it to work. I always receive the following error:

A Scripting Framework error occurred while running Basic script vnd.sun.star.script:ExpandAnimations.Main?-language=Basic&location=application

Message: The following Basic script could not be found:
library: 'ExpandAnimations'
module: 'ExpandAnimations'
method: 'Main'
location: 'application'

Here's a screenshot:
grafik

[solved] Failed installation Linux/ LibreOffice 6.2.2 and 6.1.5

I tried to install versions 0.4, 0.5 and 0.6 under Fedora 30 (LibreOffice 6.2.2) and Debian 10 (LibreOffice 6.1.5). Both failed with a "Bad Zip File, Zip Exception: Zip END signature not found!" complaint by the Extension Manager. Am I missing a library dependency, or what may cause this problem?

ExtensionManager

doc.store in line 168 crash when run expandanimations with this file

Esperanto-English-Español
LibreOffice 6.4, 7.1
GNU/Linux, LinuxMint 20.1, Ubuntu 20.04
https://personal.us.es/gmolleda/Error-LO-ExpandAnimations.odp Github not support .odp, but support .docx, .pptx, .xlsx, When go to other git platform?
Esperanto
Mi pensas, ke ĝi estas libreoffice-eraro, ĉar ĝi estas la funkcio store() ĉe linio 168 de la makro expandanimations. Tie kun ĉi tiu dosiero okazas kraŝo.
Dum ĝi estas riparita, vi povas komenti tiun linion kaj ĝi funkcios, sed la dosiero devas unue esti purigita de kaŝitaj diapozitivoj.
' doc.store()

English
I think it's a libreoffice bug, because it's the store() function on line 168 of the expananimations macro. There with this file there is a crash.
While fixing, you can comment that line and it will work, but the file must first be cleaned of hidden slides.
' doc.store()

Español:
Creo que es un error de libreoffice, porque es la función store() en la línea 168 de la macro de expananimations. Ahí con este fichero hay un crash.
Mientras se arregla, se puede quitar esa línea y funcionará, pero el fichero debe ser antes limpiado de diapositivas ocultas.
' doc.store()

BASIC runtime error. Property or method not found: AttributeName.

Errors in this function it seems:

' checks if the given animation node changes a shape's visibility
function isVisibilityAnimation(animNode as Object) as Boolean
isVisibilityAnimation = HasUnoInterfaces(animNode, ANIMSET) and _
(animNode.AttributeName = VISATTR)
end function

I can send slides if desired.

Slide number progresses in expanded view

If I put slide numbers in the footer, the number still progresses with "animations" in the expanded version. Usually it would still be considered one slide though.

Exporting gifs

Hi all,

I have a LibreOffice impress presentation with several GIFs in it.

I found this extension while looking for a way to export it to a pdf and maintain the GIFs animation.

I tried it and it did not work. Did I do something wrong or the extension does not support this functionality?

config.load_project() doesnt work as expected

config.load_project() doesnt work as expected, or maybe I did not understand correctly.
In my project I have a fabile.py with

from fabric2 import task, Connection
@task
def my_task(c):
    print(c.config)
    other_connection = Connection(host="my_host")
    print(other_connection.config)
    other_connection.config.load_project()
    print(other_connection.config)

In a config file fabric.json I have

{
    "key": "MY_VALUE"
}

Executing the command line

 python -m fabric2  my_task

shows that the config is read from fabric.json when invoking the task, and passed to c.config, but it is not read when calling other_connection.config.load_project().
Did I miss something ?

Document hyperlink when hide sliders

If the odp document have an hyperlink to other slide in the same document, when before there are some hide slides, then the hide slides are removed and change the number slide of the destination slide but the hyperlink don't change. The result is that the hyperlinks are wrong.

feature request: add support for "Emphasis: Change Fill Color"

Hi,

I tried to use this to export a slide deck with a few animations. It worked for some slides, but not others. Looking at the code the problem appears to be that only visibility changing animations are supported - the animations that didn't get split into separate pages were of type "Emphasis: Change Fill Color" (which I find useful for emphasis).

Regards,

Andres

containsObject

I recently ran this script on LibreOffice 4.0.0.3, and I encountered a strange error at around line 191 where the containsObject() will fail because target is Empty. Maybe my file was corrupt or something. I couldn't see anything particularly special about the slide where it was encountering an error. Anyway, I was able to solve the problem by adding another test:

if not IsEmpty(target) then ...

before the

if not containsObject(shapes, target) then ...

Support for Notebookbar

Once again, thanks for your work!
It would be great if the option to trigger ExpandAnimations would not only be found under Tools>>Add-ons>>Expand animations but also in the NotebookBar "Extension"-Tab. Some further information regarding this is provided here.

Expanded animations change connector points

When expanding a slide that contains connectors the connection points change during the expansion. Even if the transition does not touch the elements that are connected.

You can find an example of what I mean here:
http://dl.dropbox.com/u/1151396/oo_expand/testanimation.odp
http://dl.dropbox.com/u/1151396/oo_expand/testanimation-expanded.pdf

This example is relatively mild, in a 'real' presentation I was working with the connector lines actually went off-screen on the expanded slides.

BTW - great plugin, hope this can be fixed :)

Internal links failure in pdf

Internal links not working:
If I insert a link to slide 24, if I export to pdf directly the link works, the link is:
file:///.../filename.pdf#%5B%7B%22num%22%3A127%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22FitR%22%7D%2C0%2C-0.001%2C793.701%2C595.275%5D

But if I use expandanimations the link points to:
#Slide%2024
and open the file browser.

missing characters in expanded pdf

Hi,

I am trying to expand a presentation with some elementary overlays, but some characters end up missing in the exported pdf version. I suspect this has something to do with the fonts not being embedded. Is there any way to change this? Thanks!

Here's an example:
In the LibreOffice file I type set
image
In the exported PDF this appears as
image
The fonts being used here are standard Latin Modern fonts.

Inadmissible value or data type.

In LibreOffice Impress (4.1.3.2)I import a file from Powerpoint 2011 (14.3.8) in pptx format. Then, after doing some cosmetic work, I try to export it with ExpandAnimations: Tools > Add-.Ons > Expand animations. The plugin crashes with this message: "Inadmissible value or data type. Index out of defined range."

Inadmissible value or data type

I had previously used the extension without problems, but now I have Libreoffice 6.0. When I attempt to use the extension on slides.odp, the program starts by generating slides-expanded.odp, but later quits with error:

Inadmissible value or data type. Index out of defined range.

For the problem, Basic editor points to the line 208, which is:
dim visibility(UBound(shapes), nFrames-1) as Boolean

ExpandAnimations freezes office

I am not sure how to present/debug this issue, but ExpandAnimations freezes while soffice.bin runs at 100% of the CPU. Nothing useful gets created other than a -expanded.odp file pretty much identical to the original file. The only way to regain control of the software is to kill libreoffice.

BASIC Runtime Error in LibreOffice 3.5.4.2 on Ubuntu 12.04

Hi,

Thanks for this wonderful extension. Was almost about to make that unwanted switchback to Microsoft Office due to the lack of font embedding support in ODF. Till I came across this life-saver. I can live with the basic appear animation on my slides (mainly bullet point-driven sales pitches) and the portability of PDF is almost universal. I downloaded it yesterday & it worked great with a couple of test slides.

I've hit this hitch though. I have this presentation with 7 slides which is the reason that led me to download this extension. The first slide has only the Title element. The next 4 slides have a Title element & a text box with bullet points. The sixth has a Title with a bitmap. I have animated the bullet point text-boxes and the bitmap with the appear effect. The last one is only the Title.

When I tried compiling the presentation using this extension, I run into a BASIC Runtime error that has the description Property or method not found:createEnumerate. The script aborts and I'm left with an intermediate odp file named [original-filename]-expanded.odp & the script window with the line animNodes = effectNode.createEnumeration() highlighted. The intermediate odp file has the first 4 slides intact. Then there are seven copies of the 5th slide (the last one with animated bullet points). Then there is one with only the title of the slide with the bitmap...followed by one with the bitmap. The last slide is intact.

I have zilch idea of scripts & macros. So have no clue what is going on. But I can follow instructions well. Any help resolving this problem would be greatly appreciated. Apologies if any of my post is incoherent. Please ask for specifics that may help you understand this better & I'll cooperate to my best.

Thanks a million. :)

Sam

Question: specify page range when exporting?

Hi

Thanks for this great extension which fills an important gap!

Quick question: is it possible to restrict the range of the pages to be exported to pdf (as is possible with OO's standard export to pdf)? I understand though that at this point there is no dialog when exporting (i.e. just go to Tools -> add-Ons -> Expand)?

Thanks!

Doesn't work on Impress 7.0.0.3

The plugin runs, but the exported pdf does not contain any sort of expanded animation. It is basically the same as just clicking on the export pdf button.

Not working in LibreOffice 4

The extension could be installed but there is no item in the Tools menu. When I look at Tools > Macros > Run macro, I can se an entry for ExpandAnimations along with a list of macros.

I'm using LibreOffice 4.0.2.2 on Ubuntu 13.04.

Use from command line

Is it possible to use this extension when converting from ppt to pdf form the command line?

Slide numbers aren't preserved

Hi. Firstoff, this is a great extension and works (since 0.40) almost entirely as expected. There is just one issue: the slide numbers aren't preserved and will go up with any bullet point appearing.
Anyways, I can understand if fixing that issue is out of scope for this project, but thanks for considering it, and most of all thanks for this great extension.

Text animations do not maintain font size

In my presentations I often have bullet lists, i.e. a single text box that contains several lines of text. There are animations that allow me to reveal the lines one after another. ExpandAnimations does take care of this: It basically creates one slide per line, in which the text box contains only the lines that have been revealed so far.
The problem is: Since the text box automatically adjusts the font size of its content, this leads to the very first line appearing in a large font size. When the second line is revealed, the font size of the first line decreases, because now that the text box should contain two lines it adjusts the font size. A further decrease (this time for the first two lines) happens when the third line is revealed, and so on.

Workaround: I will now manually try to turn off this "automatic font size" and hope that this helps. But I think ExpandAnimations should do this for me.

add support for continuous delivery

it would be great to have continuous delivery, and push a new release on Github at each commit on master

we could also push to the default LibreOffice extension server.

Error on LibreOffice 3.5

Hi,
I got an error on LO 3.5

New file is created, loaded, some slides are generated... but :

Macro stop on slide.remove(shapes(n)) from :

' remove from the given slide all shapes that are invisible in the specified frame
sub removeInvisibleShapes(slide as Object, visibility, frame as Integer)
shapes = getAnimatedShapes(slide)
for n = 0 to UBound(shapes)
if visibility(n, frame) = false then
slide.remove(shapes(n)) <------ HERE
end if
next
end sub

Message is :
Cannot coerce argument type during corereflection call!

Have any idea ?
Thanks
Eric

Signature not found

v 0.6 in 6.2.8.2 (ubuntu 16.04)
Opening from file, or from extension manager or from SO, the same error in three cases
Is my version of LibreOffice? with the old works fine

(com.sun.star.lang.WrappedTargetRuntimeException) { { { Message = "Bad Zip File, ZipException: Zip END signature not found!", Context = (com.sun.star.uno.XInterface) @7fa19400e7c0 (ImplementationName = "com.sun.star.packages.comp.ZipPackage") } }, TargetException = (any) { (com.sun.star.packages.zip.ZipIOException) { { { Message = "Bad Zip File, ZipException: Zip END signature not found!", Context = (com.sun.star.uno.XInterface) @7fa19400e7c0 (ImplementationName = "com.sun.star.packages.comp.ZipPackage") } } } } }

Writing to tmp breaks expanding in 0.5

I just installed version 0.5 on LibreOffice to expand an animation. Ended with a runtime error (unrelated to the document, I think). Worked with 0.4, so I think the latest commit writing to tmp broke something.

LibreOffice version:

Version: 6.1.0.3 (x64)
Build-ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU-Threads: 4; BS: Windows 6.1; UI-Render: Standard;
Gebietsschema: de-DE (de_DE); Calc: CL

Basic Exception:
Type: com.sun.star.io.IOException
Message: SfxBaseModel::impl_store file:///tmp/DijkstraAnimated-expanded.odp failed: 0x507(Error Area:Io Class:Access Code:7).

Does not install on LOo 7.3.1.3

Getting an error when opening the .oxt file (tried both .13 & .12 releases)

Sorry, LOo dialogs do not allow copying text, and I'm too lazy to copy the whole text, so I'm sending a screenshot of the error
screenshot_2022-04-02-14 33

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.