git/list[1] front-page[2] threads[3] people[4] search[5] about
 

clean/smudge filters for pdf files

From
LRLeo Razoumov <slonik.az@gmail.com>
Date
Oct 23, 2008, 19:44 UTC
Message-ID
<ee2a733e0810231244u1510cdc8y7b27af9b8fdda1e0@mail.gmail.com>

I am trying to improve storage efficiency for PDF files in a git repo. Following earlier discussions in this list I am trying to set up proper clean/smudge filters. What follows is my current setup

# in ~/.gitconfig
[filter "pdf"]
	clean  = "pdftk - output - uncompress"
	smudge = "pdftk - output - compress"

# in .gitattributes *.pdf filter=pdf

Unfortunately, it seems as though that pdftk uncompress followed by pdftk compress do not leave the file invariant. I tried several uncompress+compress iterations and the file still keep changing (the size though stays the same). Is there any other alternative way to store PDF files in git repo more efficiently? Any alternative to pdftk on Linux?

--Leo--
Next: Pierre Habouzit
Message 1 of 5 in “clean/smudge filters for pdf files”
  1. Leo RazoumovOct 23, 2008
  2. Pierre HabouzitOct 23, 2008
  3. Leo RazoumovOct 24, 2008
  4. Michael J GruberOct 24, 2008
  5. Michael J GruberOct 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.