Difference between revisions of "Scribus Generator"

From Scribus Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Scripting Index}}
 
{{Scripting Index}}
==What about Mail Merge Generator?==
+
 
 +
==What about Scribus Generator?==
 
Scribus comes with a broad set of page layout features and functionality. One feature missing is to replace text with data dynamically. This kind of feature you may already know as the typical mail merge functionality in your preferred office application.<br />
 
Scribus comes with a broad set of page layout features and functionality. One feature missing is to replace text with data dynamically. This kind of feature you may already know as the typical mail merge functionality in your preferred office application.<br />
 
Scribus Generator fills this lack of functionality. Scribus Generator in general is an extension to replace text with data to automatic generated files (e.g. SLA, PDF).
 
Scribus Generator fills this lack of functionality. Scribus Generator in general is an extension to replace text with data to automatic generated files (e.g. SLA, PDF).
 +
 
==What about the Scribus file?==
 
==What about the Scribus file?==
 
Create and Design your Scribus File as any other. At the positions where you need to replace text with data, just add '''%VAR_name%''' where '''name''' is the column in the data table. You can place the variable on any position within a text frame. Apply all format and style to the variable as it would be the concerning original text.
 
Create and Design your Scribus File as any other. At the positions where you need to replace text with data, just add '''%VAR_name%''' where '''name''' is the column in the data table. You can place the variable on any position within a text frame. Apply all format and style to the variable as it would be the concerning original text.
Line 8: Line 10:
 
==What about the Data File?==
 
==What about the Data File?==
 
The Scribus Generator expects a CSV file (Comma Separated Values), which is very simple to create. Open a spread sheet editor, enter the data and save/export as CSV. UTF-8 encoding is recommended. The columns have the same '''name''' as variables ('''%VAR_name%''') referenced in the Sribus file you have designed.
 
The Scribus Generator expects a CSV file (Comma Separated Values), which is very simple to create. Open a spread sheet editor, enter the data and save/export as CSV. UTF-8 encoding is recommended. The columns have the same '''name''' as variables ('''%VAR_name%''') referenced in the Sribus file you have designed.
 +
 +
==What about the Settings?==
 +
There is a Dialog where you can configure the Input and Output Settings for Scribus Generator.
 +
{|
 +
|-| Scribus File: || Choose the Scribus File containing the variables to replace.
 +
|-| Example || Example|-| Example || Example|-| Example || Example|-| Example || Example|-| Example || Example|}

Revision as of 11:48, 19 February 2011

This article is part of the Scripts series.

What about Scribus Generator?

Scribus comes with a broad set of page layout features and functionality. One feature missing is to replace text with data dynamically. This kind of feature you may already know as the typical mail merge functionality in your preferred office application.
Scribus Generator fills this lack of functionality. Scribus Generator in general is an extension to replace text with data to automatic generated files (e.g. SLA, PDF).

What about the Scribus file?

Create and Design your Scribus File as any other. At the positions where you need to replace text with data, just add %VAR_name% where name is the column in the data table. You can place the variable on any position within a text frame. Apply all format and style to the variable as it would be the concerning original text.

What about the Data File?

The Scribus Generator expects a CSV file (Comma Separated Values), which is very simple to create. Open a spread sheet editor, enter the data and save/export as CSV. UTF-8 encoding is recommended. The columns have the same name as variables (%VAR_name%) referenced in the Sribus file you have designed.

What about the Settings?

There is a Dialog where you can configure the Input and Output Settings for Scribus Generator.