October 22, 2024
Chicago 12, Melborne City, USA
pdf

git: add uncompressed pdf file


I think I have one of the rare cases where I want to add a PDF file into a git repository.
In fact I have two cases:

  • I have no source PDF
  • I do have a source but I need the created PDF in a testcase.

Of course, this is expensive.
Now I think about adding the file uncompressed.
That way I can diff.
Although the initial version is expensive,
I think not more expensive than if compressed,
as far as I understand, further versions are less expensive,
because the PDF changes only in detail, mostly textual.

My question is twofold:

  • does my idea make sense?
  • if so, how can I make git uncompress when checking in
    and compress again when checking out?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video