Skip to Content
Menú
This question has been flagged
2 Respostes
4391 Vistes

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
Descartar
Best Answer

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de febr. 24
4684
0
de febr. 21
2512
0
de des. 20
1980
0
de maig 16
3441
0
de maig 18
2678