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.

Fig. 9.1Creating a complexpage layout in logicalstructure order (left)and in visual order(right). The right variantuses item activationfor the first sectionbefore continuingfragments 4 and 6.71652 34812534 678Generating page contents in visual order. The »logical order« approach forces the creatorto construct the page contents in logical order even if it might be easier to create itin visual order: header, left column upper part, table, left column lower part, insert,right column, footer. Using PDF_activate_item( ) this ordering can be implemented asfollows:/* create page layout in visual order */id_header = p.begin_item("Artifact", "");/* 1 create header */p.set_text_pos(x_header, y_header);...p.end_item(id_header);id_art = p.begin_item("Art", "Title=Article");id_sect1 = p.begin_item("Sect", "Title = {First Section}");/* 2 create top part of left column */p.set_text_pos(x1_left, y1_left_top);...String optlist = "Title=Table parent=" + id_art;id_table = p.begin_item("Table", optlist);/* 3 create table structure and content */p.set_text_pos(x_start_table, y_start_table);...p.end_item(id_table);/* continue with first section */p.activate_item(id_sect1);/* 4 create bottom part of left column */p.set_text_pos(x1_left, y1_left_bottom);...9.6 Tagged PDF 221

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

Saved successfully!

Ooh no, something went wrong!