#11 Added log before file-existence check, to try spot error.

This commit is contained in:
Barold 2021-01-24 13:43:21 +02:00
parent f95c6c3d8d
commit f8e1305c08
4 changed files with 22 additions and 21 deletions

View File

@ -100,6 +100,7 @@ func main() {
issueName := RemoveBadCharacters(issue.Name)
completeName := mydir + "/issue/" + publicationName + " - " + issueName + ".pdf"
fmt.Println("Checking if issue exists: " + completeName)
if fileExists(completeName) {
fmt.Println("Issue already found: " + completeName)
continue

BIN
built/Zinigo_Linux_AMD64 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,15 @@
<html>
<head>
<!--<style>
@media all {
@page { margin: 0px; }
body { margin-top: 0cm;
margin-left:auto;
}
<!--<style>
@media all {
@page { margin: 0px; }
body { margin-top: 0cm;
margin-left:auto;
}
}
</style>-->
}
</style>-->
<style>
html, body {
width: fit-content;
@ -23,25 +23,25 @@ margin-left:auto;
@page { size: 100px 100px ; margin : 0px }
</style>
</head>
<body>
<object type="image/svg+xml" data="SVG_PATH" ></object>
<body>
<object type="image/svg+xml" data="SVG_PATH</object>
<script>
window.onload = fixpage;
window.onload = fixpage;
function fixpage() {
renderBlock = document.getElementsByTagName("html")[0];
renderBlockInfo = window.getComputedStyle(renderBlock)
renderBlock = document.getElementsByTagName("html")[0];
renderBlockInfo = window.getComputedStyle(renderBlock)
// fix chrome page bug
fixHeight = parseInt(renderBlockInfo.height) + 1 + "px"
// fix chrome page bug
fixHeight = parseInt(renderBlockInfo.height) + 1 + "px"
pageCss = `@page { size: \${renderBlockInfo.width} \${fixHeight} ; margin:0;}`
document.getElementById("page_style").innerHTML = pageCss
}
</script>
</body>
pageCss = "@page { size: " + renderBlockInfo.width + " " + fixHeight +" ; margin:0;}"
document.getElementById("page_style").innerHTML = pageCss
}
</script>
</body>
</html>