|
| 1 | +# File Format |
| 2 | + |
| 3 | +This page outlines the main file formats used by Xournal++. The primary file |
| 4 | +format is `.xopp`, with some plans to switch to more advanced file formats in |
| 5 | +the near future. |
| 6 | + |
| 7 | +## xopp |
| 8 | + |
| 9 | +The `.xopp` file format consists of a GZIP-compressed XML file. To inspect the |
| 10 | +XML contents, run a decompression command such as `gzip -d my_file.xopp` or |
| 11 | +`zcat my_file.xopp`. Structurally, an `.xopp` file is like an extended version |
| 12 | +of the `.xoj` file format used by the [Xournal program][xournal]; we briefly |
| 13 | +explain our extensions and changes in this section. |
| 14 | + |
| 15 | +(TODO: add text explaining the differences) |
| 16 | + |
| 17 | +## xopz |
| 18 | + |
| 19 | +!!! warning "Experimental Feature" |
| 20 | + |
| 21 | + This is an experimental feature that is only available in unstable |
| 22 | + development branches and is subject to change. |
| 23 | + |
| 24 | +The `.xopz` file format is the next generation file format to be used by |
| 25 | +Xournal++. A `.xopz` file is a zip file containing an "annotation" XML file that |
| 26 | +stores the main journal data, along with other resources such as PDF files, |
| 27 | +images, and audio. The XML file is the same as the one used in an `.xopp` file. |
| 28 | +This new file format is being developed to overcome limitations and shortcomings |
| 29 | +in the `.xopp` file format, including excessive file sizes and lack of support |
| 30 | +for more powerful features. |
| 31 | + |
| 32 | +The contents of the zip file are as follows: |
| 33 | + |
| 34 | +* `contents.xml`: the main annotation data stored in XML form; this is the same |
| 35 | + format used in `.xopp`. |
| 36 | +* `META-INF/version`: FIXME: legacy code (not sure why this exists) |
| 37 | +* `background.pdf`: the background PDF used, if it exists. |
| 38 | +* `thumbnail.jpg`: a thumbnail of the document used for preview purposes. |
| 39 | +* `images/`: a folder containing images inserted into the document. |
| 40 | +* `latex/`: a folder containing rendered LaTeX images |
| 41 | + |
| 42 | +## xoj support in Xournal++ |
| 43 | + |
| 44 | +Xournal++ supports limited export to the `.xoj` format supported by Xournal. |
| 45 | +However, there _will_ be limitations because the feature set of Xournal++ is |
| 46 | +much larger than that of Xournal. |
| 47 | + |
| 48 | +[xournal]: http://xournal.sourceforge.net/manual.html |
0 commit comments