Re: fop trunk svg problems
I meant trunk as in HEAD (i.e. the latest code in subversion). [EMAIL PROTECTED] wrote: - original Nachricht Betreff: fop trunk svg problems Gesendet: Do 23 Feb 2006 20:44:55 CET Von: "Jason R Briggs"<[EMAIL PROTECTED]> Anyone else experiencing problems with SVG with the trunk version of fop? nope (fop 0.20.5, batik 1.5.1, gentoo linux) For example, the FO below works perfectly in 0.91beta, but doesn't throws an error (see below FO) in the latest trunk version. See: http://krachlattenpaul.homelinux.org/fop/circle_exception.* for perfectly rendered pdf (with a small circle in the upper left corner) Unfortunately I can't use 0.91 because I have some really odd layout problems that completely vanish in trunk. Maybe you post this too and I'm sure, somebody's got a sollution for this 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - 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: fop trunk svg problems
- original Nachricht Betreff: fop trunk svg problems Gesendet: Do 23 Feb 2006 20:44:55 CET Von: "Jason R Briggs"<[EMAIL PROTECTED]> > Anyone else experiencing problems with SVG with the trunk version of fop? nope (fop 0.20.5, batik 1.5.1, gentoo linux) > > For example, the FO below works perfectly in 0.91beta, but doesn't > throws an error (see below FO) in the latest trunk version. See: http://krachlattenpaul.homelinux.org/fop/circle_exception.* for perfectly rendered pdf (with a small circle in the upper left corner) > Unfortunately I can't use 0.91 because I have some really odd layout > problems that completely vanish in trunk. Maybe you post this too and I'm sure, somebody's got a sollution for this 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the hyphenator
> - parsing words from flow text Not a problem because I am formatting single words (interminable chemical names for use as molecule labels in graphics) > The parsed words have to be normalized Not an issue either; we can assume US (well, scientific) english. However I may have to write custom patterns after seeing the results and becoming more familiar with chemical naming conventions. - checking up to which possible hyphenation point the word part fits onto the line. So that is the job of the line-breaking algorithm, right? I looked at the layout package but unlike with Hyphenator these classes I could not figure out how to drive them; they seem written for internal use only. Is there any howto document anywhere explaining how you can invoke that machinery explicitely rather than implicitely as part of a FOP processing job? BTW feedback for the page is appreciated. 1. This being Java, a comparison with java.text.BreakIterator might be useful. 2. Since the Javadoc does not provide that information, you might want to explain on that page what are leftMin, rightMin etc. 3. Maybe a link to Frank Liang's thesis: http://www.tug.org/docs/liang/ Regards, -- O.L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the hyphenator
Olivier Lefevre wrote: I wish to use the hyphenation classes of FOP to format paragraphs for rendering in Swing. The hyphenate methods of the Hyphenator class look like the obvious choice but I have two problems: 1. their arguments are poorly documented 2. I do not see where to set the font; the length argument makes no sense unless a font metrics has been specified The hyphenate methods return only possible hyphenation points for a word. The caller is responsible for: - parsing words from flow text and - checking up to which possible hyphenation point the word part fits onto the line. You may want to read http://wiki.apache.org/xmlgraphics-fop/AutomaticHyphenation for some background information, in particular the (still short) chapter about "Refinements And Embedding" BTW feedback for the page is appreciated. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop trunk svg problems
Anyone else experiencing problems with SVG with the trunk version of fop? For example, the FO below works perfectly in 0.91beta, but doesn't throws an error (see below FO) in the latest trunk version. Unfortunately I can't use 0.91 because I have some really odd layout problems that completely vanish in trunk. http://www.w3.org/1999/XSL/Format"; xmlns:svg="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";> stroke="black" stroke-width="2" /> Throws the following exception: [java] (pdf.PDFSVGHandler 183 ) svg graphic could not be built: file:/home/jason/classes/:-1 [java] The attribute "r" of the element is required [java] org.apache.batik.bridge.BridgeException: file:/home/jason/rhe/e-asTTle/trunk/scratchpad/jason/classes/:-1 [java] The attribute "r" of the element is required [java] at org.apache.batik.bridge.SVGCircleElementBridge.buildShape(Unknown Source) [java] at org.apache.batik.bridge.SVGShapeElementBridge.createGraphicsNode(Unknown Source) [java] at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) [java] at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) [java] at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) [java] at org.apache.fop.render.pdf.PDFSVGHandler.renderSVGDocument(PDFSVGHandler.java:181) [java] at org.apache.fop.render.pdf.PDFSVGHandler.handleXML(PDFSVGHandler.java:80) [java] at org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java:842) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: RTF and table/column widths
I had a closer look at the RTF results and I found two basic problems: 1. If the table has a indent of 0, the RTF-table does not copy this attribute (il0) to every table row (trowd). From the table cell's point of view it's row does not have an indent, so it does not look at the table's parameter. Therefore indenting any paragraph wrapping the table causes all the cells to inherit this indenting. So all the cell's content is not displayed at the left border, only shifted right by it's padding, but by the preceeding paragraph's indent. Just insert a il0 (or il+cell.getIndent(RTFWidthContext) after trowd and it resets the indent. 2. When creating an index, all the index terms are listed but neither their page numbers occurs, nor is the link right (but there's a link). If there's enough time I could fix the "deferred references", too... (A less important fact is, that list bullets are not rendered properly, I had a question mark instead of a bullet. Somewhere I have the sample code for rendering fancy bullets to RTF...) The other problem I described in the last mail (including pictures causes PercentageContext-Exception everytime) was a docbook related problem. If in docbook a table (yes, table ... wrong conclusion) column has the proportional width 1 this value is not rendered to the FO-document. Due to this little optimization the column's width is "auto" by default. (This default "auto" caused the problem, 'cause replaced only visible column width definitions.) Tomorrow I'll deliver the promised perl scripts a shell wrapper. With these little gadgets I could transform every FO to RTF, only problem 2. remains. I'll also post some RTF results for illustration. If you like it, I'll start coding into the RTF export classes. BTW, why doesn't RTF support GIFs? PDF does so and I see no difference, according to licenses. Nevertheless the RTF export is pretty cool, if you write the FO a bit more careful. "Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken" www.klarmobil.de/index.html?pid=73025 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss 4 vs FOP commons logging clash - solved
The extra '/' is from JBoss, but the extra ';' is from my poor cutting and pasting skills. I have rearranged the jars so they look nice and have run some tests on it. Most of the issues come from either my non-compliance to the FO spec or minor migration pains. Once I have sorted that out, I'm going to do some hefty regression testing to evaluate 0.20.3 versus 0.91 performance. So far so good. As for the wiki, I would be glad to do it. -Lou Clay Leeds <[EMAIL PROTECTED]> wrote on 02/21/2006 13:01:14: > I noticed that there/s an extra / and a ; here: > > C:\jboss-4.0.3SP1\bin\\run.jar;;\ > > I don't know if it affects anything, but thought I should point it out. > > Also, once you iron out the details, it would be great if you could > add a HowTo page to the FOP wiki: > > http://wiki.apache.org/xmlgraphics-fop/ > > Thanks! > > Web Maestro Clay > > On Feb 21, 2006, at 9:21 AM, [EMAIL PROTECTED] wrote: > Thanks for the direction and the JCL wiki. It helped in debugging > what was going on. > > OK, I have made some progress and have gotten them to work together. > My java classpath when running JBoss now looks like this (omitting > unneccessary jars): > > \prod_jars_091_14\avalon-framework-4.2.0.jar; > \prod_jars_091_14\batik-all-1.6.jar;\prod_jars_091_14\serializer-2. > 7.0.jar;\prod_jars_091_14\xalan-2.7.0.jar; > \prod_jars_091_14\xercesImpl-2.7.1.jar;\prod_jars_091_14\xml-apis-1. > 3.02.jar;\prod_jars_091_14\fop.jar;C:\jdk14\lib\tools.jar;C: > \jboss-4.0.3SP1\bin\\run.jar;;\prod_jars_091_14\commons-io-1.1.jar; > \prod_jars_091_14\commons-logging-1.0.4.jar;C:\jboss-4.0. > 3SP1\lib\log4j-boot.jar > > The final change that seemed to fix this is the addition of the > log4j-boot.jar directly to the classpath. It exists in the root lib > directory and the server's lib directory has the additional log4j.jar. > > I have not tried any different ordering, but at least this gets it > to boot and I can now render PDFs under 0.91. I can probably move > the commons and log4j jars before the tools.jar, but I have not had > a chance to experiment with it. > > I'm not saying that this is the best solution, but it seems to be a > solution. If I find anything else I will post it. > > -Lou > > > Jeremias Maerki <[EMAIL PROTECTED]> wrote on 02/17/2006 15:37:03: > > > Have a look at the JCL Wiki. Maybe that'll help you. There's something > > specific to JBoss. It's probably all about the right placement of the > > JARs. > > http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions > > > > I've heard a number of time that some people talk bad about JCL because > > of class loading problems. I'm not familiar with the details. Maybe you > > stumbled upon one of these problems. > > > > Please keep us informed about any solutions you find for this. Maybe I > > have some time on Sunday to download, install and try JBoss. > > > > On 17.02.2006 20:28:12 Louis.Masters wrote: > > > I'm running into a strange logging jar file issue when trying to run FOP > > > 0.91 under JBoss 4.0.3. If I include the FOP logging jar > > > (commons-logging-1.0.4.jar) in my java classpath and then boot JBoss, I > > > get the following boot error: > > > > > > > > > Caused by: org.apache.commons.logging.LogConfigurationException: > > > org.apache.commons.logging.LogConfigurationException: No suitable Log > > > constructor [Ljava.lang.Class;@c789fb for > > > org.apache.commons.logging.impl.Log4JLogger (Caused by > > > java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by > > > org.apache.commons.logging.LogConfigurationException: No suitable Log > > > constructor [Ljava.lang.Class;@c789fb for > > > org.apache.commons.logging.impl.Log4JLogger (Caused by > > > java.lang.NoClassDefFoundError: org/apache/log4j/Category)) > > > at > > > org.apache.commons.logging.impl.LogFactoryImpl. > > newInstance(LogFactoryImpl.java:543) > > > at > > > org.apache.commons.logging.impl.LogFactoryImpl. > > getInstance(LogFactoryImpl.java:235) > > > > > > > > > When I use JBoss's logging jar (1.0.3) and omit the two commons-logging > > > jars from my classpath, JBoss boots OK, but I get the following > error from > > > FOP: > > > > > > > > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. > > processConnection(Http11Protocol.java:744) > > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint. > > processSocket(PoolTcpEndpoint.java:527) > > > at > > > org.apache.tomcat.util.net.MasterSlaveWorkerThread. > > run(MasterSlaveWorkerThread.java:112) > > > at java.lang.Thread.run(Thread.java:536)Caused by: > > > java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory > > > at org.apache.fop.render.RendererFactory.(RendererFactory.java:47) > > > at org.apache.fop.apps.FOUserAgent.(FOUserAgent.java:83) > > > at com.lognet.reports.engine.FOPGenerator.(FOPGenerator.java:68) > > > at com.lognet.reports.engine.
Using the hyphenator
I wish to use the hyphenation classes of FOP to format paragraphs for rendering in Swing. The hyphenate methods of the Hyphenator class look like the obvious choice but I have two problems: 1. their arguments are poorly documented 2. I do not see where to set the font; the length argument makes no sense unless a font metrics has been specified Can anybody advise? Thanks, -- O.L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Flow Area with explizit height inside an "normal" flow area?
With overflow="repeat" (defined in the latest XSL 1.1 CR) I think this could be done, but this would have to be implemented, first. However, I'm not sure if you can reliably force every container on a new page if the container's height is less than half the available content height on a page. On 23.02.2006 13:21:18 news wrote: > I tried it, but the result was that the user content flows over the > block-container. FOP 0.90 beta says: > Part/page 1 overflows the available area in block-progression dimension. > (fo:block-container, locati > on: 1/2603) > My container looks like that: > border="0.5pt dotted black"> > > :( > > Is it possible that if the content of the container does not fit into it, > that a second container is automaticly opend (on the next page because I > have 'break-after="page"' and the rest of the user content is written into > it?) > > Jan > > -Ursprüngliche Nachricht- > Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 22. Februar 2006 14:07 > An: fop-users@xmlgraphics.apache.org > Betreff: Re: Flow Area with explizit height inside an "normal" flow area? > > Not sure if I understand you but I guess you'd insert the fixed content into > a (relatively positioned) block-container (works only with FOP 0.90 and > later) where you set the height or block-progression-dimension property and > a break-after="page". > > On 22.02.2006 12:01:56 news wrote: > > Hello List, > > > > I ve a project where I ve got flow content going up to several pages. > > Inside this flow content I want to insert another flow content whose > > measures where set up by a user previously. The user controlled > > content should be outputted as is. Means that if the flow content to > > be inserted has a height of 10cm a page break should be performed > > after 10cm. The to be entered content comes at once, without any other > > content in between. After it was inserted the "normal" content is > > supposed to be outputted in the flow area using the region-body scale > definitions. > > Hm, I hope I could make myself clear :) > > > > Does anybody have a idea how this could work? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Flow Area with explizit height inside an "normal" flow area?
I tried it, but the result was that the user content flows over the block-container. FOP 0.90 beta says: Part/page 1 overflows the available area in block-progression dimension. (fo:block-container, locati on: 1/2603) My container looks like that: :( Is it possible that if the content of the container does not fit into it, that a second container is automaticly opend (on the next page because I have 'break-after="page"' and the rest of the user content is written into it?) Jan -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 22. Februar 2006 14:07 An: fop-users@xmlgraphics.apache.org Betreff: Re: Flow Area with explizit height inside an "normal" flow area? Not sure if I understand you but I guess you'd insert the fixed content into a (relatively positioned) block-container (works only with FOP 0.90 and later) where you set the height or block-progression-dimension property and a break-after="page". On 22.02.2006 12:01:56 news wrote: > Hello List, > > I ve a project where I ve got flow content going up to several pages. > Inside this flow content I want to insert another flow content whose > measures where set up by a user previously. The user controlled > content should be outputted as is. Means that if the flow content to > be inserted has a height of 10cm a page break should be performed > after 10cm. The to be entered content comes at once, without any other > content in between. After it was inserted the "normal" content is > supposed to be outputted in the flow area using the region-body scale definitions. > Hm, I hope I could make myself clear :) > > Does anybody have a idea how this could work? 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]
AW: Page Numbers
Andre, I had a similar problem, and I included barcode elements in the static areas of a page. Finally I decided to take barcode4j as a template for my own FOP extension and to derive some classes from the original PageNumber*.java Classes in included in the FOP sourcecode. That gave me the chance to include current and total page number together with other information in the barcode. Alex. > Alexander Schwartz PLUS Finanzservice GmbH Otto-von-Guericke-Ring 15 65205 Wiesbaden T.: 06122 - 999 906 F.: 06122 - 999 44906 [EMAIL PROTECTED] -- Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and its attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. -- -Ursprüngliche Nachricht- > Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 22. Februar 2006 14:01 > An: fop-users@xmlgraphics.apache.org > Betreff: Re: Page Numbers > > > No, at least it's not possible in XSLT since FOP runs after > the XSLT stage and you stylesheet cannot know about page-numbers. > > The FOP extension for Barcode4J, however, contains a special > feature that allows you to use the page number in a barcode. > That works because Barcode4J runs during FOP's layout > process. See the documentation here: > http://barcode4j.krysalis.org/fop-ext.html > > On 22.02.2006 > 11:45:18 Andre Groeneveld wrote: > > Hi can anyone help me please. > > > > > > > > Is there any way of storing the current page number in a variable? > > > > The reason why I need to store the page number is that I > need to make > > a calculation with the page number and use the result for a barcode. > > > > 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: Re how to embed a font programatically
Have you seen my other post? I've implemented exactly what I proposed to you and put it in FOP Trunk: http://svn.apache.org/viewcvs?rev=379810&view=rev More comments inline... On 23.02.2006 07:02:33 Karl Roberts wrote: > Hi I built a URIResolver that reads URL's like: > > servlet-context:/WEB-INF/metric.xml > > And it works fine, however when it encounters a URL that doesn't match > the servlet-context scheme I return null. That's correct IMO. It's what I did. > However I then get an NullPointerException > Caused by: javax.xml.transform.TransformerException: > java.lang.NullPointerException > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(T > ransformerImpl.java:647) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(T > ransformerImpl.java:279) > Hmm, I don't get these with my implementation. TransformerException is not the real exception. Look further down in the stack trace where you should find the right place where the exception occurred. The above doesn't really help. Setting an exception breakpoint for NullPointerException will also be useful. > I do return null from my URIResolver in the cases where the scheme > doesn't match the one I'm after, and FOURIResolver kicks in, but it > never seems to come back to my URIResolver. > Should I instead delegate to FOURIResolver rather than return null? No, I don't think so. There must be something else that's wrong. Can you try my implementation instead? http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/java/org/apache/fop/servlet/ServletContextURIResolver.java Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
On 23.02.2006 09:53:41 jelka.kosir wrote: > Jeremias Maerki <[EMAIL PROTECTED]> wrote on 22.02.2006 18:50:07: > > > Added a Wiki page, in case anybody needs that in the future: > > http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication > > > Seems easy enough even for me to implement :) thank you > > I have a feeling you overlooked some responses I made for you, so just to > be sure here they are again. > I need to know if there is something I have to do with my findings (maybe > report somewhere ?) Sorry, answering now... I've looked into it. The java.net.URL instance that gets created does contain the username and password but when its openStream() method is called this authentication info seems to be ignored. So, it's not a bug in FOP, but something weird in Sun's Java class library. David Delbecq's remark earlier is obviously correct. Using the Authenticator approach in a J2EE environment is not optimal. I found a different and probably much better approach which I added to the Wiki page I wrote earlier: http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication (You'll need the latest FOP Trunk for that to work!) I hope that helps. > -- > Jeremias wrote: > > On the other side it's strange that wget is able to get the image with > > the uid/pwd encoded in the URL and FOP is not. Maybe FOP 0.20.5 does > > something bad with the URL. It would be great if someone could check > > this case with FOP Trunk so we can fix any problems like that for the > > next release. > > I did try the "http://username:[EMAIL PROTECTED]/resource.gif" notation > with the new FOP Trunk and I'm getting error 401 code (Unauthorized). > This url works in wget. Should a bug report be submitted ? > > This is the error message that displays when I run Fop Trunk from command > line: > > Error with opening URL '//user:[EMAIL PROTECTED]/image.gif': Server > retu > rned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/image.gif > java.io.IOException: Server returned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/image.gif > > I also tried this notation in my custom config file (I use custom fonts > because character set we use is Latin 2) I set > http://user:[EMAIL PROTECTED]/ > and this produces Error 401 when I run FOP Trunk from command line (wget > is able to retrieve with this url). > > Error with opening URL 'arial.xml': Server returned HTTP response code: > 401 for > URL: http://user:[EMAIL PROTECTED]/arial.xml > java.io.IOException: Server returned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/arial.xml > > Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root > (http://www > .w3.org/1999/XSL/Format) > Error with opening URL 'arial.xml': Server returned HTTP response code: > 401 for > URL: http://user:[EMAIL PROTECTED]/arial.xml > java.io.IOException: Server returned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/arial.xml > > javax.xml.transform.TransformerException: java.lang.RuntimeException: > Cannot loa > d font: failed to create Source from metrics file arial.xml > Exception > javax.xml.transform.TransformerException: java.lang.RuntimeException: > Cannot loa > d font: failed to create Source from metrics file arial.xml Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
Please note the suggested way to handle user/pass is curious and subject to not working in j2ee environments (as you have to register the authenticator at container level) [EMAIL PROTECTED] a écrit : > > > Jeremias Maerki <[EMAIL PROTECTED]> wrote on 22.02.2006 18:50:07: > > > Added a Wiki page, in case anybody needs that in the future: > > http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication > > > Seems easy enough even for me to implement :) thank you > > I have a feeling you overlooked some responses I made for you, so just > to be sure here they are again. > I need to know if there is something I have to do with my findings > (maybe report somewhere ?) > > -- > Jeremias wrote: > > On the other side it's strange that wget is able to get the image with > > the uid/pwd encoded in the URL and FOP is not. Maybe FOP 0.20.5 does > > something bad with the URL. It would be great if someone could check > > this case with FOP Trunk so we can fix any problems like that for the > > next release. > > I did try the "http://username:[EMAIL PROTECTED]/resource.gif" > notation with the new FOP Trunk and I'm getting error 401 code > (Unauthorized). > This url works in wget. *Should a bug report be submitted ?** * > This is the error message that displays when I run Fop Trunk from > command line: > > Error with opening URL '//user:[EMAIL PROTECTED]/image.gif': > Server retu > rned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/image.gif > java.io.IOException: Server returned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/image.gif > > I also tried this notation in my custom config file (I use custom > fonts because character set we use is Latin 2) I set > http://user:[EMAIL PROTECTED]/ > and this produces Error 401 when I run FOP Trunk from command line > (wget is able to retrieve with this url). > > Error with opening URL 'arial.xml': Server returned HTTP response > code: 401 for > URL: http://user:[EMAIL PROTECTED]/arial.xml > java.io.IOException: Server returned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/arial.xml > > Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root > (http://www > .w3.org/1999/XSL/Format) > Error with opening URL 'arial.xml': Server returned HTTP response > code: 401 for > URL: http://user:[EMAIL PROTECTED]/arial.xml > java.io.IOException: Server returned HTTP response code: 401 for URL: > http://user:[EMAIL PROTECTED]/arial.xml > > javax.xml.transform.TransformerException: java.lang.RuntimeException: > Cannot loa > d font: failed to create Source from metrics file arial.xml > Exception > javax.xml.transform.TransformerException: java.lang.RuntimeException: > Cannot loa > d font: failed to create Source from metrics file arial.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to pass to fop user and password needed for basic authentication to get image resource from Notes database
Jeremias Maerki <[EMAIL PROTECTED]> wrote on 22.02.2006 18:50:07: > Added a Wiki page, in case anybody needs that in the future: > http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication Seems easy enough even for me to implement :) thank you I have a feeling you overlooked some responses I made for you, so just to be sure here they are again. I need to know if there is something I have to do with my findings (maybe report somewhere ?) -- Jeremias wrote: > On the other side it's strange that wget is able to get the image with > the uid/pwd encoded in the URL and FOP is not. Maybe FOP 0.20.5 does > something bad with the URL. It would be great if someone could check > this case with FOP Trunk so we can fix any problems like that for the > next release. I did try the "http://username:[EMAIL PROTECTED]/resource.gif" notation with the new FOP Trunk and I'm getting error 401 code (Unauthorized). This url works in wget. Should a bug report be submitted ? This is the error message that displays when I run Fop Trunk from command line: Error with opening URL '//user:[EMAIL PROTECTED]/image.gif': Server retu rned HTTP response code: 401 for URL: http://user:[EMAIL PROTECTED]/image.gif java.io.IOException: Server returned HTTP response code: 401 for URL: http://user:[EMAIL PROTECTED]/image.gif I also tried this notation in my custom config file (I use custom fonts because character set we use is Latin 2) I set http://user:[EMAIL PROTECTED]/ and this produces Error 401 when I run FOP Trunk from command line (wget is able to retrieve with this url). Error with opening URL 'arial.xml': Server returned HTTP response code: 401 for URL: http://user:[EMAIL PROTECTED]/arial.xml java.io.IOException: Server returned HTTP response code: 401 for URL: http://user:[EMAIL PROTECTED]/arial.xml Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (http://www .w3.org/1999/XSL/Format) Error with opening URL 'arial.xml': Server returned HTTP response code: 401 for URL: http://user:[EMAIL PROTECTED]/arial.xml java.io.IOException: Server returned HTTP response code: 401 for URL: http://user:[EMAIL PROTECTED]/arial.xml javax.xml.transform.TransformerException: java.lang.RuntimeException: Cannot loa d font: failed to create Source from metrics file arial.xml Exception javax.xml.transform.TransformerException: java.lang.RuntimeException: Cannot loa d font: failed to create Source from metrics file arial.xml