Re: Why do you use .cmd rather than .bat?
Hi Jonathan, With recent Windows (Vista), IIUC there is no difference between .cmd and .bat; the engine remains the same in both cases: cmd.exe In the past, Win 9x family (and before) used only .bat, witch was threated with command.com The engine cmd.exe was introduced with NT family. On XP machines, it seems that both cmd.exe and command.com coexist, and invoking the former or the latter depends on ext. So there are some differences of available commands and behaviors between .cmd and .bat on such machines HTH, Le 05/12/2011 20:49, Jonathan Levinson a écrit : > Outlook mangled my script on send by removing what it thought were "extra > line breaks." > > I attach a zip of the script since our Exchange server won't let us send > ".cmd" files directly. > > Inside the zip is fop.cmd. You'll note is more than a "call fop.bat" yet > less than the entirety of "fop.bat" - it has to do something to pass the > arguments to fop.bat and also to determine what directory fop.bat exists in. > I assume fop.bat and fop.cmd are in the same directory. > > Best Regards, > Jonathan Levinson > Senior Software Developer > Object Group > InterSystems > +1 617-621-0600 > jonathan.levin...@intersystems.com > > >> -Original Message- >> From: Jonathan Levinson >> Sent: Monday, December 05, 2011 2:39 PM >> To: fop-users@xmlgraphics.apache.org; fop-...@xmlgraphics.apache.org >> Subject: RE: Why do you use .cmd rather than .bat? >> >> Hi Simon, >> >> I tested the following fop.cmd file on Windows 7 and it works. It may lack >> support for some earlier Windows versions, such as Windows 98. I copy >> fop-dev >> so my little command file can be subjected to contributor review: >> >> Here are the contents of fop.cmd. The Apache script had tests for >> %OS%=Windows_NT, which is true on Windows 7. I don't have a non-NT >> Windows system on which to test the script, so I removed those tests, such >> as " >> if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0". I won't put in >> code I can't test. >> >> - beginning of script fop.cmd - @ECHO OFF set >> LOCAL_FOP_HOME=%~dp0 set FOP_CMD_LINE_ARGS=%1 if ""%1""== goto >> doneStart shift :setupArgs if ""%1""== goto doneStart set >> FOP_CMD_LINE_ARGS=%FOP_CMD_LINE_ARGS% %1 shift goto setupArgs rem >> This label provides a place for the argument list loop to break out >> :doneStart >> >> call %LOCAL_FOP_HOME%\fop.bat %FOP_CMD_LINE_ARGS% >> >> - end of script >> >> Best Regards, >> Jonathan Levinson >> Senior Software Developer >> Object Group >> InterSystems >> +1 617-621-0600 >> jonathan.levin...@intersystems.com >> >> >>> -Original Message- >>> From: Simon Pepping [mailto:spepp...@leverkruid.eu] >>> Sent: Monday, December 05, 2011 1:53 PM >>> To: fop-users@xmlgraphics.apache.org >>> Subject: Re: Why do you use .cmd rather than .bat? >>> >>> To avoid code duplication, is it possible to have fop.cmd say >>> something like 'call fop.bat'? Can you test that? I have no computer with >> Windows available. >>> >>> Or vice versa. Which is the canonical name, bat or cmd? >>> >>> Simon >>> >>> On Sun, Dec 04, 2011 at 04:17:37PM -0500, Jonathan Levinson wrote: A copy named fop.bat would be very useful to us. We currently have most sites deployed on fop 1.0, which names the command >>> script on Windows as fop.bat. For Skynav fop, for our Middle Eastern >>> sites, we are contemplating (after suitable QA) replacing fop 1.0 with >>> Skynav >> fop. >>> However, some of these sites will be on versions of our product which >>> do assume the name of the script on Windows is fop.bat. While, we can >>> tell users to rename fop.cmd to fop.bat, it will simplify >>> configuration if fop ships with a fop.bat. -- Pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Interrupt/cancel/abort a render
Craig, I agree with you, that is exactly how we process stuff here, drop a file in a folder and then the "fopengine" picks it up - processes and then drops the output into another folder for the original process to pick up (or time out) Kindest regards Theresa Forster Senior Software Developer -Original Message- From: Craig Ringer [mailto:cr...@postnewspapers.com.au] Sent: 06 December 2011 03:10 To: fop-users@xmlgraphics.apache.org Cc: Alexios Giotis Subject: Re: Interrupt/cancel/abort a render IMO the best way to make it cancelable is to run fop out-of-process in a separate VM instance that you can kill using the standard OS methods. That's what I think I'll end up doing when I need to support cancellation. It's a bit of a pain and has some performance cost because you can't re-use the fop factory for multiple runs or benefit from some of fop's other caching. Perhaps more importantly it means you can't run under a standard SecurityManager since you need to be able to spawn new JVM instances. OTOH, it eliminates potential memory leaks / unwanted threadlocals / caches. -- Craig Ringer - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Fails to build publican's user guide
Dear fop users, I come to you to forward a bug from the debian bug tracker [1]. fop crashes when building publican's user guide. You can find a sample attachment [2] to reproduce the problem. Best regards, [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649476 [2] http://bugs.debian.org/cgi- bin/bugreport.cgi?msg=10;filename=Users_Guide.fo.gz;att=1;bug=649476 -- Vincent Hobeïka signature.asc Description: This is a digitally signed message part.
Re: Fails to build publican's user guide
Sorry, I realise my report was quite imprecise. fop encounters a NullPointerException in InlineStackingLayoutManager.java:277 I have found several reports regarding this kind of error in fop bug tracker: https://issues.apache.org/bugzilla/show_bug.cgi?id=46386 https://issues.apache.org/bugzilla/show_bug.cgi?id=48765 So far I'm not sure if they are related. Best regards, -- Vincent Hobeïka signature.asc Description: This is a digitally signed message part.
Re: Fails to build publican's user guide
Hi Vincent, when you ask on this list, you should provide a shrinked XSL-FO that demonstrates the problem (the one on Debian buglist is about 2MB, witch is quite big). That said, I've found that using fo:inline within a fo:block with hyphenate="true" linefeed-treatment="preserve" throws an NPE. Fortunately, I can only reproduce it on FOP 0.95, while FOP 1.0 passes. So, you have 2 options: - either use FOP 1.0 - or replace such fo:inline with fo:wrapper, since from what I've seen they are used as properties carriers, not as related area properties (i.e. padding, border, background, etc.). Le 06/12/2011 11:46, Vincent Hobeïka a écrit : > Sorry, I realise my report was quite imprecise. > > fop encounters a NullPointerException in > InlineStackingLayoutManager.java:277 > > I have found several reports regarding this kind of error in fop bug > tracker: > > https://issues.apache.org/bugzilla/show_bug.cgi?id=46386 > > https://issues.apache.org/bugzilla/show_bug.cgi?id=48765 > > So far I'm not sure if they are related. > > Best regards, > > -- > > Vincent Hobeïka > -- Pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG to AFP conversion
Just an update, I am abandoning this idea. It seems that the text inside the SVG is converted to GOCA (Vector Graphics), the quality is bad (at least for 3 viewers I tested), image rotation or transformation is not supported, it is an usual path and I have no feedback ... Alexis On Dec 5, 2011, at 2:31 PM, Alexios Giotis wrote: > Hi, > > I was thinking of using Apache FOP 1.0 or trunk to convert SVG files to AFP. > Each page will contain a single SVG, declared as > > content-width="100%" /> > > > This works good when converting to PDF but I have some issues with AFP fonts. > Before going further, I would like some advise. Do you see any problems > converting a series of SVG files to AFP ? > > For example, the SVG contains text. Batik uses the java AWT font system while > FOP has it's own. Obviously, in the output AFP, I need FOP to use and embed > AFP outline fonts. > > > Thanks, > > Alexios Giotis > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG to AFP conversion
Hi Alex, My apologies for the slow response, however, because SVG goes through Batik there are issues with fonts, as you already know. We are currently looking into the issue of AFP fonts within embedded SVG. I'll post back when we have some more information. Mehdi On 6 December 2011 15:32, Alexios Giotis wrote: > Just an update, I am abandoning this idea. It seems that the text inside the > SVG is converted to GOCA (Vector Graphics), the quality is bad (at least for > 3 viewers I tested), image rotation or transformation is not supported, it is > an usual path and I have no feedback ... > > Alexis > > > On Dec 5, 2011, at 2:31 PM, Alexios Giotis wrote: > >> Hi, >> >> I was thinking of using Apache FOP 1.0 or trunk to convert SVG files to AFP. >> Each page will contain a single SVG, declared as >> >> > content-width="100%" /> >> >> >> This works good when converting to PDF but I have some issues with AFP >> fonts. Before going further, I would like some advise. Do you see any >> problems converting a series of SVG files to AFP ? >> >> For example, the SVG contains text. Batik uses the java AWT font system >> while FOP has it's own. Obviously, in the output AFP, I need FOP to use and >> embed AFP outline fonts. >> >> >> Thanks, >> >> Alexios Giotis >> > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: MICR font problem in 1.0
An update. The problem with the MICR font was resolved by creating the font-metrics XML. Somehow this same font worked with FOP 0.95 but stopped working the usual way with FOP 1.0. Maybe the FOP developers can throw some light there, something to do with changes within the font handling mechanism? Thanks to Eric for responding to my email. Actually the hyphenation warning was not responsible for causing the MICR behavior, it was a different issue that did not interfere with the font issue. Thanks, Anil Pinto. *Lobo Technologies, Inc.* www.lobotec.com On 12/6/2011 4:43 AM, Amick, Eric wrote: If you do something like then X will appear whenever a hyphen is required to break a word. The property is inherited, so you could put it on the element if you need to specify a character for the entire document. I have no idea if this restricted license on your font matters. Eric Amick Systems Engineer II Legislative Computer Systems
Re: Fail to insert png image into pdf
Thanks a lot, it works much better with jai. Benjamin Le 05/12/2011 13:11, Chris Bowditch a écrit : On 05/12/2011 10:30, Luis Bernardo wrote: Hi Luis, Benjamin, Probably a jar that is missing or not being found in the classpath. If you search the archives you will find that this error has been discussed in the past. There is no single solution but reading past discussions may help you fix the issue. You are on the right lines. Normally this means jai_imageio.jar is not available in the Classpath. FOP uses JAI ImageIO Tools for processing a lot of image formats. On Sun, Dec 4, 2011 at 11:56 AM, Benjamin de Dardel wrote: Hi all, As describe in this ticket, I try to transform docbook -> fo -> pdf : https://sourceforge.net/apps/mantisbt/ant4docbook/view.php?id=5 fo file seems to be good, because I succeed in to execute the command line : $ fop myfile.fo myfile.pdf but when I use, fo ant task, I fail to do this : impossible to include image. I always get an error : [fop] déc. 04, 2011 12:26:52 PM org.apache.fop.events.LoggingEventListener processEvent [fop] Grave: Image not available. URI: img/forum-inscription1.png. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for img/forum-inscription1.png (See position 6:264) Thanks, Chris - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org