[xep-support] Re: [SPAM] AW: Re: Abort when Image File not found?
Kevin Brown
kevin at renderx.com
Thu Sep 27 10:55:50 PDT 2012
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 Brown
RenderX
-----Original Message-----
From: xep-support-bounces at renderx.com [mailto:xep-support-bounces at renderx.com] On Behalf Of Kirch Fritz
Sent: Thursday, September 27, 2012 10:24 AM
To: RenderX Community Support List
Subject: [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 at renderx.com [mailto:xep-support-bounces at renderx.com] Im Auftrag von Thomas Schraitle
Gesendet: Donnerstag, 27. September 2012 14:00
An: xep-support at renderx.com
Betreff: [xep-support] Re: Abort when Image File not found?
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
_______________________________________________
(*) 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 at 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
More information about the Xep-support
mailing list