[xep-support] Re: Abort when Image File not found?

Thomas Schraitle tom_schr at web.de
Thu Sep 27 05:00:09 PDT 2012


Hi Alexey,

On Thu, 27 Sep 2012 14:16:17 +0400
Alexey Gagarinov <agagarinov at renderx.com> wrote:
 
> > when XEP tries to find an image file and it can't, it proceeds in
> > the rendering process and shows the 404 image in the output format.
> > I would like to stop XEP in case an image cannot be found.
> >
> > How can I do this?
> 
> There is no "official" way to stop XEP when an image is not found.
> Where and why you need this behavior?

Well, consider it as an early "quality control alarm". :) If XEP has
built a PDF, is the PDF correct? Maybe, maybe not. If you haven't
looked at the (error?) messages, you can't tell.

The only way to tell is to browse through your 600 or so pages to
find the missing images. Not very nice.

The question is, should XEP abort the rendering process if it can't
find an image. Well, probably the FO spec gives you some freedom in
this regard. I would propose to make it either an option in the
configuration or in the command line. 

With such a configuration method, people can switch the behaviour: when
they are writing their documents, missing images are not very serious
as they will be added later. However, if they create the final
document, any missing pieces should are fatal and so should be any
error messages (which means, abort).

That would make such an error obvious and you won't deliver broken PDFs
anymore.


-- 
Gruß/Regards,
    Thomas Schraitle

!DSPAM:87,50643fe863731083312073!




More information about the Xep-support mailing list