Skip to content

Commit c966161

Browse files
committed
Added a bunch of files and some changes
1 parent e253e4e commit c966161

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
16+
17+
*.pdf
18+
generated/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pdf-diff
22
A tool for visualizing differences between two pdf files. Mainly dedicated to editors that spent a lot of hours on several pdf.
33

4-
## STATUS: Work in progress
4+
![Example of output](https://github.com/serhack/pdf-diff/blob/master/image-1.png)
55

66
## Foreword
77

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/serhack/pdf-diff
2+
3+
go 1.18

image-1.png

111 KB
Loading

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"os"
1212
"os/exec"
1313
"strconv"
14-
"strings"
1514
)
1615

1716
// Structure for Pixel. Used as float to make operations more easily.
@@ -105,7 +104,7 @@ func CompareSingleImage(path1 string, path2 string, i int) {
105104
for x := 0; x < len(pixel_1[y]); x++ {
106105
result := compareSinglePixel(pixel_1[y][x], pixel_2[y][x])
107106
if !result {
108-
drawSection(pixel_3, y)
107+
drawSection(pixel_3[y])
109108
}
110109
}
111110
}

0 commit comments

Comments
 (0)