Thanks for the explanation. I fear (all sort of internal politics) we will not be able to buy/install RenderX XEP ... also, that questions would be asked if I tried to install Ghostscript when I already have an expensive Adobe licence.
But thanks to the information you have provided, I might try and carry out the experiment at home. If the results are convincing, this could put me in a better position to negotiate ;-} N -----Original Message----- From: Hussein Shafie [mailto:huss...@xmlmind.com] Sent: dinsdag 14 februari 2017 21:22 To: Grundtvig Nielsen Niels Cc: 'xmleditor-support@xmlmind.com' Subject: Re: [XXE] XXE and .eps On 02/14/2017 12:21 PM, Grundtvig Nielsen Niels wrote: > > > We have a large amount of 'legacy' documentation written in Adobe > FrameMaker and referencing high-quality .eps graphics. Since we often > publish to .pdf we would like to continue using these graphics, and > have them included as vector images in the .pdf output so users can > zoom without loss of quality. OK. > > > > As far as I can understand from footnote 14 of > http://www.xmlmind.com/xmleditor/features.html#image_toolkit the image > toolkit merely converts these vector graphics into .png - not quite > what we're after. No, an XXE image toolkit may target any image format, not just PNG. Example below. > The generally reasonable suggestion 'convert to .svg' would also cause > us problems. EPS files are accepted by XSL-FO processors like FOP or XEP only when you generate PostScript. If you generate PDF using RenderX XEP, you must convert your EPS files to SVG or PDF. If you generate PDF using Apache FOP, you must convert your EPS files to SVG. PDF graphics are not supported by Apache FOP. > > > > Can you confirm that we would not, out of the box, be able to continue > using our .eps files? or, of course, tell me I've missed something > obvious :-} > Out of the box, no. With very little efforts, YES, provided that 1) you have installed a recent version of free, open source, GhostScript on your computer; 2) you have purchased RenderX XEP. --> If you have a "customize.xxe" file (http://www.xmlmind.com/xmleditor/_distrib/doc/configure/bindings_generic.html), simply add this declarative image toolkit in it: --- <imageToolkit name="Ghostscript"> <description>Converts EPS graphics to PNG and PDF. Converts PDF graphics to PNG. Important: requires Ghostscript 8+.</description> <converter> <input extensions="eps epsf ps" magicStrings="%!PS"/> <output extensions="pdf"/> <shell command='gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dEPSCrop %A "-sOutputFile=%O" "%I"' platform="Unix"/> <shell command='gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dEPSCrop %A "-sOutputFile=%O" "%I"' platform="Windows"/> </converter> <converter> <input extensions="eps epsf ps pdf" magicStrings="%!PS %PDF"/> <output extensions="png"/> <shell command='gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m -r120 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop %A "-sOutputFile=%O" "%I"' platform="Unix"/> <shell command='gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=png16m -r120 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop %A "-sOutputFile=%O" "%I"' platform="Windows"/> </converter> </imageToolkit> --- Reference: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/imageToolkit.html --> With this declarative image toolkit, I see attached screenshot when I edit the document in XXE because for screen use, the EPS graphics is automatically converted to PNG. When I convert my DITA document to HTML, WebHelp, etc, the EPS graphics is automatically converted to PNG. When I convert my DITA document to PDF (using RenderX XEP), the EPS graphics is automatically converted to PDF. See attached PDF. Try to zoom this PDF file in Acrobat Reader and you'll see that it contains vector graphics, not PNG or JPEG. ********************************************************************************************* 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 xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support