Book Image

Scribus 1.3.5: Beginner's Guide

4 (1)
Book Image

Scribus 1.3.5: Beginner's Guide

4 (1)

Overview of this book

Scribus is an Open Source program that brings award-winning and inexpensive professional page layout to desktop computers with a combination of "press-ready" output and new approaches to page layout. Creating professional-looking documents using Scribus is not a cakewalk, especially with so many features at your disposal, it’s hard to know where to get started! Scribus Beginners guide walks users step by step through common projects, such as creating a brochure,newsletter, business cards and so on. It also includes guidelines on starting a web newsletter and online PDF (Adobe Acrobat format) newsletter along with basic scripting to extend Scribus as per your requirements. This book begins with the simplest tasks and brings you progressively to adapt your workflow to the most efficient tools. It commences with the description of the graphic tool chain and an overall chapter on how to draw a simple and attractive business card. You'll then see how to manage the pages of your document and organized their structure thanks to guides. Then being invited to fill them with text, you'll be able to import, set text style as well as use replacement and hyphenation tool. Pictures or vector drawing will be added to the documents too. You'll be taught to choose the best format at the best time, modify or distort the shapes to get very custom documents. You will also learn how Scribus handles advanced color features such as transparencies, overprinting, spot colors precisely and be sure they are set well for a print result without bad surprise. At the end, you'll know to produce a perfect PDF file, be it for print jobs or web with effects, buttons and javascript interactivity, extend the document capacities as well as Scribus tools with simple programming especially with the python language.
Table of Contents (19 chapters)
Scribus 1.3.5 Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action - calculate the sum of the fields


Let's take the form we created before, in its present state, and modify some details to enable calculations and see how we can receive the command in a mail.

  1. The first thing we will need for our calculation is the unique name for each field. Names can be set in the Field Properties window of the PP. For easy remembering let's name them by their column name and row number. The first field of the first column will be Ref1, the price of the same row will be Price 1, and then Qty1 and Subtotal1. The next row will be Ref2, Price 2, and so on.

  2. The first calculation must be done at the end of each row. Select the first Subtotal field and display its properties by double-clicking on it.

  3. Specify that it is Read Only in the first tab and then go to the Calculate tab.

  4. Activate Custom calculation script, and click on the Edit button. In the editing window, enter the following:

    this.getField('Subtotal1').value=this.getField('Price1').value*this.getField(...