Here's what I googled out of the net:
http://javaalmanac.com/egs/java.net/JarUrl.html
So you can do:
URL mycfg = new URL(jar:file:/C:/Temp/my.jar!/myconfig.xml);
InputStream in = mycfg.openStream();
try {
new Options(in);
} finally {
in.close()
}
In your config file:
font
Hello Jerimias,
Thanks for you help.
But if I want to do as following, I think it can't use that solution.
In pdf-util.jar contains the following file structures:
META-INF/
my/
/test/
/GenPDF.class
/myconfig.xml
/rs_song.xml
/rs_song.ttf
And I will
Hello,
Failed to embedded font :
public static void xmlToPDF(String xmlFile, String xslFile, OutputStream
out) throws Exception {
File xml = new File(xmlFile);
File xslt = new File(xslFile);
InputStream is =
PDFGenerator.class.getResourceAsStream(myconfig.xml);
Hi, Jeremias ,
In fact, I want to put all the config file and TTF files in a JAR file that
will be put into the /WEB-INF/lib if a WAR file or EAR file?
How can FOP get the configurations files and TTF files ??
Best regards,
Eric
- Original Message -
From: Jeremias Maerki [EMAIL
Has anyone had issues with using the code from PrintStarter.PrintRenderer
when running on Solaris (or any *nix platform)? I've taken the code from
that class and have modified it to use the JDK 1.4 Print Services API and
the resulting application works well on Windows, providing the ability to
What you want to do is a bit tricky. Try the following:
Instead of ...getResourceAsStream(myconfig.xml) try:
URL cfgUrl = ...getResource(myconfig.xml);
String baseURL = cfgURL.toExternalForm();
...then snip the myconfig.xml part from the URL and set it as
fontBaseDir. Maybe that could solve the
Our user's
printer/acrobatreader crashing problems have been corrected by switching to
encoding the fonts in the WinAnsi format.
The downside
of this is the increased filesize since the entire font is being embedded.
This is compounded with the 200K+ to embed the Helvetica font since for
What error messages and who issues them?
TrueType embedding is currently working fine for many users. It has,
however, a little deficiency: It lacks the ability to generate an
appropriate ToUnicode CMap. Normally, that means that embedded TrueType
fonts will get correctly displayed in
The invalid cmap error is issued by the postscript printer (it prints out
one of the 'offending command' pages. I'm attempting to find my notes with
the exact text.) Also what happens sometimes (Like when printing from Adobe
4.0 here in the office) the printout is simply corrupt. Some
background-image option works when rendering a pdf file but does not show up
when outputting to screen using the -awt option.
no big deal; except I spent alot of time trying to figure out what I was
doing wrong.
-
To
In your Struts Action.ActionForward class, if you call
response.reset(); at the beginning it seemed to work
for me (erases the first of the two calls IE made).
However, I suspect that would then render Mozilla and
Netscape browsers inoperable because they don't make
multiple calls. Perhaps best
If it helps, here is a link to a product that contains the Identity-H
encoded fonts. Also, it doesn't have Helvetica embedded, and therefore on
some Reader installs the user gets an error message that Helvetica can't be
found.
http://www.equibase.com/samples/ffsample2.pdf
Michael Teator
[EMAIL
I'm pretty much at a loss here. I've just opened the PDF in GhostView
(using GhostScript versions 7.06, 7.33 and 8.00). All versions show the
text from your SVG graphics displaced. Is that also what you get? If yes,
set strokeSVGText to true. That may help. Looks like FOP creates PDF
code that
I've only seen that behavior from Acrobat 4.0 (not reader) None of our
users have complained about that one though, so I'm not concerned with it at
the moment. I thought it was just some immaturity in the SVG code and since
it's not affecting the current user base we're not calling it a bug.
Hmm...
Calling Response.setContentType(String) shouldn't cause the servlet
container to re-execute a call to ActionServlet.doGet(...); have you
determined why this is occuring?
Fortunately, you have options if you cannot find a solution. Here are some:
(1) Create a servlet that generates the
15 matches
Mail list logo