Author Topic: RTF Scale Diagrams over footer  (Read 658 times)

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
RTF Scale Diagrams over footer
« on: September 24, 2018, 08:14:13 pm »
When you render diagrams in rtf, those get somehow scaled to fit on a page. However when I have “long” diagrams those overlay my page footer.
Is there a way to avoid this?
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9397
  • Karma: +260/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF Scale Diagrams over footer
« Reply #1 on: September 24, 2018, 09:02:42 pm »
I don't really understand what you mean with "overlay my page footer".
Does your footer not reach right side of the page (up to the margin?)

If that is the case I guess you'll either have to make your footer longer, or your right page margin wider.

Geert

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
Re: RTF Scale Diagrams over footer
« Reply #2 on: September 25, 2018, 12:58:02 am »
Hi Geert,
in my document templates I have defined headers and footers containing some meta-data.
As expected, my generated PDF’s always show the headers then the generated model content and last the footers.
The document generator manages how to scale diagrams and when to create page breaks to have the headers and footers visible at any page.
This worked for me all the time, but not for a college of mine.
The difference is that my diagrams are all in A4 landscape format but the format of my college is A4 portrait format. Problems occur on diagram more or less entirely filled (to the end of the “diagram page”).
In such cases, of an entirely filled A4 portrait format diagram, the PDF shows the header (so it is scaled somehow), but not enough, because it overlaps the footer (not visible any more).
It seems to me to be a bug, but maybe there is some workaround.
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9397
  • Karma: +260/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF Scale Diagrams over footer
« Reply #3 on: September 25, 2018, 03:44:39 pm »
Do you only have that when you generate PDF directly?
We always generate to .docx and I've never seen such behavior. (we also have some landscape templates with large diagrams)

Geert

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
Re: RTF Scale Diagrams over footer
« Reply #4 on: September 25, 2018, 05:14:39 pm »
Hi Geert,
I just tried it in Word. The result is a bit different, but still not ok.

In Word I see the header and footer, but the diagram is cropped rather than scaled to see the footer.

Anyhow, currently Word is not an option for me, because of our cover page needs to have a graphics for whatever reason and some overlaying text coming from the model. Doing that, is very tricky and I did not get to manage it for Word.
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9397
  • Karma: +260/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF Scale Diagrams over footer
« Reply #5 on: September 25, 2018, 09:00:56 pm »
If the diagram is cropped you may have an issue with scaling.

Do you have multiple monitors with different scaling settings, or a high dpi monitor?

The windows scaling somehow seems to mess up the diagram export.

Geert

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
Re: RTF Scale Diagrams over footer
« Reply #6 on: September 25, 2018, 09:32:36 pm »
I use a notebook with its monitor connected to and external monitor.
So I switched off my external monitor. However the problem still exists. :'(

However I was wondering why you do not know this.

I tried a Sparx document template with footers, and this works :).  So the problem seem to be in my template, but currently I have no idea what switch causes that, maybe something about page break or keeping things together.
Best regards,

Peter Heintz

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
Re: RTF Scale Diagrams over footer
« Reply #7 on: September 27, 2018, 01:48:49 am »
From my investigations I get the impression, that the scaling problem starts if one has more than one line in the footer.

Geert do you have footers with more than one line?
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9397
  • Karma: +260/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF Scale Diagrams over footer
« Reply #8 on: September 27, 2018, 01:53:02 am »
Geert do you have footers with more than one line?
No, I don't think so. Headers, yes, but no footers.

Geert

PeterHeintz

  • EA User
  • **
  • Posts: 812
  • Karma: +47/-17
    • View Profile
Re: RTF Scale Diagrams over footer
« Reply #9 on: September 27, 2018, 06:06:56 pm »
So I think it is time to create a bug report.
Best regards,

Peter Heintz