Subversion Repositories Scribus

Rev

Rev 3535 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3269 mrdocs 1
<qt>
3283 mrdocs 2
<title>Scribus and OpenOffice.org</title>
3418 mrdocs 3
<h2>Scribus and OpenOffice.org</h2>
3269 mrdocs 4
<h4>Overview</h4>
3349 mrdocs 5
<p>The open and XML based file format used by OpenOffice.org in all versions, share some common traits with Scribus. The clear documentation and specs have helped the Scribus Team to create very useful import features. Expect more enhancements in the future. One of the pleasant surprises to see in the OpenOffice.org version 2 beta releases is the improved EPS exporter. The 1.1.x version sometimes had difficulties exporting correctly.  The exporter in V 2.x in testing here seems to create better, more conformant files, which Scribus imports with little difficulties. Except for OpenOffice.org Writer files, the magic trick to get high quality imports into Scribus depends on using OO.org Draw. Almost any type of OpenOffice.org file can be imported into Scribus with high fidelity, provided you export from Draw as EPS. Native Draw files can usually be imported directly into Scribus. </p>
3418 mrdocs 6
<h4>Importing from OpenOffice.org Writer</h4>
3813 mrdocs 7
<p>The importer for Writer imports <strong>only</strong> the text contained in your document. Images and drawing need to be saved separately outside of the Writer document and imported separately. Thus, a compound Writer document with tables of charts will not import the tables or charts. Tables, charts or other embedded objects, need to be separately placed in a Draw file and exported by the methods below.</p>
3535 mrdocs 8
<p>The singular most important issue to take into consideration for hassle free OO.org Writer import is well chosen usage and correctly applying styles in OO.org. Doing so will greatly reduce the amount of time needed within Scribus to format and style text. Any special paragraph styles in your Writer document will automatically be imported into your existing Scribus layout.</p>
9
<h4>Step by Step:</h4>
10
<ul>
11
<li>Select the text frame.</li>
12
<li>Right Click > Get Text..  </li>
13
<li>Select your OO.org document. The importer is smart enough to know recognize the type of OO.org file.</li>
14
 </ul>
3269 mrdocs 15
 
3813 mrdocs 16
<p>This will import <strong>all</strong> the text in your document, so ensure there is enough space in your frames or link extra text frames on subsequent pages. You can comfortably import 10,20 or 50 pages of text in one go. In testing the importer,  we have imported 600 pages. However, the practical limit is probably not more than a chapter's (15-30 pages) worth of text for performance reasons.</p>
3535 mrdocs 17
 
18
<p> When importing text from OO.org there are three important options which need to be carefully considered:</p>
19
 
3269 mrdocs 20
<table width="100%"><tr><td align="center"><img src="images/oogettext1.png" alt="Import Options for OO.org Writer and OASIS (Open Document) files." align="middle" title="Import Options for OO.org Writer and OASIS (Open Document) files." /></td></tr></table>
21
 
22
<ul>
23
   <li><strong>Update Paragraph Styles</strong> This option will tell Scribus to change the formatting of any created styles in your Scribus document to follow those in OO.org document. </li>
24
   <li><strong>Merge Paragraph Styles</strong> This option looks at the actual attributes (fonts, size) of the OO.org and merges style which have common attributes. This can help to eliminate differently named, but similar styles.</li>
25
   <li><strong>Use Document Name as a prefix for paragraph styles </strong> -Is self-explanatory, but can be useful for sorting styles when importing from several documents. </li>
26
 </ul>
27
<p>The last option is to make permanent these options.</p>
28
 
29
 
3535 mrdocs 30
<h4>Importing Charts and Tables from Calc </h4>
3813 mrdocs 31
<p>This is a special case which needs to be done carefully. After you have created your Chart or Table in Calc, then <strong>Copy > Paste Special </strong> and embed the chart <strong>not</strong> as a GDI image, but as a linked object into a Draw Document, like below:</p>
3535 mrdocs 32
 
3269 mrdocs 33
<table width="100%"><tr><td align="center"><img src="images/oochart.png" alt="Embedding a Chart in to OO.org Draw" align="middle" title="Embedding a Chart in to OO.org Draw" /></td></tr></table>
34
 
3535 mrdocs 35
<p>After placing the linked object, import using one of the two methods below.</p>
36
 
3269 mrdocs 37
<h4>Importing Native OO.org Draw Files</h4>
3813 mrdocs 38
<p>There are two methods: First is to use the native importer. For most drawings this works very well and I have tested very complex Draw files which imported flawlessly. In some cases, especially with gradients, it may be preferable to test exporting EPS, with the settings further down. You should test both methods for the best results, not only on screen, but exporting a PDF.  Then open the PDF in Adobe Acrobat Reader and zooming in is a good quality check. It is important to note Draw 3D objects do not export well, as they are limited to screen resolution. They do not print well in most cases and will appear pixellated at print resolutions. </p>
3269 mrdocs 39
 
40
<h4>Importing Formulas</h4>
3535 mrdocs 41
<p>The most reliable way I have found is to save your formula as desired and Close Math. Then open OO.org Draw and create a new file. Then, <strong>Insert Object > Formula</strong>. You will have a tiny embedded square on Draw's canvas. Then, right click the embedded object > <strong>Edit Object</strong>. Then, Draw will launch Math. In Math, select <strong>Tools > Import Formula</strong> and browse to your saved formula. Then save to close the file and the embedded formula is now scalable in Draw with the context menus. Save this Draw file, then export as EPS and import into Scribus. The formulas and text will import as a grouped objects as scalable vector items. Any text is imported as outlines as well. This will result in formulas which will print with <strong>very</strong> high quality and little worries when exported as PDF. Saving the Draw file and attempting to import the Draw file with embedded objects will fail, as Scribus cannot access those object directly.</p>
3269 mrdocs 42
<h4>Export Settings from OO.org Draw</h4>
3813 mrdocs 43
<p>Below are the recommended settings when exporting from all versions of OO.org Draw.</p>
3269 mrdocs 44
<table width="100%"><tr><td align="center"><img src="images/ooeps1.png" alt="Recommended EPS Export Settings" align="middle" title="Recommended EPS Export Settings" /></td></tr></table>
45
 
3813 mrdocs 46
<p>Using the settings above and a recent Ghostscript (8.50+), I have encountered only minor difficulties importing files from OpenOffice.org. Even then, ungrouping the import and minor touching up is easily done. The most noticeable issue I have found is some lines on charts or freehand lines are too thin when viewed as imported EPS in Scribus and a quick adjustment of the size of the line with the Properties Palette in Scribus sets things right.</p>
3269 mrdocs 47
</qt>