You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And some text (simple text or shapes with text inside)
Add other text (simple text or shapes with text inside) and separate rows by Enter
Click Save & View
Access More actions > Export > Export as PDF
Expected result
In the PDF the text is well positioned compared to the position from the diagram editor
Actual result
In the PDF only the text that contains Enter is well positioned (really close to the position from the editor view) and in the other case the text is moved to the left
Editor:
PDF export:
The text was updated successfully, but these errors were encountered:
So the workaround will be to add an 'Enter' and the end of the text, which is not seen but will fix the view in XWiki PDF export
Investigation: Starting with #118 elements that contain an Enter are treated separate from the ones that does not contain it, so the problem should be in how the width is calculated in the first case
oanalavinia
added a commit
to oanalavinia/application-diagram
that referenced
this issue
Sep 3, 2020
* prevent adjusting coordinates multiple times
* modified helper methods to consider also undefined or text nodes that would fallback the element to the basic draw.io converter
* prevent adjusting coordinates multiple times
* modified helper methods to consider also undefined or text nodes that would fallback the element to the basic draw.io converter
Steps to reproduce
Expected result
In the PDF the text is well positioned compared to the position from the diagram editor
Actual result
In the PDF only the text that contains Enter is well positioned (really close to the position from the editor view) and in the other case the text is moved to the left
Editor:
![editor](https://user-images.githubusercontent.com/22794181/84912927-9f3de880-b0c2-11ea-9117-931e7b33b2f5.png)
PDF export:
![pdf_export](https://user-images.githubusercontent.com/22794181/84912964-ab29aa80-b0c2-11ea-8bfb-0b5c9c928cb1.png)
The text was updated successfully, but these errors were encountered: