Thanks for confirming my suspicion, and my apologies for missing out one piece of useful information - the [FOP ERROR] does of course give an output page number, and the message shows up in the log between [FOP INFO] Rendered page #1 and [FOP INFO] Rendered page #2
However ... a quick search showed that the only <image> tag was in a topic that shows up on page 7 (strict page count)/page 4 (pdf page numbering) of the output; the actual cause of the error was that I'd included an <image> tag without a valid target. So the location of the error messages looks like another example of FOP's vague and misleading reporting :-} A warning from F5 could be handy, indeed ... -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: donderdag 5 maart 2015 17:16 To: GRUNDTVIG NIELSEN Niels AWL-T&P Cc: '[email protected]' Subject: Re: [XXE] how to track down FOP error On 03/05/2015 11:42 AM, GRUNDTVIG NIELSEN Niels AWL-T&P wrote: > F5 Check ditamap - no errors or warnings found; encouraging, but when > I generate a .pdf from the ditamap in question I get a FOP error about > a missing graphic. > > [FOP ERROR] Unable to obtain stream from system identifier > 'file:/C:/Users/a548040/AppData/Local/Temp/xxe2737135289091161947_d/???' > > [FOP ERROR] The Source that was returned from URI resolution didn't > contain an InputStream for URI: ??? > > [FOP ERROR] Image not found. URI: ???. (See position 103:788) > > The final message is still "command execution has succeeded", so I'm > wondering if there is any way to see which .dita file is throwing the > problem. > There is no way other than 1) looking at the generated PDF file (because the PDF file has indeed been generated), 2) finding the page where an image is missing and 3) guessing from this page the corresponding DITA source file. This correspondence (3) can be established by using text search in the PDF and on the source side, by using multi-file text search -- http://www.xmlmind.com/xmleditor/_distrib/doc/help/searchFilesPane.html -- in XXE. You'll have to search for some text which is nearby the missing image. To make things worse, unlike RenderX XEP and XMLmind XSL-FO Converter, Apache FOP does not add a missing image placeholder when an image cannot be rendered. There is simply nothing at all at the place where the image should be. Therefore what I suggest is not that easy to do if you have a large document. Of course, "F5 Check ditamap" could also detect such problems. May be we'll implement this feature in next version. Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg - 1130 Brussels - Belgium RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 BIC BBRUBEBB - IBAN BE55 3100 2694 2444 "The information contained in this e-mail and any attachment there to be confidential and may contain information which is protected by intellectual property rights. This information is intended for the exclusive use of the recipient(s) named above. This e-mail does not constitute any binding relationship or offer toward any of the addressees. If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited. If you have received this message in error, please notify the sender and destroy it immediately after. The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability." -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

