تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4449 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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.


الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 24
4806
0
فبراير 21
2574
0
ديسمبر 20
2056
0
مايو 16
3535
0
مايو 18
2716