
На этом рисунке, если вы видите справа это на самом деле 2013 год, но он обрезается, и в окончательно сгенерированном PDF-файле появляется только 20.
фрагмент кода моего html-шаблона
Код: Выделить всё
Title
@font-face {
font-family: "Roboto";
src: url("{{.Font}}") format("truetype");
font-weight: normal;
font-style: normal;
}
* {
font-family: "Roboto", sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
color: #1763c0;
text-decoration: none;
}
span {
font-family: "Roboto", sans-serif;
}
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
img {
height: 1.5rem;
width: 1.5rem;
}
main {
background: white;
padding: 16px;
margin: auto 16px;
}
.companyName {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 36px;
line-height: 49px;
text-align: center;
margin-top: 100px;
}
.img-responsive {
height: 6rem;
width: 6rem;
}
.img-signature {
width: 6rem;
height: 3rem;
}
footer {
margin: 20px auto;
}
p {
text-align: justify;
font-size: 18px;
}
.witness {
width: 50%;
margin-left: 50px;
}
.witness-signature {
margin-top: 10px;
margin-left: 150px;
}
[img]{{.Logo}}[/img]
Agreement
This Agreement is made at Location, on this day ____ of
__________________, ______
BETWEEN
M/s. {{.OrganisationName}}
{{if eq .OrgType "COMPANY"}}
(CIN:{{.CIN}}), a company registered under the Companies Act, {{.Year}},
Есть ли возможное решение для этой проблемы в css или wkhtmltopdf.
Подробнее здесь: https://stackoverflow.com/questions/791 ... -in-golang