[NTG-pdftex] \pdfhorigin / \pdfvorigin broken?

Hartmut Henkel hartmut_henkel@gmx.de
Wed Jul 7 18:09:22 CEST 2004


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1463811840-1766883571-1089220162=:1643
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Wed, 7 Jul 2004, Martin Schr=F6der wrote:

> > On 2004-07-06 23:16:34 +0200, Hartmut Henkel wrote:
> > >
> > > \pdfdecimaldigits=3D3 (not to spoil resolution in case it's forgotten=
)
> > > \pdfoptionpdfminorversion=3D4 (who would like to get PDF-1.0?)
> > > ...
> > > \pdfimageresolution=3D72? 100?
> ...
> This is already handled by @<Initialize variables for \.{PDF} output@>

But calling pdftex -ini xx.tex on this file

\showthe\pdfimageresolution
\showthe\pdfoptionpdfminorversion
\end

gives:

(./xx.tex
> 0.
l.1 \showthe\pdfimageresolution

?
> 0.
l.2 \showthe\pdfoptionpdfminorversion

So the user has to know that "0" means "72 dpi". With the patch below,
already the call to barebones pdftex -ini xx.tex gives:

(./xx.tex
> 72.
l.1 \showthe\pdfimageresolution

?
> 4.
l.2 \showthe\pdfoptionpdfminorversion

And if i set this to 3 in pdftexconfig.tex, after a texconfig init run i
get by calling pdftex xx.tex (not in ini mode):

> 3.
l.2 \showthe\pdfoptionpdfminorversion

Unclear how large parts of

@p procedure check_and_set_pdfoptionpdfminorversion;

are then obsolete by this patch. And yes, it should go into pdftex.ch (i
only use tex.ch2 for testing).

Regards, Hartmut


% tex.ch2
%***********************************************************************

@x
cfg_pdf_option_pdf_inclusion_errorlevel_code =3D pdf_option_pdf_inclusion_e=
rrorlevel_code;
@y ---------------------------------------------------------------------
cfg_pdf_option_pdf_inclusion_errorlevel_code =3D pdf_option_pdf_inclusion_e=
rrorlevel_code;

@ Initialize pdftex's parameters to some useful default value.
Helpful in case one forgets to set them during initex run.

@<Initialize table entries...@>=3D
pdf_h_origin :=3D (one_hundred_inch + 50) div 100;
pdf_v_origin :=3D (one_hundred_inch + 50) div 100;
pdf_compress_level :=3D 9;
pdf_decimal_digits :=3D 4;
pdf_image_resolution :=3D 72;
pdf_option_pdf_minor_version :=3D 4;
@z

%***********************************************************************

@x
if (pdf_h_origin =3D 0) and (pdf_v_origin =3D 0) then begin
    pdf_h_origin :=3D (one_hundred_inch + 50) div 100;
    pdf_v_origin :=3D (one_hundred_inch + 50) div 100;
end;
@y ---------------------------------------------------------------------
@z

%***********************************************************************


---1463811840-1766883571-1089220162=:1643--



More information about the ntg-pdftex mailing list