xwikisas / application-diagram

Create various types of diagrams using draw.io
GNU Lesser General Public License v2.1
0 stars 7 forks source link

Styles, font and text colors aren't showing as added by the user in the XWiki PDF export #213

Closed ane-gabriela closed 2 weeks ago

ane-gabriela commented 2 years ago

Steps to reproduce:

  1. Create a new Diagram
  2. Add some shapes eg. Textbox, Rounded Rectangle, Circle, Cylinder
  3. Add some text in each one of them
  4. Select a peace of text and make it bold
  5. Select other pieces of text and select one style for each of them: italic, underline, strikethrough, different font, different text size, different text color, subscript, superscript DiagramCreated
  6. Click Save & View
  7. Access More actions > Export > Export as PDF
  8. Deselect all options > Export

Expected results: The PDF looks like the diagram.

Actual results: Some styles aren't shown at all, some brake the paragraphs. Comparison

xwiki_Diagram_Diagram+4_WebHome.pdf

NOTE: While exporting the diagram through the Diagram menu (File > Export as > PDF... > Export) the PDF looks like the diagram created. export (1).pdf

Environment: Windows 10, XWiki 13.4.5, Chrome 96, Diagram Application (Pro) 1.17.1

ane-gabriela commented 2 years ago

This is also affecting https://github.com/xwikisas/application-diagram/issues/153

xwiki_Diagram_Diagram+1_WebHome.pdf

snazare commented 2 weeks ago

not reproducing on xwiki 15.10.10, diagram pro 1.20.5, probably due to recent improvements.