Skip to content

Commit

Permalink
Added a bunch of files and some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
serhack committed Aug 4, 2022
1 parent e253e4e commit c966161
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Dependency directories (remove the comment below to include it)
# vendor/

*.pdf
generated/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pdf-diff
A tool for visualizing differences between two pdf files. Mainly dedicated to editors that spent a lot of hours on several pdf.

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

## Foreword

Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/serhack/pdf-diff

go 1.18
Binary file added image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"os"
"os/exec"
"strconv"
"strings"
)

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

0 comments on commit c966161

Please sign in to comment.