# Revision history [back]

Draw isn't a suitable pdf editor. Copying shapes containing text from a Draw document to a Writer documnt makes things worse.
Therte is no built-in tool for joining texts contained in shapes. To get such a tool you would need to do some programming, and I suppose the handling of formats would be rather complicated. To transfer plain textpieces from shapes in Draw to Writer with user code and to join them in a continuous text this way is not too difficult as long as the logical order (sequence of insertion) of the text-containing shapes is the order you want to get the text in.

Draw isn't a suitable pdf editor. Copying shapes containing text from a Draw document to a Writer documnt document makes things worse.

Therte

There is no built-in tool for joining texts contained in shapes. To get such a tool you would need to do some programming, and I suppose the handling of formats would be rather complicated. To transfer pieces of plain textpieces text from shapes in Draw to Writer with user code and to join them in a continuous text this way is not too difficult as long as the logical order (sequence of insertion) of the text-containing shapes is the order you want to get the text in.

Draw isn't a suitable pdf editor. Copying shapes containing text from a Draw document to a Writer document makes things worse.

There is no built-in tool for joining texts contained in shapes. To get such a tool you would need to do some programming, and I suppose the handling of formats would be rather complicated. To transfer pieces of plain text from shapes in Draw to Writer with user code and to join them in a continuous text this way is not too difficult as long as the logical order (sequence of insertion) of the text-containing shapes is the order you want to get the text in.in.

Edit1:
I ported the contents of the sample document provided by the OQ to a 'Draw' file (.odg ) which is prepared to demonstrate the collection of texts from shapes. I wrote the code in pursuit of questions and suggestions posted in this this thread of the well structured forum.openoffice.org/en. The code as it is can not work in a 'Writer' document. Given a collection of shapes currently selected in a 'Draw' document, it will go through it, resolve groups recursively, extract texts where texts are contained, sorts these texts along the (1.) y- and the (2.) x- coordinates of the positions of the respective shapes, and unifies them into a single string with hard linebreaks between the parts.
If you are interested go to the third slide of this drawing, select all of its content, and run the Basic "macro" Standard.DoIt.walkThroughSortWrite contained in the file.

Draw isn't a suitable pdf editor. Copying shapes containing text from a Draw document to a Writer document makes things worse.

There is no built-in tool for joining texts contained in shapes. To get such a tool you would need to do some programming, and I suppose the handling of formats would be rather complicated. To transfer pieces of plain text from shapes in Draw to Writer with user code and to join them in a continuous text this way is not too difficult as long as the logical order (sequence of insertion) of the text-containing shapes is the order you want to get the text in.

Edit1:
I ported the contents of the sample document provided by the OQ to a 'Draw' file (.odg ) which is prepared to demonstrate the collection of texts from shapes. I wrote the code in pursuit of questions and suggestions posted in this this thread of the well structured forum.openoffice.org/en. forum.openoffice.org/en. The code as it is can not work in on a 'Writer' document. Given a collection of shapes currently selected in a 'Draw' document, it will go through it, resolve groups recursively, extract texts where texts are contained, sorts sort these texts along the (1.) y- and the (2.) x- coordinates of the positions of the respective shapes, and unifies them into a single string with hard linebreaks between the parts.
If you are interested go to the third slide of this drawing, select all of its content, and run the Basic "macro" Standard.DoIt.walkThroughSortWrite contained in the file.

Draw isn't a suitable pdf editor. Copying shapes containing text from a Draw document to a Writer document makes things worse.

There is no built-in tool for joining texts contained in shapes. To get such a tool you would need to do some programming, and I suppose the handling of formats would be rather complicated. To transfer pieces of plain text from shapes in Draw to Writer with user code and to join them in a continuous text this way is not too difficult as long as the logical order (sequence of insertion) of the text-containing shapes is the order you want to get the text in.

Edit1:
I ported the contents of the sample document provided by the OQ to a 'Draw' file (.odg ) which is prepared to demonstrate the collection of texts from shapes. I wrote the code last february in pursuit of questions and suggestions posted in this thread of the well structured forum.openoffice.org/en. The code as it is can not work on a 'Writer' document. Given a collection of shapes currently selected in a 'Draw' document, it will go through it, resolve groups recursively, extract texts where texts are contained, sort these texts along the (1.) y- and the (2.) x- coordinates of the positions of the respective shapes, and unifies them into a single string with hard linebreaks between the parts.
If you are interested go to the third slide of this drawing, select all of its content, and run the Basic "macro" Standard.DoIt.walkThroughSortWrite contained in the file.

Draw isn't a suitable pdf editor. Copying shapes containing text from a Draw document to a Writer document makes things worse.

There is no built-in tool for joining texts contained in shapes. To get such a tool you would need to do some programming, and I suppose the handling of formats would be rather complicated. To transfer pieces of plain text from shapes in Draw to Writer with user code and to join them in a continuous text this way is not too difficult as long as the logical order (sequence of insertion) of the text-containing shapes is the order you want to get the text in.

Edit1:
I ported the contents of the sample document provided by the OQ to a 'Draw' file (.odg ) which is prepared to demonstrate the collection of texts from shapes. I wrote the code last february in pursuit of questions and suggestions posted in this thread of the well structured forum.openoffice.org/en. The code as it is can not work on a 'Writer' document. Given a collection of shapes currently selected in a 'Draw' document, it will go through it, resolve groups recursively, extract texts where texts are contained, sort these texts along the (1.) y- and the (2.) x- coordinates of the positions of the respective shapes, and unifies them into a single string with hard linebreaks between the parts. Text formats are disregarded.
If you are interested go to the third slide of this drawing, select all of its content, and run the Basic "macro" Standard.DoIt.walkThroughSortWrite contained in the file.file.
(The mentioned macro can easily be changed to output the result to a new text document by removing one apostrophe. The needed Writer-oriented code is contained.)