From 2c97d68f9054eb52c3e6ad4ee90a35505559ae4a Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 13 Jan 2022 18:48:46 +0100 Subject: [PATCH] test pdf --- demo-api/hooks/mycol/get_return.js | 12 +++++++++--- demo-api/testfiles/test.html | 16 ++++++++++++++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/demo-api/hooks/mycol/get_return.js b/demo-api/hooks/mycol/get_return.js index c993ca0..f1af359 100644 --- a/demo-api/hooks/mycol/get_return.js +++ b/demo-api/hooks/mycol/get_return.js @@ -18,9 +18,15 @@ marginLeft: 30, marginRight: 30, headerLeft: "TestPDF", - headerCenter: "[date]", - headerRight: "[page] - [frompage] / [topage]", - headerSpacing: 10, + headerCenter: "Rev. 1", + headerRight: "[page] / [topage]", + headerSpacing: 20, + headerLine: true, + footerLeft: "(c) Webmakers GmbH", + footerCenter: "www.webmakers.de", + footerRight: "[date]", + footerSpacing: 20, + footerLine: true, } ) context.response.header("Content-Type", "application/pdf") diff --git a/demo-api/testfiles/test.html b/demo-api/testfiles/test.html index 0832a12..80051d2 100644 --- a/demo-api/testfiles/test.html +++ b/demo-api/testfiles/test.html @@ -22,6 +22,17 @@ img { width: 10cm; } + .block { + margin: 3cm; + border: 1mm solid red; + background-color: #499; + border-radius: 2cm; + height: 2cm; + } + .firstimg { + float: right; + margin: 1cm; + } @@ -59,7 +70,8 @@ Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming

- + +

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. @@ -83,6 +95,6 @@ Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lo Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo

- + \ No newline at end of file