[NTG-pdftex] [ pdftex-Bugs-359 ] pdftex generates errors when it does not have to - eg \pdfinfo

Martin Schröder martin at oneiros.de
Fri Jul 15 19:39:54 CEST 2005


On 2005-06-16 15:04:39 +0200, Martin Schröder wrote:
> It isn't now. Can all \pdf primitives be ignored in dvi-mode?

I have changed check_pdfoutput to
----------------------
procedure check_pdfoutput(s: str_number; is_error : boolean);
begin
    if pdf_output <= 0 then
        if is_error then
            pdf_error(s, "used while \pdfoutput is not set")
        else 
            pdf_warning(s, "used while \pdfoutput is not set", true);
end;
----------------------

And changed the calls for \pdfinfo, \pdfcatalog and \pdftrailer
to is_error=false.

This gives
! pdfTeX warning (\pdfinfo): used while \pdfoutput is not set
and
! pdfTeX error (\pdfincludechars): used while \pdfoutput is not set.
l.120 \pdfincludechars
                      \font{ABCDEF}

Of course this can lead to confusing situations:
----------------------
\pdfoutput=0
\pdfinfo{/Foo (Bar)
\pdfoutput=1
foo
\bye
----------------------
will have /Foo (Bar) in the info dict. But we don't say that we
are _ignoring_ the data; and doing so would be more difficult.

Comments?

Best
    Martin
-- 
                    http://www.tm.oneiros.de


More information about the ntg-pdftex mailing list