HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rootVIII
pdfinverter
Go2020–2020
rootVIII / pdfinverter · Archived

pdfinverter

darken (or lighten) a PDF

3Distinct people
3Mentions
0Explicit recommenders
164GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

darken (or lighten) a PDF

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 3-hour interval3 dated mentions

Observed mentions: 2020-11-22 08:26:28 UTC to 2020-11-25 23:53:16 UTC.

012020-11-22 06:00:00 UTC to 2020-11-22 09:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsNov 22, 06:002020-11-22 09:00:00 UTC to 2020-11-22 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-22 12:00:00 UTC to 2020-11-22 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-22 15:00:00 UTC to 2020-11-22 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-22 18:00:00 UTC to 2020-11-22 21:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020-11-22 21:00:00 UTC to 2020-11-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 00:00:00 UTC to 2020-11-23 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 03:00:00 UTC to 2020-11-23 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 06:00:00 UTC to 2020-11-23 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 09:00:00 UTC to 2020-11-23 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 12:00:00 UTC to 2020-11-23 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 15:00:00 UTC to 2020-11-23 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 18:00:00 UTC to 2020-11-23 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-23 21:00:00 UTC to 2020-11-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 00:00:00 UTC to 2020-11-24 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsNov 24, 00:002020-11-24 03:00:00 UTC to 2020-11-24 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 06:00:00 UTC to 2020-11-24 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 09:00:00 UTC to 2020-11-24 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 12:00:00 UTC to 2020-11-24 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 15:00:00 UTC to 2020-11-24 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 18:00:00 UTC to 2020-11-24 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-24 21:00:00 UTC to 2020-11-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 00:00:00 UTC to 2020-11-25 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 03:00:00 UTC to 2020-11-25 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 06:00:00 UTC to 2020-11-25 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 09:00:00 UTC to 2020-11-25 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 12:00:00 UTC to 2020-11-25 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 15:00:00 UTC to 2020-11-25 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 18:00:00 UTC to 2020-11-25 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-11-25 21:00:00 UTC to 2020-11-26 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsNov 25, 21:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Nov 22, 06:002020-11-22 06:00:00 UTC2020-11-22 09:00:00 UTC110
Nov 22, 09:002020-11-22 09:00:00 UTC2020-11-22 12:00:00 UTC000
Nov 22, 12:002020-11-22 12:00:00 UTC2020-11-22 15:00:00 UTC000
Nov 22, 15:002020-11-22 15:00:00 UTC2020-11-22 18:00:00 UTC000
Nov 22, 18:002020-11-22 18:00:00 UTC2020-11-22 21:00:00 UTC101
Nov 22, 21:002020-11-22 21:00:00 UTC2020-11-23 00:00:00 UTC000
Nov 23, 00:002020-11-23 00:00:00 UTC2020-11-23 03:00:00 UTC000
Nov 23, 03:002020-11-23 03:00:00 UTC2020-11-23 06:00:00 UTC000
Nov 23, 06:002020-11-23 06:00:00 UTC2020-11-23 09:00:00 UTC000
Nov 23, 09:002020-11-23 09:00:00 UTC2020-11-23 12:00:00 UTC000
Nov 23, 12:002020-11-23 12:00:00 UTC2020-11-23 15:00:00 UTC000
Nov 23, 15:002020-11-23 15:00:00 UTC2020-11-23 18:00:00 UTC000
Nov 23, 18:002020-11-23 18:00:00 UTC2020-11-23 21:00:00 UTC000
Nov 23, 21:002020-11-23 21:00:00 UTC2020-11-24 00:00:00 UTC000
Nov 24, 00:002020-11-24 00:00:00 UTC2020-11-24 03:00:00 UTC000
Nov 24, 03:002020-11-24 03:00:00 UTC2020-11-24 06:00:00 UTC000
Nov 24, 06:002020-11-24 06:00:00 UTC2020-11-24 09:00:00 UTC000
Nov 24, 09:002020-11-24 09:00:00 UTC2020-11-24 12:00:00 UTC000
Nov 24, 12:002020-11-24 12:00:00 UTC2020-11-24 15:00:00 UTC000
Nov 24, 15:002020-11-24 15:00:00 UTC2020-11-24 18:00:00 UTC000
Nov 24, 18:002020-11-24 18:00:00 UTC2020-11-24 21:00:00 UTC000
Nov 24, 21:002020-11-24 21:00:00 UTC2020-11-25 00:00:00 UTC000
Nov 25, 00:002020-11-25 00:00:00 UTC2020-11-25 03:00:00 UTC000
Nov 25, 03:002020-11-25 03:00:00 UTC2020-11-25 06:00:00 UTC000
Nov 25, 06:002020-11-25 06:00:00 UTC2020-11-25 09:00:00 UTC000
Nov 25, 09:002020-11-25 09:00:00 UTC2020-11-25 12:00:00 UTC000
Nov 25, 12:002020-11-25 12:00:00 UTC2020-11-25 15:00:00 UTC000
Nov 25, 15:002020-11-25 15:00:00 UTC2020-11-25 18:00:00 UTC000
Nov 25, 18:002020-11-25 18:00:00 UTC2020-11-25 21:00:00 UTC000
Nov 25, 21:002020-11-25 21:00:00 UTC2020-11-26 00:00:00 UTC101

What Hacker News says

3 sources
It took me a few to respond, but I'll make some recommendations now: 1. Use filepath.Glob if you want to glob Most of [0] can be replaced with filepath.Glob. You should probably also respect TMPDIR if it's set, which ioutil.TempDir etc will do. 2. ExitErr shouldn't be used, especially not within nested functions. You have 'defer os.RemoveAll(tmpDir)'. defers won't get called if you `os.Exit(1)` as you do in ExitErr. You should be instead doing `return nil, err` all the way back up to `err := RunApp()`, and printing the error there. That will let defers run. In general, using os.Exit anywhere other than in the main function is an antipattern. 3. Your parallel processing should be using a waitgroup or errgroup. A slice of channels is super fragile. In [1], do something like the following: // before the for loop var wg sync.WaitGroup
Read the rest
// in each iteration of the for loop wg.Add(1) go func(name string) { defer wg.Done() cli.ImageRoutine(fileName) }(fileName) // at the end, to wait wg.Wait() Use an errgroup if you need to cancel it. The channel thing you're doing now is more fragile than a waitgroup, and harder to reason about. 4. use of exported functions / unexported functions is all over the place and inconsistent. There's a few other things, but that's what I've got offhand. I can't actually run the code because I only use linux, and it obv doesn't run on linux. Oh, I guess that's another thing, you want some build tags to make it more clear it won't run on linux. Hopefully something in there was helpful [0]: https://github.com/rootVIII/pdfinverter/blob/5fe9f505779bb9d... [1]: https://github.com/rootVIII/pdfinverter/blob/6cbcd4cc7254514...
In Show HN: PDF Inverter for macOS (In Golang) Darken Your PDFs

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.