Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4028 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 24
3927
0
feb. 21
2046
0
dec. 20
1535
0
mei 16
3156
0
mei 18
2366