X-Git-Url: http://git.rohieb.name/www-rohieb-name.git/blobdiff_plain/dd6de2c6f67423a12913724647f30c37971885e4..6b7a87d79ff7abfe44615e260e008442afc35040:/blag/post/optimizing-xsane-s-scanned-pdfs.mdwn diff --git a/blag/post/optimizing-xsane-s-scanned-pdfs.mdwn b/blag/post/optimizing-xsane-s-scanned-pdfs.mdwn index 529e873..ccf9b42 100644 --- a/blag/post/optimizing-xsane-s-scanned-pdfs.mdwn +++ b/blag/post/optimizing-xsane-s-scanned-pdfs.mdwn @@ -23,7 +23,7 @@ First (non-optimal) solution -------------- At first, I tried to optimize the PDF using [GhostScript][gs]. I -[[use-ghostscript-to-convert-pdf-files|already wrote]] about how GhostScript’s +[[already wrote|use-ghostscript-to-convert-pdf-files]] about how GhostScript’s `-dPDFSETTINGS` option can be used to minimize PDFs by redering the pictures to a smaller resolution. In fact, there are [multiple rendering modes][gs-ps-pdf] (`screen` for 96 dpi, `ebook` for 150 dpi, `printer` for 300 dpi, @@ -31,6 +31,7 @@ and `prepress` for color-preserving 300 dpi), but they are pre-defined, and for my 200 dpi images, `ebook` was not enough (I would lose resolution), while `printer` was too high and would only enlarge the PDF. +[gs]: http://ghostscript.com "Ghostscript homepage" [gs-ps-pdf]: http://milan.kupcevic.net/ghostscript-ps-pdf/#refs "Ghostscript PDF Reference & Tips" @@ -66,6 +67,7 @@ Strings literal \) and some\n newlines.\n)`. * interpreted as hexadecimal data when enclosed in angled brackets: `<53 61 6D 70 6C 65>` equals `(Sample)`. + Names : starting with a forward slash, like `/Type`. You can think of them like identifiers in programming languages. @@ -145,7 +147,7 @@ EOF]] This is just the magic string declaring the document as PDF-1.4, and the root object with object number 1, which references objects number 2 for Outlines and -number 3 for pages. We're not interested in outlines, let's look at the pages. +number 3 for Pages. We're not interested in outlines, let's look at the pages. [[!format pdf <