Multi Column layout for dynamically parsed documents (One language on each side, of the same parsed document) #2330
Unanswered
christ-offer
asked this question in
Q&A
Replies: 1 comment
-
Hello Did you manage to make it work? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey. So I am currently working on a project where we want to generate word documents from some raw json. Ive made a parser, and it works perfectly fine as long as we don't want to have several languages (one language in each column for the same document).
For the working version with single column/single language, simply doing
children: parser(json)
, works fine.But when trying to set this to two columns with a parsed result on each side. I'm running into issues.
Following the standard method with example text, renders fine:
However trying to place the parser(json) instead of textruns/paragraphs/etc, fails.
And ditto with:
This also does not work:
The parsed array that is returned from parser(json) is an array full of new Paragraphs, new Tables, etc. It is returned atm as an any[].
Anyone have any ideas here? Do I have to rewrite the parser so that each new Paragraph/Table etc gets its own section?
Beta Was this translation helpful? Give feedback.
All reactions