Skip to main content

A command line utility that exports omnigraffle canvases files into various formats with a rubber support.

Project description

# OmniGraffle Export tool

A command line tool that allows to export one or more canvases from [OmniGraffle]( into various formats using [OmniGraffle AppleScript interface](
It is compatible with [rubber]( and can be configured to automatically export figures out of .graffle file.

## Installation

In order to have it successfully installed and working, following is required:

* OmniGraffle 5
* python >= 2.6
* [appscript]( >= 0.22

You can either clone the repository and use the setup tool: install

Or using the PIP:

pip install omnigraffle_export

## Usage

Usage: omnigraffle-export [options] <source> <target>

-h, --help show this help message and exit
-f FMT format (one of: pdf, png, eps), defualt pdf
--force force the export
-v verbose
-c NAME canvas name (if not given -t must point to a directory)

If the target file exists it tries to determine whether the canvas has been changed. It does that by comparing the checkums. Since the PDF export always results into a different file (the modified attribute insed changes), it uses the PDF subject attribute to store there a checksum that will be generated by exporting to a PNG format.

## LaTeX support via rubber

### Rubber

Rubber is a program whose purpose is to handle all tasks related to the compilation of LaTeX documents. This includes compiling the document itself, of course, enough times so that all references are defined, and running BibTeX to manage bibliographic references. Automatic execution of dvips to produce PostScript documents is also included, as well as usage of pdfLaTeX to produce PDF documents.

### Setup

Rubber uses `rules.ini` file to configure conversion options. In order to allow to use OmniGraffle Export, following needs to be added to the rules.ini (with the appropriate path alteration):

target = (.*):(.*)\.(eps|pdf)
source = \1.graffle
cost = 0
rule = shell
command = /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/omnigraffle-export-rubber $target
message = converting omigraffle $source into $target

This can be done automatically by executing the `` script as root

### Usage

Following is an example how to include a canvas named `Canvas1` from file `figures/schema.graffle`:

\caption{Example of a OmniGraffle figure}

The notation is `<path_to_graffle_file_without_dot_graffle_suffix>:<canvas_name>`

Project details

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page