10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

aerobatics. But it is best suited to gliding.fillcolor, charspacing,fontsize, fontname3. C one Head R ocketThis paper arrow can be thrown with big swing. We launched it fromthe roof of a hotel. It stayed in the air a long time and covered aconsiderable distance.4. Super DartThe super dart can fly giant loops with a radius of 4 or 5 meters andcover very long distances. Its heavy cone point is slightly bowedupwards to get the lift required for loops.5. German Bi-PlaneBrand-new and ready for take-off. If you have lessons in the history ofaviation you can show your interest by letting it land on your teacher'sdesk.Fig. 7.11FormattingTextflowsA multi-line Textflow can be placed into one or more rectangles (so-called fitboxes)on one or more pages. The following steps are required for placing a Textflow on thepage:> The function PDF_add_textflow( ) accepts portions of text and corresponding formattingoptions, creates a Textflow object, and returns a handle. As an alternative, thefunction PDF_create_textflow( ) analyzes the complete text in a single call, where thetext may contain inline options for formatting control. These functions do not placeany text on the page.> The function PDF_fit_textflow( ) places all or parts of the Textflow in the supplied fitbox.To completely place the text, this step must possibly be repeated several timeswhere each of the function calls provides a new fitbox which may be located on thesame or another page.> The function PDF_delete_textflow( ) deletes the Textflow object after it has beenplaced in the document.The functions PDF_add/create_textflow( ) for creating Textflows support a variety of optionsfor controlling the formatting process. These options can be provided in the function’soption list, or embedded as inline options in the text when using PDF_create_textflow( ). PDF_info_textflow( ) can be used to query formatting results and many otherTextflow details. We will discuss Textflow placement using some common applicationexamples. A complete list of Textflow options can be found in the PDFlib Reference.Many of the options supported by PDF_add/create_textflow( ) are identical to those ofPDF_fit_textline( ). It is therefore recommended to familiarize yourself with the examplesin Section 7.1, »Placing and Fitting Single-Line Text«, page 133. In the below sectionswe will focus on options related to multi-line text.Cookbook Code samples regarding text output issues can be found in the text_output category of thePDFlib Cookbook.7.2.1 Placing Textflows in the FitboxThe fitbox for Textflow is the area where text will be placed. It is defined as the rectangulararea specified with the llx, lly, urx, ury parameters of PDF_fit_textflow( ).Placing text in a single fitbox. Let’s start with an easy example. The following codefragment uses two calls to PDF_add_textflow( ) to assemble a piece of bold text and a7.2 Multi-Line Textflows 141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!