Well, creating XEP format is normally 90% of the job so one could almost as easily just look at the log and see a warning of an image not found.
Alexey is correct in the proper way. One could get the developer's kit and write their own processing method.
If you examine the API, you will see all of these messages -- INFO, WARNING and ERROR all are events that are logged. One would parse the WARNING message to determine if the message is from a missing image (they may wish to do the same for a missing font) and raise an event to abort the formatting if that is the case. They could write their own command line (if that is how they are calling it) and add something like -abortonwarning as a switch to that command line to trigger this behavior.
We can take this as a requirement for future release of the software, but we would also be happy to share the code for this in Java to anyone who wishes to implement on their own and provide back to the group.
Kevin BrownRenderX
-----Original Message-----From: xep-support-bounces@renderx.com [mailto:xep-support-bounces@renderx.com] On Behalf Of Kirch FritzSent: Thursday, September 27, 2012 10:24 AMTo: RenderX Community Support ListSubject: [xep-support] [SPAM] AW: Re: Abort when Image File not found?
Hi,
the easiest thing would be to create XEPOUT intermediate format in a first step.If XEPOUT doesn’t contain the 404 image everything is ok and you can continue producing a correct PDF.Otherwise don’t create the PDF.
Fritz Kirch
-----Ursprüngliche Nachricht-----Von: xep-support-bounces@renderx.com [mailto:xep-support-bounces@renderx.com] Im Auftrag von Thomas SchraitleGesendet: Donnerstag, 27. September 2012 14:00An: xep-support@renderx.comBetreff: [xep-support] Re: Abort when Image File not found?
Hi Alexey,
On Thu, 27 Sep 2012 14:16:17 +0400Alexey Gagarinov <agagarinov@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
_______________________________________________(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support(*) By using the Service, you expressly agree to these Terms of Service http://w ww.renderx.com/terms-of-service.html**********************************************************************Diese E-Mail wurde auf Viren ueberprueft.mailsweeper@it2media.de**********************************************************************
***SPAM***
!DSPAM:87,50648bbb63731490315428!
_______________________________________________(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support(*) By using the Service, you expressly agree to these Terms of Service http://w ww.renderx.com/terms-of-service.html
_______________________________________________(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Thu Sep 27 10:45:15 2012
This archive was generated by hypermail 2.1.8 : Thu Sep 27 2012 - 10:45:16 PDT