clsty / xopp-merge

Merge multiple Xournalpp files into one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xopp-merge

The python scripts merge multiple Xournalpp's note file *.xopp into one.

Usage

On most Linux distros, run ./install to copy scripts to /usr/bin/, and run ./uninstall to remove them.

Then you can directly use these scripts in shell.

xopp-mergefolder will merge *.xopp files in alphabetical order.

Known issues

The script xopp-merge seems to be broken.

Similar as this issue.

Error output:

Traceback (most recent call last):
  File "/usr/bin/xopp-merge", line 51, in <module>
    pageNb = elements[0].attrib["pageno"]
             ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'pageno'

And the author said:

The script first looks for the pagenb attributes in the tags (which define a "page" for the script) which are missing for files with built-in background layouts/models (i.e. those without a pdf background, like the attached files). In other words, the script should not skip the tags to work properly. Honestly, I should just rewrite it in a complete all-layer-, all-background-supporting and platform-independent way with much cleaner code.

I really appreciate your work and feedback btw.! I'll see what I can do with the "CLI/offline" solution (unless we want to wrap your solution in an electron app, making it nice, easy-to-use and user-friendly).

History

It's originally created as https://github.com/friciwolf/XournalppUtils, and modified as https://github.com/AyushmaanAggarwal/XournalppUtils.

For more info, see

About

Merge multiple Xournalpp files into one

License:MIT License


Languages

Language:Python 91.7%Language:Shell 8.3%