Fix test.pdf

test.pdf wasn't a valid PDF file:
>$ mutool info test.pdf
>test.pdf:
>error: cannot recognize xref format
>error: cannot read xref (ofs=406)
>error: cannot read xref at offset 406
>warning: trying to repair broken xref

Process it with `mutool clean` to fix errors, collapse newlines to reduce size

Closes Homebrew/homebrew#38194.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
ojab 2015-02-09 16:11:46 +03:00 committed by Xu Cheng
parent af66c12108
commit 1db6a756c9

View File

@ -1,30 +1,24 @@
%PDF-1.6
1 0 obj <</Type /Catalog /Pages 2 0 R>>
endobj
2 0 obj <</Type /Pages /Kids [3 0 R] /Count 1>>
endobj
3 0 obj<</Type /Page /Parent 2 0 R /Resources 4 0 R /MediaBox [0 0 500 800] /Contents 6 0 R>>
endobj
4 0 obj<</Font <</F1 5 0 R>>>>
endobj
5 0 obj<</Type /Font /Subtype /Type1 /BaseFont /Helvetica>>
endobj
6 0 obj
<</Length 44>>
stream
%μῦ
1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj
2 0 obj<</Type/Pages/Kids[3 0 R]/Count 1>>endobj
3 0 obj<</Type/Page/Parent 2 0 R/Resources 4 0 R/MediaBox[0 0 500 800]/Contents 6 0 R>>endobj
4 0 obj<</Font<</F1 5 0 R>>>>endobj
5 0 obj<</Type/Font/Subtype/Type1/BaseFont/Helvetica>>endobj
6 0 obj<</Length 46>>stream
BT /F1 24 Tf 175 720 Td (Homebrew test.)Tj ET
endstream
endobj
xref
0 7
0000000000 65535 f
0000000009 00000 n
0000000056 00000 n
0000000111 00000 n
0000000212 00000 n
0000000250 00000 n
0000000317 00000 n
trailer <</Size 7/Root 1 0 R>>
0000000000 65536 f
0000000016 00000 n
0000000059 00000 n
0000000108 00000 n
0000000202 00000 n
0000000238 00000 n
0000000299 00000 n
trailer<</Size 7/Root 1 0 R>>
startxref
406
390
%%EOF