Re: Configuration problem ????
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 metrics-file=jar:file:/C:/Temp/my.jar!/rs_song.xml embed-file=jar:file:/C:/Temp/my.jar!/rs_song.ttf kerning=yes Untested but it should work if you have a recent FOP version (0.20.5rc or later). You can probably also set the fontBaseDir value so you don't have to change the myconfig.xml file: org.apache.fop.configuration.Configuration.put(fontBaseDir, jar:file:/C:/Temp/my.jar!/); or: configuration entry keyfontBaseDir/key valuejar:file:/C:/Temp/my.jar!//value /entry I hope this helps. On 02.06.2003 04:46:28 Eric Chow wrote: If I want to use my configuration in embedded program, I can add the following statement in my program for generating PDF. Options op = new Options(new File(myconfig.xml)); It works if the myconfig.xml is in the physical folder. and the following is the content of myconfig.xml. configuration fonts font metrics-file=rs_song.xml embed-file=rs_song.ttf kerning=yes font-triplet name=Song style=normal weight=normal/ font-triplet name=Song style=normal weight=bold/ font-triplet name=Song style=italic weight=normal/ font-triplet name=Song style=italic weight=bold/ /font /fonts /configuration Questions and need help: 1. If the rs_song.xml and the rs_song.ttf are in a JAR file, how can I do ??? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration problem ????
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 get the InputStream for myconfig.xml with the following statement: InputStream is = GenPDF.class.getResourceAsStream(myconfig.xml); And, now, I don't know how I can define the myconfig.xml to use the rs_song.xml and rs_song.ttf ?? Please help me. Best regards, Eric - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:30 PM Subject: Re: Configuration problem 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 metrics-file=jar:file:/C:/Temp/my.jar!/rs_song.xml embed-file=jar:file:/C:/Temp/my.jar!/rs_song.ttf kerning=yes Untested but it should work if you have a recent FOP version (0.20.5rc or later). You can probably also set the fontBaseDir value so you don't have to change the myconfig.xml file: org.apache.fop.configuration.Configuration.put(fontBaseDir, jar:file:/C:/Temp/my.jar!/); or: configuration entry keyfontBaseDir/key valuejar:file:/C:/Temp/my.jar!//value /entry I hope this helps. On 02.06.2003 04:46:28 Eric Chow wrote: If I want to use my configuration in embedded program, I can add the following statement in my program for generating PDF. Options op = new Options(new File(myconfig.xml)); It works if the myconfig.xml is in the physical folder. and the following is the content of myconfig.xml. configuration fonts font metrics-file=rs_song.xml embed-file=rs_song.ttf kerning=yes font-triplet name=Song style=normal weight=normal/ font-triplet name=Song style=normal weight=bold/ font-triplet name=Song style=italic weight=normal/ font-triplet name=Song style=italic weight=bold/ /font /fonts /configuration Questions and need help: 1. If the rs_song.xml and the rs_song.ttf are in a JAR file, how can I do ??? Jeremias Maerki - 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]
Re: Configuration problem ????
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); org.apache.fop.configuration.Configuration.put(fontBaseDir, jar:file:my.jar!/); Options op = new Options(is); //Construct driver Driver driver = new Driver(); //Setup logger //Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); //driver.setLogger(logger); //MessageHandler.setScreenLogger(logger); //Setup Renderer (output format) driver.setRenderer(Driver.RENDER_PDF); //Setup output //OutputStream out = new java.io.FileOutputStream(pdf); driver.setOutputStream(out); //Setup XSLT TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(xslt)); //Setup input for XSLT transformation Source src = new StreamSource(xml); //Resulting SAX events (the generated FO) must be piped through to FOP Result res = new SAXResult(driver.getContentHandler()); //Start XSLT transformation and FOP processing transformer.transform(src, res); } Output - [WARNING] Screen logger not set - Using ConsoleLogger. [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [ERROR] Logger not set [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Parsing of document complete, stopping renderer [ERROR] Failed to embed font [10] RS_Song: JAR entry rs_song.ttf not found in my.jar Please help. Best regards, Eric - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:30 PM Subject: Re: Configuration problem 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 metrics-file=jar:file:/C:/Temp/my.jar!/rs_song.xml embed-file=jar:file:/C:/Temp/my.jar!/rs_song.ttf kerning=yes Untested but it should work if you have a recent FOP version (0.20.5rc or later). You can probably also set the fontBaseDir value so you don't have to change the myconfig.xml file: org.apache.fop.configuration.Configuration.put(fontBaseDir, jar:file:/C:/Temp/my.jar!/); or: configuration entry keyfontBaseDir/key valuejar:file:/C:/Temp/my.jar!//value /entry I hope this helps. On 02.06.2003 04:46:28 Eric Chow wrote: If I want to use my configuration in embedded program, I can add the following statement in my program for generating PDF. Options op = new Options(new File(myconfig.xml)); It works if the myconfig.xml is in the physical folder. and the following is the content of myconfig.xml. configuration fonts font metrics-file=rs_song.xml embed-file=rs_song.ttf kerning=yes font-triplet name=Song style=normal weight=normal/ font-triplet name=Song style=normal weight=bold/ font-triplet name=Song style=italic weight=normal/ font-triplet name=Song style=italic weight=bold/ /font /fonts /configuration Questions and need help: 1. If the rs_song.xml and the rs_song.ttf are in a JAR file, how can I do ??? Jeremias Maerki - 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]
Re: Configuration problem ????
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 PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:30 PM Subject: Re: Configuration problem 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 metrics-file=jar:file:/C:/Temp/my.jar!/rs_song.xml embed-file=jar:file:/C:/Temp/my.jar!/rs_song.ttf kerning=yes Untested but it should work if you have a recent FOP version (0.20.5rc or later). You can probably also set the fontBaseDir value so you don't have to change the myconfig.xml file: org.apache.fop.configuration.Configuration.put(fontBaseDir, jar:file:/C:/Temp/my.jar!/); or: configuration entry keyfontBaseDir/key valuejar:file:/C:/Temp/my.jar!//value /entry I hope this helps. On 02.06.2003 04:46:28 Eric Chow wrote: If I want to use my configuration in embedded program, I can add the following statement in my program for generating PDF. Options op = new Options(new File(myconfig.xml)); It works if the myconfig.xml is in the physical folder. and the following is the content of myconfig.xml. configuration fonts font metrics-file=rs_song.xml embed-file=rs_song.ttf kerning=yes font-triplet name=Song style=normal weight=normal/ font-triplet name=Song style=normal weight=bold/ font-triplet name=Song style=italic weight=normal/ font-triplet name=Song style=italic weight=bold/ /font /fonts /configuration Questions and need help: 1. If the rs_song.xml and the rs_song.ttf are in a JAR file, how can I do ??? Jeremias Maerki - 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]
PrintStarter.PrintRenderer printing issues with Unix
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 print dynamically generated PDFs to a printer that is determined at runtime. However, the same application on Solaris causes printer errors and seems to hang. I don't believe the problem lies with FOP, as the code works on Win32 platforms. More likely, the AWT print subsystem is blame. However, I thought that maybe someone might have run into this problem using FOP in the past and may have some advice on how to troubleshoot it. One last thing, as our Solaris boxes do not have default printers, I haven't been able to test using the non-Print Services approach of printing straight to the default printer (thus eliminating the Print Services API as the culprit). However, I expect that, since the approach is the same (and the code mostly identical), that would also fail. Thanks, - Jamie Stillman CBC Companies [EMAIL PROTECTED] 614.538.6076 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration problem ????
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 problem. If that doesn't work you need to change FOP to do what you want. There's some code in FOP (see SingleByteFont) that enables you to read the embeddable font file using getResource. This is triggered by an embed element in the metrics XML (See FontReader). But I'm pretty sure there's so such mechanism for the metrics file so I think the whole thing is pretty useless. If you have to change FOP I suggest you start with the URLBuilder class which could be a good starting point to resolve URLs. The redesigned FOP will have better mechanisms to do that but that's future talk. Good luck! On 02.06.2003 12:14:39 Eric Chow wrote: InputStream is = PDFGenerator.class.getResourceAsStream(myconfig.xml); org.apache.fop.configuration.Configuration.put(fontBaseDir, jar:file:my.jar!/); Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Font encoding types
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 some reason too many users get error messages it's missing if it's not embedded. However, the former process before FOP was introduced into the mix did an embedded subset without the same problems we have with the files produced from FOP. The difference I've noted is that FOP uses an encoding type of 'Identity-H' and the working files use an encoding type of 'Custom'. The working files were produced out of Quark. Most of the error messages with the 'Identity-H' files are of the invalid CMAP variety. What's the difference and is there any workaround? Michael Teator[EMAIL PROTECTED]
Re: Font encoding types
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 AcrobatReader but you cannot copy/paste text from the PDF displayed in AcrobatReader because of the missing ToUnicode CMap. I'm still on the way to become a font-pro but: Identity-H simply maps 1:1 from Unicode to CID (character identifier). Quark probably takes a different approach and numbers the used subset of characters from 0 to n (where n is the number of glyphs in the subset). Therefore, they most probably create a special CMap to encode the text to the correct glyphs. A workaround is difficult to come up with at the moment. I wonder what kind of error messages you get. If it's the missing ToUnicode CMap that causing the problems, then it's probably a matter of implementing support for them. On 02.06.2003 16:11:35 Teator, Michael wrote: 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 some reason too many users get error messages it's missing if it's not embedded. However, the former process before FOP was introduced into the mix did an embedded subset without the same problems we have with the files produced from FOP. The difference I've noted is that FOP uses an encoding type of 'Identity-H' and the working files use an encoding type of 'Custom'. The working files were produced out of Quark. Most of the error messages with the 'Identity-H' files are of the invalid CMAP variety. What's the difference and is there any workaround? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font encoding types
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 characters are replaced with others, and some are randomly bold. I don't know if it makes a difference, but none of the fonts being used are unicode. However, the same exact errors happened with the unicode version of Arial Narrow as the non-Unicode. The Helvetica font is Type 1, so it doesn't cause any of these problems, but it can't be embedded as a subset anyways. Michael Teator [EMAIL PROTECTED] -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:16 AM To: [EMAIL PROTECTED] Subject: Re: Font encoding types 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 AcrobatReader but you cannot copy/paste text from the PDF displayed in AcrobatReader because of the missing ToUnicode CMap. I'm still on the way to become a font-pro but: Identity-H simply maps 1:1 from Unicode to CID (character identifier). Quark probably takes a different approach and numbers the used subset of characters from 0 to n (where n is the number of glyphs in the subset). Therefore, they most probably create a special CMap to encode the text to the correct glyphs. A workaround is difficult to come up with at the moment. I wonder what kind of error messages you get. If it's the missing ToUnicode CMap that causing the problems, then it's probably a matter of implementing support for them. On 02.06.2003 16:11:35 Teator, Michael wrote: 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 some reason too many users get error messages it's missing if it's not embedded. However, the former process before FOP was introduced into the mix did an embedded subset without the same problems we have with the files produced from FOP. The difference I've noted is that FOP uses an encoding type of 'Identity-H' and the working files use an encoding type of 'Custom'. The working files were produced out of Quark. Most of the error messages with the 'Identity-H' files are of the invalid CMAP variety. What's the difference and is there any workaround? Jeremias Maerki - 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]
background-image bug
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL/PDF
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 to find out the browser the client is using first? Main thing is make sure your changes don't affect users of other browsers that were programmed correctly. Or, if possible, better to design the code such that even if it calls it multiple times everything will still work fine. If IE is a sluggish browser because it insists on requesting generating reports multiple times, then so be it--recommend to your users other browsers for better speed! Other possibilities: http://xml.apache.org/fop/servlets.html#ie Glen --- Brett DiPerna [EMAIL PROTECTED] wrote: Hi Glen, I am having this same problem. Did you ever find a solution or workaround? Any help would be greatly appreciated. Thanks, Brett Currently I'm returning PDF manually from my Struts Action subclass, without using stxx. Works fine, except that for some reason the doGet() request for this action ends up being called twice--apparently because of the setContentType(application/pdf) statement within the Action subclass code. (I'm using an MSIE client, and if I don't use the setContentType() statement, the problem doesn't occur but I don't get PDF back.) This results in the XML-PDF process occuring twice to generate the same response. Has anyone ever had this problem with stxx--that of the browser somehow automatically requesting the processing to occur twice? If no, I may need to switch to stxx to solve this problem. Thanks, Glen __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font encoding types
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 PROTECTED] -Original Message- From: Teator, Michael [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:45 AM To: '[EMAIL PROTECTED]' Subject: RE: Font encoding types 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 characters are replaced with others, and some are randomly bold. I don't know if it makes a difference, but none of the fonts being used are unicode. However, the same exact errors happened with the unicode version of Arial Narrow as the non-Unicode. The Helvetica font is Type 1, so it doesn't cause any of these problems, but it can't be embedded as a subset anyways. Michael Teator [EMAIL PROTECTED] -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:16 AM To: [EMAIL PROTECTED] Subject: Re: Font encoding types 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 AcrobatReader but you cannot copy/paste text from the PDF displayed in AcrobatReader because of the missing ToUnicode CMap. I'm still on the way to become a font-pro but: Identity-H simply maps 1:1 from Unicode to CID (character identifier). Quark probably takes a different approach and numbers the used subset of characters from 0 to n (where n is the number of glyphs in the subset). Therefore, they most probably create a special CMap to encode the text to the correct glyphs. A workaround is difficult to come up with at the moment. I wonder what kind of error messages you get. If it's the missing ToUnicode CMap that causing the problems, then it's probably a matter of implementing support for them. On 02.06.2003 16:11:35 Teator, Michael wrote: 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 some reason too many users get error messages it's missing if it's not embedded. However, the former process before FOP was introduced into the mix did an embedded subset without the same problems we have with the files produced from FOP. The difference I've noted is that FOP uses an encoding type of 'Identity-H' and the working files use an encoding type of 'Custom'. The working files were produced out of Quark. Most of the error messages with the 'Identity-H' files are of the invalid CMAP variety. What's the difference and is there any workaround? Jeremias Maerki - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font encoding types
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 some PDF interpreters don't like. Until today, I've seen this behaviour only in the redesign but not in 0.20.5x. Strange. On 02.06.2003 23:08:10 Teator, Michael wrote: 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. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font encoding types
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. But the font issues otherwise are bad. It generally happens with the stats on pages 2/3 that use the Arial Narrow font. Michael Teator [EMAIL PROTECTED] -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:30 PM To: [EMAIL PROTECTED] Subject: Re: Font encoding types 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 some PDF interpreters don't like. Until today, I've seen this behaviour only in the redesign but not in 0.20.5x. Strange. On 02.06.2003 23:08:10 Teator, Michael wrote: 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. Jeremias Maerki - 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]
Re: XSL/PDF
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 PDF. Forward to the servlet in your Action class. (2) Create the same servlet mentioned above and call it directly, bypassing Struts. (3) Generate the PDF within the Action class, and instead of returning it as the contents of the HTTP Response, save the PDF to the file system and return an HTTP redirect to the PDF. Let me know if you have questions on any of the above. Ben Glen Mazza wrote: 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 to find out the browser the client is using first? Main thing is make sure your changes don't affect users of other browsers that were programmed correctly. Or, if possible, better to design the code such that even if it calls it multiple times everything will still work fine. If IE is a sluggish browser because it insists on requesting generating reports multiple times, then so be it--recommend to your users other browsers for better speed! Other possibilities: http://xml.apache.org/fop/servlets.html#ie Glen --- Brett DiPerna [EMAIL PROTECTED] wrote: Hi Glen, I am having this same problem. Did you ever find a solution or workaround? Any help would be greatly appreciated. Thanks, Brett Currently I'm returning PDF manually from my Struts Action subclass, without using stxx. Works fine, except that for some reason the doGet() request for this action ends up being called twice--apparently because of the setContentType(application/pdf) statement within the Action subclass code. (I'm using an MSIE client, and if I don't use the setContentType() statement, the problem doesn't occur but I don't get PDF back.) This results in the XML-PDF process occuring twice to generate the same response. Has anyone ever had this problem with stxx--that of the browser somehow automatically requesting the processing to occur twice? If no, I may need to switch to stxx to solve this problem. Thanks, Glen __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - 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]