[NTG-pdftex] [ pdftex-Feature Requests-87 ] In case of fatal errors, delete the output file

noreply at sarovar.org noreply@sarovar.org
Fri Jul 2 13:35:50 CEST 2004


Feature Requests item #87, was opened at 2004-07-02 11:13
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=496&aid=87&group_id=106

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Schröder (oneiros)
Assigned to: Nobody (None)
Summary: In case of fatal errors, delete the output file

Initial Comment:
When pdfTeX currently encounters a fatal error, it
closes it's output file, which leads to
incomplete/corrupt files.

pdfTeX should produce only valid files, and in case of
fatal errors the output should be deleted.

----------------------------------------------------------------------

Comment By: Taco Hoekwater (taco)
Date: 2004-07-02 14:35

Message:
Logged In: YES 
user_id=1608

When you truncate a file, the result is an empty file. From
a user's viewpoint, that is not the same thing as a corrupt
PDF. 
The distinction is small, but the advantage of an empty file is
that it is not likely to be confused for a correct PDF.

If it is possible, then deleting the PDF file is definately
better, but file deletion doesn't always work. Truncation
almost always does work, and it's only two syscalls extra,
so why not?


----------------------------------------------------------------------

Comment By: Martin Schröder (oneiros)
Date: 2004-07-02 14:21

Message:
Logged In: YES 
user_id=421

Simply truncating a pdf still makes it invalid (because the
file structure is incomplete). Producing a valid truncated
output file in case of fatal errors will be tricky and not
always possible. Deleting the corrupt output is much easier.

----------------------------------------------------------------------

Comment By: Taco Hoekwater (taco)
Date: 2004-07-02 13:50

Message:
Logged In: YES 
user_id=1608

If deleting the file doesnt work, truncation is probably
still better than nothing. (?)

----------------------------------------------------------------------

You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=496&aid=87&group_id=106



More information about the ntg-pdftex mailing list