Is there a LaTeX command (and package) by which I can put out of focus the resulting pdf output so that this won't be so terribly sharp when printed with a 1200x1200dpi printer?

I.e. how do I enclose entire content between \begin{document} ....TEXT \end{document} into a command directing to put out of focus the resulting pdf?

Imagine the wanted result something like I scan and print the relevant page a few times in a series to achieve this result, but rather by a systematic command with adjustable numeric parameters.

  • 1
    Something like this: tex.stackexchange.com/a/94541/134574? – Phelype Oleinik Jun 22 '19 at 17:40
  • @PhelypeOleinik Right, but without the dots in the blank part of the document and fuzzying only the contours of the letters. Anyway, the answer there is too much complicated for me to grasp it. I would prefer to have a single package and a single command. I'M RUNNING Win 8.1 not Linux. – user2925716 Jun 22 '19 at 17:43
  • No, I meant the first one (Daniel's answer). With imagemagick, this command: convert letter.pdf \( +clone -blur 0x1 \) +swap -compose divide -composite -linear-stretch 5%x0% as-scanned.pdf. – Phelype Oleinik Jun 22 '19 at 17:45
  • @PhelypeOleinik I'm running WinEdt 9.0 and Win 8.1 not LINUX! – user2925716 Jun 22 '19 at 17:47
  • I'm pretty sure there's ImageMagick for Windows as well... – Phelype Oleinik Jun 22 '19 at 17:48

enter image description here



makes it use (very) low resolution bitmap fonts, disable using scalable fonts, and add a light grey background.

% This is a sample LaTeX input file.  (Version of 12 August 2004.)
% A '%' character causes TeX to ignore all remaining text on the line,
% and is used for comments like this one.

\documentclass{article}      % Specifies the document class


                             % The preamble begins here.
\title{An Example Document}  % Declares the document's title.
\author{Leslie Lamport}      % Declares the author's name.
\date{January 21, 1994}      % Deleting this command produces today's date.

\newcommand{\ip}[2]{(#1, #2)}
                             % Defines \ip{arg1}{arg2} to mean
                             % (arg1, arg2).

%\newcommand{\ip}[2]{\langle #1 | #2\rangle}
                             % This is an alternative definition of
                             % \ip that is commented out.

\begin{document}             % End of preamble and beginning of text.

\maketitle                   % Produces the title.

This is an example input file.  Comparing it with
the output it generates can show you how to
produce a simple document of your own.

\section{Ordinary Text}      % Produces section heading.  Lower-level
                             % sections are begun with similar 
                             % \subsection and \subsubsection commands.

The ends  of words and sentences are marked 
  by   spaces. It  doesn't matter how many 
spaces    you type; one is as good as 100.  The
end of   a line counts as a space.

One   or more   blank lines denote the  end 
of  a paragraph.  

Since any number of consecutive spaces are treated
like a single one, the formatting of the input
file makes no difference to
      \LaTeX,                % The \LaTeX command generates the LaTeX logo.
but it makes a difference to you.  When you use
\LaTeX, making your input file as easy to read 
as possible will be a great help as you write 
your document and when you change it.  This sample 
file shows how you can add comments to your own input 

Because printing is different from typewriting,
there are a number of things that you have to do
differently when preparing an input file than if
you were just typing the document directly.
Quotation marks like
have to be handled specially, as do quotes within
       ``\,`this'            % \, separates the double and single quote.
        is what I just 
        wrote, not  `that'\,''.  

Dashes come in three sizes: an 
dash, a medium dash for number ranges like 
and a punctuation 

A sentence-ending space should be larger than the
space between words within a sentence.  You
sometimes have to type special commands in
conjunction with punctuation characters to get
this right, as in the following sentence.
       Gnats, gnus, etc.\ all  % `\ ' makes an inter-word space.
       begin with G\@.         % \@ marks end-of-sentence punctuation.
You should check the spaces after periods when
reading your output to make sure you haven't
forgotten any special cases.  Generating an
       \ldots\               % `\ ' is needed after `\ldots' because TeX 
                             % ignores spaces after command names like \ldots 
                             % made from \ + letters.
                             % Note how a `%' character causes TeX to ignore 
                             % the end of the input line, so these blank lines 
                             % do not start a new paragraph.
with the right spacing around the periods requires
a special command.

\LaTeX\ interprets some common characters as
commands, so you must type special commands to
generate them.  These characters include the
       \$ \& \% \# \{ and \}.

In printing, text is usually emphasized with an
type style.  

   A long segment of text can also be emphasized 
   in this way.  Text within such a segment can be 
   given \emph{additional} emphasis.

It is sometimes necessary to prevent \LaTeX\ from
breaking a line where it might otherwise do so.
This may be at a space, as between the ``Mr.''\ and
``Jones'' in
       ``Mr.~Jones'',        % ~ produces an unbreakable interword space.
or within a word---especially when the word is a
symbol like
that makes little sense when hyphenated across

Footnotes\footnote{This is an example of a footnote.}
pose no problem.

\LaTeX\ is good at typesetting mathematical formulas
       \( x-3y + z = 7 \) 
       \( a_{1} > x^{2n} + y^{2n} > x' \)
       \( \ip{A}{B} = \sum_{i} a_{i} b_{i} \).
The spaces you type in a formula are 
ignored.  Remember that a letter like
       $x$                   % $ ... $  and  \( ... \)  are equivalent
is a formula when it denotes a mathematical
symbol, and it should be typed as one.

\section{Displayed Text}

Text is displayed by indenting it from the left
margin.  Quotations are commonly displayed.  There
are short quotations
   This is a short quotation.  It consists of a 
   single paragraph of text.  See how it is formatted.
and longer ones.
   This is a longer quotation.  It consists of two
   paragraphs of text, neither of which are
   particularly interesting.

   This is the second paragraph of the quotation.  It
   is just as dull as the first paragraph.
Another frequently-displayed structure is a list.
The following is an example of an \emph{itemized}
   \item This is the first item of an itemized list.
         Each item in the list is marked with a ``tick''.
         You don't have to worry about what kind of tick
         mark is used.

   \item This is the second item of the list.  It
         contains another list nested inside it.  The inner
         list is an \emph{enumerated} list.
            \item This is the first item of an enumerated 
                  list that is nested within the itemized list.

            \item This is the second item of the inner list.  
                  \LaTeX\ allows you to nest lists deeper than 
                  you really should.
         This is the rest of the second item of the outer
         list.  It is no more interesting than any other
         part of the item.
   \item This is the third item of the list.
You can even display poetry.
   There is an environment 
    for verse \\             % The \\ command separates lines
   Whose features some poets % within a stanza.
   will curse.   

                             % One or more blank lines separate stanzas.

   For instead of making\\
   Them do \emph{all} line breaking, \\
   It allows them to put too many words on a line when they'd rather be 
   forced to be terse.

Mathematical formulas may also be displayed.  A
displayed formula 
one-line long; multiline
formulas require special formatting instructions.
   \[  \ip{\Gamma}{\psi'} = x'' + y^{2} + z_{i}^{n}\]
Don't start a paragraph with a displayed equation,
nor make one a paragraph by itself.

\end{document}               % End of document.
  • Great! What range (here 100) has this command? \pdfpkresolution100 ? And what does it say ? – user2925716 Jun 22 '19 at 19:53
  • it's the dots-per inch of the generated bitmap 600 is default , when I started using tex 300 was a high end laserwriter, 100 was a daisy-wheel printer if you try to go too low you may get metafont errors in the arithmetic, I doubt the fonts have been tested much below 100 @user2925716 – David Carlisle Jun 22 '19 at 19:55
  • Your solution is great but adds noise to the letters contours randomly. Is there a way how to create a regular noise ? – user2925716 Jun 23 '19 at 12:14
  • @user2925716 it's not really random and not intentionally adding noise, it is generating a low resolution bitmap for each character (and each instance of the character uses the same one) there is no intentional fuzzing here, metafont is trying to map the specified curves exactly but being told to fit a 100 dpi grid. – David Carlisle Jun 23 '19 at 12:19
  • OK then. And is there solution for my question about adding a regular noise ? Your suggestion with low resolution is quite good but not the best one for me at least. – user2925716 Jun 23 '19 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.