Files
texrra-engine/examples/native-bootstrap/pdf-config.tex

18 lines
744 B
TeX

% Real PDF configuration and late per-stream changes over the same native box.
\input math-fonts
\pdfoutput=1 \pdfmajorversion=1 \pdfminorversion=7
\pdfobjcompresslevel=3 \pdfcompresslevel=9 \pdfdecimaldigits=4
\pdfpagewidth=260bp \pdfpageheight=180bp
\pdfhorigin=12pt \pdfvorigin=16pt
\count0=1 \immediate\openout1=config.aux
\setbox0=\vbox{\hsize=200pt \baselineskip=14pt
\noindent Native compressed pages retain actual text, fonts and mathematics $x_i^j+y$.\par
\kern.37pt \hrule height.4pt
\hbox{Actual fine rules and \raise.3pt\hbox{raised} text.}
\write1{PAGE=\number\count0;ZIP=\number\pdfcompresslevel}}
\shipout\copy0
\pdfcompresslevel=0 \pdfdecimaldigits=0 \pdfobjcompresslevel=0
\count0=2 \shipout\box0
\immediate\closeout1
\end