To everyone!

I emailed the software group that's responsible for calling FOP.BAT (shoutout 
for Intersystems Cache/Zen software!), and they responded that there's a 
variable that I can set that take the configuration file location.

I set this variable, and it now works!

Woohoo!!!

I can now go home and shovel from this North East (U.S.) winter storm.

Thank you again folks!

-Roberto


-----Original Message-----
From: Eric Douglas [mailto:[email protected]] 
Sent: Wednesday, February 02, 2011 3:09 PM
To: [email protected]
Subject: RE: font missing warning

If you can modify the batch file and you can't modify the line which
calls the batch file just put the arguments into the batch file if you
want to hardcode them.
Just put your argument string in where it's accepting arguments.  That
would be the line ending with %1.
Either that or put the Fop.bat statement as I described below (except
start with fop2.bat) into a new file named fop.bat and rename fop.bat.
 

-----Original Message-----
From: Roberto Cahanap [mailto:[email protected]] 
Sent: Wednesday, February 02, 2011 3:02 PM
To: [email protected]
Subject: RE: font missing warning

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:[email protected]]
Sent: Wednesday, February 02, 2011 3:01 PM
To: [email protected]
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:[email protected]]
Sent: Wednesday, February 02, 2011 2:52 PM
To: [email protected]
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:[email protected]]
Sent: Wednesday, February 02, 2011 2:43 PM
To: [email protected]
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:[email protected]]
Sent: Wednesday, February 02, 2011 2:08 PM
To: [email protected]
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:[email protected]]
Sent: Wednesday, February 02, 2011 1:48 PM
To: [email protected]
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:[email protected]]
Sent: Wednesday, February 02, 2011 1:35 PM
To: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]

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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to