Extracting Rich Text From google doc

I am trying to work on an app script use case:

Assume I have a Google Doc named “APX Radio” containing all sorts of information about that product. I want to tag different content sections using some tagging method. (A content section can be a rich text, image, table, or any combination of them.) Now I want to extract let’s say tag 1, meaning extract the content of that tag as it is(same format, style, image, table, position,n etc.) and then paste it as it is in the destination Google Doc file.

So my Question is what would be the best way to extract the content of a specific tag as it is and paste it in a Google Doc. And what tagging method would be best to achieve this?

I have tried researching a lot, but getting more confused, so any help would be very much appreciated. thank you

1 Like

This is actually a very good question. Unfortunately, perfect copying of components (let’s call it that) can only be achieved by copying within a single file. As far as I understand, you have a set of ready-made templates (components) in a separate Document. And in this case, the copying process may indeed not be completely accuracy.