I don't know if this is an option for you, but why don't you just create another batch script that contains the arguments. That way you can leave the working code working and configure another batch script.
Mehdi On 2 February 2011 20:01, Roberto Cahanap <rcaha...@bioreference.com> wrote: > Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. > > Our software runs the FOP.BAT, I don't really know how this software tells it > where the XSL and XML is located. > > I'm just wondering how I can hard code this inside the batch file. > > > -----Original Message----- > From: Eric Douglas [mailto:edoug...@blockhouse.com] > Sent: Wednesday, February 02, 2011 3:01 PM > To: fop-users@xmlgraphics.apache.org > Subject: RE: font missing warning > > Those are arguments. The bat accepts arguments as a pass value. So > it's just > > Fop.bat "-xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf > \temp\roberto\test2c.pdf -c conf\fop.xconf" > > -----Original Message----- > From: Roberto Cahanap [mailto:rcaha...@bioreference.com] > Sent: Wednesday, February 02, 2011 2:52 PM > To: fop-users@xmlgraphics.apache.org > Subject: RE: font missing warning > > I'm getting somewhere... > > On the Test server, I renamed conf.xconf. When I tried to create the pdf > from the Test server, I get this: > WARNING: Font 'Consolas,normal,400' not found. Substituting with > 'any,normal,400' > > But when I renamed it back to conf.xconf, I am still getting this error. > > I read in the docs that you can specify the config, so I did this: > > C:\Program Files\Apache\fop>fop -xsl \temp\roberto\test2.xsl -xml > \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf > > It worked again. > > I did the same on the PRODUCTION server, adding the -c option at the > end, it also worked. > > Now, I'm trying to figure out where to put this -c option in the FOP.BAT > so that it can work within. > > Thanks again Eric and Jeremias. > > > -----Original Message----- > From: Eric Douglas [mailto:edoug...@blockhouse.com] > Sent: Wednesday, February 02, 2011 2:43 PM > To: fop-users@xmlgraphics.apache.org > Subject: RE: font missing warning > > Yes. > If you're using FOP you're running Java. Somewhere you have a file > fop.jar. > To compile the fonts into a jar you would need a Java editor (Eclipse, > Netbeans). > To use them as such you'd have to write your own Java code. That's the > path I'm going. > Fop doesn't provide an easy way to do that, but embedding them in a jar > puts them in with the programs so using embedded code you can reference > them directly. > The custom jar has to be on the Java classpath so you don't have to > worry about hardcoded font paths or auto detection. > If you got it to work with the config file telling it where your fonts > are I wouldn't worry about it. > Other advantages to embedding the specific fonts you need in a jar > 1) You can load custom fonts and get them to work on any system. > 2) You don't need a config file. > 3) The fonts go with the programs so you wouldn't have to worry about > different machines having different versions of the same file. > We actually had a problem years ago running reports in Courier font on > client PCs which were running Windows 98 and for some reasons some PCs > had a different version of font so the same report using a font file of > the same name produced different output. > If I'm testing a program on my PC or a test server I'd rather not rely > on the test machine having the same file as the production server or > another client machine unless It's a file I specifically put there. > > > -----Original Message----- > From: Roberto Cahanap [mailto:rcaha...@bioreference.com] > Sent: Wednesday, February 02, 2011 2:08 PM > To: fop-users@xmlgraphics.apache.org > Subject: RE: font missing warning > > "compile the fonts into a jar"... > > Yikes! That's foreign language to me, that sounds like java talk. > > Still testing and getting advice... > > :-) > > > > -----Original Message----- > From: Eric Douglas [mailto:edoug...@blockhouse.com] > Sent: Wednesday, February 02, 2011 1:48 PM > To: fop-users@xmlgraphics.apache.org > Subject: RE: font missing warning > > Remote debugging means assumptions or questions or both. > I started by assuming this user like most is running from a command > line. > Finding the fonts correctly is a lot easier from embedded code. > It's even easier if I can compile the fonts into a jar and reference > them internally so they never have a path. > The second easiest way is if you can reference them with a path relative > to the path of the fop.jar. > > Users frequently expect remote debugging but unless you have remote > access to view their machine instructions look like Step 1: Does your > screen show this? If yes do this, else do that. > > > -----Original Message----- > From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] > Sent: Wednesday, February 02, 2011 1:35 PM > To: fop-users@xmlgraphics.apache.org > Subject: Re: font missing warning > > Check the environment ("set" on Windows). Look for the "TEMP" entry. > It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my > user. > > If it's not around, maybe the user under which FOP is running has no > write access to the user directory or there is no user directory at all. > I have no idea. I love remote debugging. ;-) > > On 02.02.2011 18:58:53 Roberto Cahanap wrote: >> Hello Jeremias, >> >> Thank you for shaking my memory. Yes on the TEST server, we have a > folder named .FOP that is in the USERACCOUNT's directory. Inside this is > a file called fop-fonts.cache. >> >> There is no such folder on our Production server. Would you know why > this is so? >> >> If this folder is not there, then where would it be looking for these > "cached" fonts? If like you say "in the temp directory", where would > that be on a Windows system? >> >> Thank you again. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > The information transmitted in this email and any of its attachments is > intended only for the person or entity to which it is addressed and may > contain BioReference Laboratories proprietary information, which is > privileged, confidential, or subject to copyright belonging to > BioReference Laboratories. Any review, retransmission, dissemination or > other use of, or taking of any action in reliance upon, this information > by persons or entities other than the intended recipient is prohibited > and may be unlawful. If you received this in error, please contact the > sender immediately and delete and destroy the communication and all of > the attachments you have received and all copies thereof. > > > --------------------------------------------------------------------- > 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 > > The information transmitted in this email and any of its attachments is > intended only for the person or entity to which it is addressed and may > contain BioReference Laboratories proprietary information, which is > privileged, confidential, or subject to copyright belonging to > BioReference Laboratories. Any review, retransmission, dissemination or > other use of, or taking of any action in reliance upon, this information > by persons or entities other than the intended recipient is prohibited > and may be unlawful. If you received this in error, please contact the > sender immediately and delete and destroy the communication and all of > the attachments you have received and all copies thereof. > > > --------------------------------------------------------------------- > 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 > > The information transmitted in this email and any of its attachments is > intended only for the person or entity to which it is addressed and may > contain BioReference Laboratories proprietary information, which is > privileged, confidential, or subject to copyright belonging to BioReference > Laboratories. Any review, retransmission, dissemination or other use of, or > taking of any action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited and may be unlawful. > If you received this in error, please contact the sender immediately and > delete and destroy the communication and all of the attachments you have > received and all copies thereof. > > > --------------------------------------------------------------------- > 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