#11 Added log before file-existence check, to try spot error.
This commit is contained in:
parent
f95c6c3d8d
commit
f8e1305c08
|
|
@ -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
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -24,7 +24,7 @@ margin-left:auto;
|
||||||
</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;
|
||||||
|
|
@ -37,7 +37,7 @@ margin-left:auto;
|
||||||
// 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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue