Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4055 Vues

Hi,

I'm trying to change the default layout for the printed reports. I'm using DIN-A4 paper format.
I want to add marks for the punch holes and where to fold for envelopes.
These marks are usually within the left margin and one is exactly in the vertical center. The other one has a certain distance from the top of the page. There is also a standard for these marks.

I tried changing the external_layout_standard XML and added an element like this:

<div style="position: absolute; top: 148.5mm; left: -10mm; width: 10mm; height: 1px; border-top: 1px solid black;"></div>

The position however is not correct, even if I subtract the given top margin in the paper format dialog.
Also it is not possible to move the line into the left margin area.

How would be the correct way of doing something like this?.

Regards,
Stephan

Avatar
Ignorer
Meilleure réponse

Same here, I see the marks in HTML but not in PDF, ... searching for a solution. I will let you know if I find out.


Edit:

For the DIN layout I ended up with this:






  • din_page is only rendered when the header is not skipped, else better use the footer
  • When it's not inside heder/footer/page it only renders in HTML not PDF
  • Positioning is still messed up
  • We can not draw outside of the Borders from the Page Layout (20mm) ... I'm thinking about a Border of 0 in the page layout and defining the border inside my Template ...



It's quiet messy and still WIP, but could work in the end.


Avatar
Ignorer
Meilleure réponse

Working on that exact same issue. Were you able to achieve those marks?

I can get a line to appear in HTML reports, but not in PDF.

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
févr. 24
3961
0
févr. 21
2088
0
déc. 20
1535
0
mai 16
3157
0
mai 18
2368