#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) issueName := RemoveBadCharacters(issue.Name)
completeName := mydir + "/issue/" + publicationName + " - " + issueName + ".pdf" completeName := mydir + "/issue/" + publicationName + " - " + issueName + ".pdf"
fmt.Println("Checking if issue exists: " + completeName)
if fileExists(completeName) { if fileExists(completeName) {
fmt.Println("Issue already found: " + completeName) fmt.Println("Issue already found: " + completeName)
continue continue

BIN
built/Zinigo_Linux_AMD64 Normal file

Binary file not shown.

Binary file not shown.

View File

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